📄 board.h.svn-base
字号:
/* * Board.h - System and memory specific configurations and * parameters. * * History: * 2006/10/27 SH, Lee Added Big model's support * *//* * SAMSUNG_SUPPORT - supports SAMSUNG SDRAM * Flash_AA21_GPA5 - supports big model *///#define SAMSUNG_SUPPORT#define CLOCKGEN_FREQ 35328000//#define MCR0_VAL 0xe2800000 //8M/16M//#define MCR0_VAL 0x52800000 //2M/8M//#define MCR0_VAL 0x62800000 //2M/16M#define MCR0_VAL 0xA2800000 //4M/16M//#define MCR0_VAL 0x02800000 //512/8M#define MCR1_VAL 0x1818ffff//#define MCR1_VAL 0xe825000a#define MCR2_VAL 0x00000CC9/* System interface *//*internal phy*///#define SICR_VAL 0xb8063a19 //for external phy & PCI//#define SICR_VAL 0xb8063818 //for internal phy #define SICR_VAL 0xb8063a09 //for external phy & PCI & disable JTAG/* Lexra Bus Arbitor */#define CPUC_VAL 0x0c0100FF //for device bus weighting#ifndef _ASMLANGUAGE#define N_MAC 2#define BOARD_BOOTLINE_SZ 8struct board_param_s{ char id[8]; /* ID, offset 0x0000 */ char bootline[BOARD_BOOTLINE_SZ];/* BootLine, offset 0x0008 */ char mac[N_MAC][8]; /* MACs, offset 0x0010 */ unsigned long entry; /* entry point, offset 0x0020 */ unsigned long load; /* load buffer, offset 0x0024 */ unsigned long app; /* application, offset 0x0028 */ unsigned long ip; /* IP, offset 0x002C */ unsigned long flash_size; //the size of flash, we support 1M/2M/4M/8M unsigned long mem_size; //the size of mem, we support 4M/8M/16M unsigned long MII_select; //MII selection: 0x00 Internal PHY 0x01: external PHY//shlee unsigned long reserved[4]; /* Reserved, offset 0x0030 */ unsigned long reserved[1]; /* Reserved, offset 0x0038 */};typedef struct board_param_s board_param_t, *board_param_p;#define BOARD_PARAM_SZ sizeof(board_param_t)#define BOARD_PARAM_ID "Berlin"#define BOARD_PARAM_BOOT "file"#define BOARD_PARAM_BOOT2 "re0"#define BOARD_PARAM_MAC "\x00\x23\x79\x11\x22\x33"#define BOARD_PARAM_ENTRY 0x80000000#define BOARD_PARAM_LOAD 0x80000000#define BOARD_PARAM_APP 0xBFC10000#define BOARD_PARAM_BAUD 115200#define BOARD_PARAM_IP 0xc0a80101 //192.168.1.1#define BOARD_PARAM_FLASHSIZE 4 // 2M flash#define BOARD_PARAM_MEMSIZE 16 // 8M SDRAM#define BOARD_PARAM_MIISEL 1 // Using EXt. PHY#define FLASH_TIMEOUT 1000 // ms//for web server#define DRAM_MAP_DLOAD_BUF_ADDR 0x80400000#define FLASH_BASE_ADDR 0xbfc00000 #define CONFIG_OSK_APP_SUPPORT 1#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -