#define NOR_FLASH_MODE (0x00000002) /**< NOR */
#define NAND_FLASH_MODE (0x00000004) /**< NAND */
#define SD_MODE (0x00000005) /**< Secure Digital card */
-#define JTAG_MODE (0x00000000) /**< JTAG */
+#define JTAG_MODE (0x00000000) /**< JTAG */
DECLARE_GLOBAL_DATA_PTR;
int dram_init(void)
{
- gd->ram_size = PHYS_SDRAM_1_SIZE;
+ gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
+ CONFIG_SYS_SDRAM_SIZE);
+ gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+ gd->bd->bi_dram[0].size = CONFIG_SYS_SDRAM_SIZE;
return 0;
}
#define CONFIG_IPADDR 192.168.0.99
#define CONFIG_SERVERIP 192.168.0.101
+#define CONFIG_SYS_SDRAM_BASE 0
+#define CONFIG_SYS_SDRAM_SIZE PHYS_SDRAM_1_SIZE
+
/* Serial drivers */
#define CONFIG_BAUDRATE 115200
#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 38400, 115200 }