diff options
author | Shawn Guo <shawn.gsc@gmail.com> | 2010-10-28 10:13:15 +0800 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2010-10-28 11:43:23 +0200 |
commit | 1ab027cbf6536f40348699a7b7bfa8bbedf88c8e (patch) | |
tree | ec7a68edd1a441505c7771e6df751344c5db9a07 /board/freescale | |
parent | 06982534b65f4ceddd124d0467c89dd7adf6d445 (diff) | |
download | u-boot-imx-1ab027cbf6536f40348699a7b7bfa8bbedf88c8e.zip u-boot-imx-1ab027cbf6536f40348699a7b7bfa8bbedf88c8e.tar.gz u-boot-imx-1ab027cbf6536f40348699a7b7bfa8bbedf88c8e.tar.bz2 |
mx51evk: support new relocation scheme
This patch is to fix build breakage and support new relocation
scheme for mx51evk.
- Correct IRAM base address and add size definition
The IRAM starts from 0x1FFE0000 on final revsion i.mx51 than
0x1FFE8000 which is for older revision.
- Include imx-regs.h in mx51evk.h
Definitions like CSD0_BASE_ADDR and IRAM_BASE_ADDR can be
referred to.
- Define CONFIG_SYS_INIT_RAM_ADDR and CONFIG_SYS_INIT_RAM_SIZE
They are used to define init RAM layout.
- Remove comment for CONFIG_SYS_GBL_DATA_SIZE which has been
buried by Wolfgang's commit below
25ddd1fb: Replace CONFIG_SYS_GBL_DATA_SIZE by auto-generated value
Signed-off-by: Shawn Guo <shawn.gsc@gmail.com>
Diffstat (limited to 'board/freescale')
-rw-r--r-- | board/freescale/mx51evk/mx51evk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/freescale/mx51evk/mx51evk.c b/board/freescale/mx51evk/mx51evk.c index 0b58b1b..2160d5a 100644 --- a/board/freescale/mx51evk/mx51evk.c +++ b/board/freescale/mx51evk/mx51evk.c @@ -52,9 +52,9 @@ u32 get_board_rev(void) int dram_init(void) { - gd->bd->bi_dram[0].start = PHYS_SDRAM_1; - gd->bd->bi_dram[0].size = get_ram_size((long *)PHYS_SDRAM_1, - PHYS_SDRAM_1_SIZE); + /* dram_init must store complete ramsize in gd->ram_size */ + gd->ram_size = get_ram_size((volatile void *)CONFIG_SYS_SDRAM_BASE, + PHYS_SDRAM_1_SIZE); return 0; } |