CM4000: fix missing RAM definitions for OpenGear boards
PATCH 1/1 CM4000: fix missing RAM definitions for OpenGear boards
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)
--- include/configs/cm4008.h | 3 +++ include/configs/cm41xx.h | 3 +++ 2 files changed, 6 insertions(+), 0 deletions(-)
include/configs/cm4008.h +3 -0
@@ -114,6 +114,9 @@#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) */
include/configs/cm41xx.h +3 -0
@@ -114,6 +114,9 @@#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) */
Signature · 1 line
1.7.4.1
Wolfgang Denk
AppliedPATCH 1/1 CM4000: fix missing RAM definitions for OpenGear boards
Dear Greg Ungerer,
Quoted 13 lines · In message <[email protected]> you…
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)
Quoted 5 lines
Signed-off-by Greg Ungerer <[email protected]>--- include/configs/cm4008.h | 3 +++ include/configs/cm41xx.h | 3 +++ 2 files changed, 6 insertions(+), 0 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de HANDLE WITH EXTREME CARE: This Product Contains Minute Electrically Charged Particles Moving at Velocities in Excess of Five Hundred Million Miles Per Hour.