Line 5... |
Line 5... |
/* System clock frequecy */
|
/* System clock frequecy */
|
#define SYS_CLK 25000000
|
#define SYS_CLK 25000000
|
|
|
/* Memory organization */
|
/* Memory organization */
|
#define SRAM_BASE_ADD 0x00000000
|
#define SRAM_BASE_ADD 0x00000000
|
#define FLASH_BASE_ADD 0x04000000
|
#define FLASH_BASE_ADD 0xf0000000
|
|
|
/* Devices base address */
|
/* Devices base address */
|
#define UART_BASE_ADD 0x90000000
|
#define UART_BASE_ADD 0x90000000
|
#define MC_BASE_ADD 0x60000000
|
#define MC_BASE_ADD 0x93000000
|
#define CRT_BASE_ADD 0xc0000000
|
#define CRT_BASE_ADD 0x97000000
|
#define FBMEM_BASE_ADD 0xa8000000
|
#define FBMEM_BASE_ADD 0xa8000000
|
#define ETH_BASE_ADD 0xd0000000
|
#define ETH_BASE_ADD 0x92000000
|
#define KBD_BASE_ADD 0x98000000
|
#define KBD_BASE_ADD 0x94000000
|
|
|
/* Define this if you want to use I and/or D cache */
|
/* Define this if you want to use I and/or D cache */
|
#define ICACHE 0
|
#define ICACHE 0
|
#define DCACHE 0
|
#define DCACHE 0
|
|
|
Line 43... |
Line 43... |
/* Define this if you are using MC */
|
/* Define this if you are using MC */
|
#define MC_INIT 1
|
#define MC_INIT 1
|
|
|
/* Memory controller initialize values */
|
/* Memory controller initialize values */
|
#define MC_CSR_VAL 0x0B000300
|
#define MC_CSR_VAL 0x0B000300
|
#define MC_MASK_VAL 0x000000e0
|
#define MC_MASK_VAL 0x000003f0
|
#define FLASH_BASE_ADD 0x04000000
|
#define FLASH_TMS_VAL 0x00000103
|
#define FLASH_TMS_VAL 0x00102102
|
|
#define SDRAM_BASE_ADD 0x00000000
|
#define SDRAM_BASE_ADD 0x00000000
|
#define SDRAM_TMS_VAL 0x07248230
|
#define SDRAM_TMS_VAL 0x19220057
|
|
|
/* Define ethernet MAC address */
|
/* Define ethernet MAC address */
|
#define MACADDR0 0x00
|
#define MACADDR0 0x00
|
#define MACADDR1 0x01
|
#define MACADDR1 0x01
|
#define MACADDR2 0x02
|
#define MACADDR2 0x02
|