]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
CM4000: fix missing RAM definitions for OpenGear boards
authorGreg Ungerer <greg.ungerer@opengear.com>
Fri, 9 Sep 2011 12:23:18 +0000 (22:23 +1000)
committerWolfgang Denk <wd@denx.de>
Fri, 9 Sep 2011 22:12:15 +0000 (00:12 +0200)
The OpenGear boards CM4008, CM4116 and CM4148 need their DRAM base
and RAM stack base addresses defined.

Fixes:

board.c: In function ‘__dram_init_banksize’:
board.c:227: error: ‘CONFIG_SYS_SDRAM_BASE’ undeclared (first use in this function)
board.c:227: error: (Each undeclared identifier is reported only once
board.c:227: error: for each function it appears in.)
board.c: In function ‘board_init_f’:
board.c:270: error: ‘CONFIG_SYS_INIT_SP_ADDR’ undeclared (first use in this function)
board.c:303: error: ‘CONFIG_SYS_SDRAM_BASE’ undeclared (first use in this function)

Signed-off-by: Greg Ungerer <greg.ungerer@opengear.com>
include/configs/cm4008.h
include/configs/cm41xx.h

index 6e4a3b45156dfabbfe6b91c8c1d439275e7c48b7..81e4de45d6e8f4b9339492fd267e594b147f5a59 100644 (file)
 #define CONFIG_NR_DRAM_BANKS   1          /* we have 1 bank of DRAM */
 #define PHYS_SDRAM_1           0x00000000 /* SDRAM Bank #1 */
 #define PHYS_SDRAM_1_SIZE      0x01000000 /* 16 MB */
+#define CONFIG_SYS_SDRAM_BASE  PHYS_SDRAM_1
+
+#define CONFIG_SYS_INIT_SP_ADDR        0x00020000 /* lowest 128k of RAM */
 
 #define PHYS_FLASH_1           0x02000000 /* Flash Bank #1 */
 #define PHYS_FLASH_SECT_SIZE    0x00020000 /* 128 KB sectors (x1) */
index dca7d54c6b5525145789bc56fb5183898bd7512f..785ab0a62a42a39a1da07726e5772d42a887a04e 100644 (file)
 #define CONFIG_NR_DRAM_BANKS   1          /* we have 1 bank of DRAM */
 #define PHYS_SDRAM_1           0x00000000 /* SDRAM Bank #1 */
 #define PHYS_SDRAM_1_SIZE      0x02000000 /* 32 MB */
+#define CONFIG_SYS_SDRAM_BASE  PHYS_SDRAM_1
+
+#define CONFIG_SYS_INIT_SP_ADDR        0x00020000 /* lowest 128k of RAM */
 
 #define PHYS_FLASH_1           0x02000000 /* Flash Bank #1 */
 #define PHYS_FLASH_SECT_SIZE    0x00020000 /* 128 KB sectors (x1) */