📄 config.h
字号:
/* ads8260/config.h - Motorola MPC8260 ADS board configuration header *//* Copyright 1984-1997 Wind River Systems, Inc. *//*modification history--------------------01p,14mar00,ms_ add support for PILOT revision of board01o,04mar00,mtl made PILOT as default revision01n,03mar00,mtl changed rom address & size to reflect system exc vector01m,29sep99,ms_ NV_RAM_SIZE size is NONE; removed NV_RAM_SIZE_WRITEABLE01l,19sep99,ms_ undef MMU and CACHE to assure FLASH visibility01k,17sep99,ms_ undef MOT_FCC_DBG; use generic bootline01j,26jul99,ms_ remove wrs references from default boot line01i,16jun99,ms_ bumped version for beta01h,16jun99,cn corrected macro definitions about FLASH device.01g,28may99,ms_ bump bsp version level for second EAR release01f,21may99,ms_ added BCSR and IMM macros01e,20may99,cn added support for bootrom and FLASH device.01d,17apr99,ms_ remove SPLL01c,14apr99,cn added support for motFccEnd01b,08apr99,ms_ upgrade for multiple serial channels01a,07jan99,ms_ adapted from ads860 config.h*//*This file contains the configuration parameters for theMotorola MPC8260 ADS board.*/#ifndef INCconfigh#define INCconfigh/****************************************************************************************************************//* Noted by wangyan: this define is used to generate the bootrom file in the flash of 512kbytes,8bit port size *//*If you use the FLASH of AMD29F040, you should define BOOT_FILE_ROM. Else undef the other flash enable *//*AMD29F040 port is 8bit, and AMD29DL800B port is 16 bit, so some sets should be changed. *//****************************************************************************************************************/#undef BOOT_FILE_ROM /* BSP version/revision identification, should be placed * before #include "configAll.h" */#define BSP_VER_1_1 1#define BSP_VER_1_2 1#define BSP_VERSION "1.1"#define BSP_REV "/1"/* default board revision is PILOT */#define BOARD_REV_PILOT /* undefine for revision ENG */#include "configAll.h"#define DEFAULT_BOOT_LINE \"motfcc(0,0)bcng:vxWorks h=192.168.0.110 e=192.168.0.137 u=bcng pw=bcng tn=XPC8260-BCNG"/*#define DEFAULT_BOOT_LINE \"tffs=0,0(0,0)bcng:vxWorks h=192.168.0.110 e=192.168.0.137 u=bcng pw=bcng tn=XPC8260-BCNG"*/#undef USER_I_MMU_ENABLE#undef USER_D_MMU_ENABLE#undef INCLUDE_MMU_BASIC#undef USER_I_CACHE_ENABLE#undef USER_D_CACHE_ENABLE#undef INCLUDE_CACHE_SUPPORT#undef INCLUDE_WINDVIEW/* Number of TTY definition */#undef NUM_TTY#define NUM_TTY N_SIO_CHANNELS /* defined in ads8260.h *//* Optional timestamp support */#undef INCLUDE_TIMESTAMP/* optional TrueFFS support */#undef INCLUDE_TFFS#ifdef INCLUDE_TFFS#define INCLUDE_DOSFS /* dosFs file system */#define INCLUDE_SHOW_ROUTINES /* show routines for system facilities*/#endif /* INCLUDE_DOSFS *//* clock rates */#define SYS_CLK_RATE_MIN 1 /* minimum system clock rate */#define SYS_CLK_RATE_MAX 8000 /* maximum system clock rate */#define AUX_CLK_RATE_MIN 1 /* minimum auxiliary clock rate */#define AUX_CLK_RATE_MAX 8000 /* maximum auxiliary clock rate *//* * Crystal Frequency - This macro defines the input oscillator frequency * (labeled SYSCLK on the MPC8260 ADS board) clocking the PPC8260. */#define CRYSTAL_FREQ 66000000 /* 66 Mhz *//*#define CRYSTAL_FREQ 50000000 */ /* 50 Mhz *//* * DRAM refresh frequency - This macro defines the DRAM refresh frequency. * e.i: A DRAM with 1024 rows to refresh in 16ms: * DRAM_REFRESH_FREQ = 1024/ 16E-3 = 64E3 hz */#define DRAM_REFRESH_FREQ 64000 /* 64 kHz *//* * Baud Rate Generator division factor - 0 for division by 1 * 1 for division by 4 * 2 for division by 16 * 3 for division by 64 */#define BRGCLK_DIV_FACTOR 0/* add necessary drivers */#define INCLUDE_END #ifndef INCLUDE_NETWORK#define INCLUDE_NETWORK#endif#ifdef INCLUDE_NETWORK /* include the FCC ethernet driver */#define INCLUDE_MOT_FCC #endif #ifdef INCLUDE_MOT_FCC#ifndef INCLUDE_END# define INCLUDE_END /* only END-style driver for FCC */#endif /* INCLUDE_END */#endif /* INCLUDE_MOT_FCC */ /* remove unnecessary drivers */#undef INCLUDE_BP#undef INCLUDE_EX#undef INCLUDE_ENP#undef INCLUDE_SM_NET#undef INCLUDE_SM_SEQ_ADD#define NV_RAM_SIZE NONE /* no NVRAM */ /* Memory addresses */ #define LOCAL_MEM_SIZE 0x08000000 /* 128 Mbyte memory available */#define LOCAL_MEM_LOCAL_ADRS 0x00000000 /* Base of RAM */ /* xiyong: add cpm local memory*/#define INCLUDE_LOC_SDRAM #define LOC_SIZE 0x02000000 /* 32 Mbyte memory available */#define LOC_BASE_ADRS 0x40000000 /* Base of RAM *//* * The constants ROM_TEXT_ADRS, ROM_SIZE, and RAM_HIGH_ADRS are defined * in config.h, MakeSkel, Makefile, and Makefile.* * All definitions for these constants must be identical. */ #define ROM_BASE_ADRS 0xff000000 /* base address of ROM */#define ROM_TEXT_ADRS ROM_BASE_ADRS+ 0x100 #ifdef BOOT_FILE_ROM #define ROM_SIZE 0x100000 /* 512kbytes */ #else#define ROM_SIZE 0x100000 /* 1Mbytes */#endif#define CUBIT_BASE_ADRS 0x50000000 /* xiyong,add cubit-3 */#define CUBIT_SIZE 0x1000#define FLASH2_BASE_ADRS 0x70000000 /* xiyong,add cubit-3 */#define FLASH2_SIZE 0x200000#define ROM_WARM_ADRS (ROM_TEXT_ADRS+8) /* warm reboot entry *//* RAM address for ROM boot */#define RAM_HIGH_ADRS (LOCAL_MEM_LOCAL_ADRS + 0x00200000) /* RAM address for sys image */#define RAM_LOW_ADRS (LOCAL_MEM_LOCAL_ADRS + 0x00010000) #define USER_RESERVED_MEM 0x00000000 /* user reserved memory size *//* Address and size of MPC8260 Internal Memory Map */#define DEFAULT_IMM_ADRS 0x47000000#define IMM_SIZE 0x00020000 /* 128K of address space *//* Hard Reset Configuration Words */#ifdef BOOT_FILE_ROM#define HRCW_BYTE_0 0x04 /* 0x04 8 bit boot port, MSR(IP) = 0 */#else#define HRCW_BYTE_0 0x08 /* 0x08 16 bit boot port, MSR(IP) = 0 */#endif#define HRCW_BYTE_1 0xB2 /* 0x22 IMMR[0-14] = 0x0F00_0000 */#define HRCW_BYTE_2 0X02 /* 0x82 boot space = 0x0000_0000 */#define HRCW_BYTE_3 0X05 /* MODCK_H = 0101, core freq=200mhz, cpm =133mhz xiyong*//* * Default power management mode - selected via vxPowerModeSet() in * sysHwInit(). */#define DEFAULT_POWER_MGT_MODE VX_POWER_MODE_DISABLE#include "ads8260.h" /* include the ads8260 params */#endif /* INCconfigh */#if defined(PRJ_BUILD)#include "prjParams.h"#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -