diff options
author | Fabio Estevam <festevam@gmail.com> | 2011-06-11 15:16:32 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2011-06-21 22:26:21 +0200 |
commit | e845f9006a617eb4449e7dea9fd7493438db804e (patch) | |
tree | d0b1566fc117973eff43ad93a9b383aac8178f2d /board/mx1ads/mx1ads.c | |
parent | 22a9ea974bdf18e6adad5c4f80b1c60ef384690c (diff) | |
download | u-boot-e845f9006a617eb4449e7dea9fd7493438db804e.tar.gz |
mx1ads: Fix build by using new relocation scheme
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Diffstat (limited to 'board/mx1ads/mx1ads.c')
-rw-r--r-- | board/mx1ads/mx1ads.c | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/board/mx1ads/mx1ads.c b/board/mx1ads/mx1ads.c index f8ce2108c1..c11c0fe215 100644 --- a/board/mx1ads/mx1ads.c +++ b/board/mx1ads/mx1ads.c @@ -78,7 +78,7 @@ void SetAsynchMode (void) static u32 mc9328sid; -int board_init (void) +int board_early_init_f(void) { volatile unsigned int tmp; @@ -112,10 +112,6 @@ int board_init (void) SetAsynchMode (); - gd->bd->bi_arch_number = MACH_TYPE_MX1ADS; - - gd->bd->bi_boot_params = 0x08000100; /* adress of boot parameters */ - icache_enable (); dcache_enable (); @@ -133,6 +129,15 @@ int board_init (void) return 0; } +int board_init(void) +{ + gd->bd->bi_arch_number = MACH_TYPE_MX1ADS; + + gd->bd->bi_boot_params = 0x08000100; /* adress of boot parameters */ + + return 0; +} + int board_late_init (void) { @@ -161,12 +166,18 @@ int board_late_init (void) return 0; } -int dram_init (void) +int dram_init(void) +{ + /* dram_init must store complete ramsize in gd->ram_size */ + gd->ram_size = get_ram_size((volatile void *)PHYS_SDRAM_1, + PHYS_SDRAM_1_SIZE); + return 0; +} + +void dram_init_banksize(void) { gd->bd->bi_dram[0].start = PHYS_SDRAM_1; gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE; - - return 0; } #ifdef CONFIG_CMD_NET |