diff options
author | Eric Benard <eric@eukrea.com> | 2011-04-03 06:35:55 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2011-04-27 19:38:10 +0200 |
commit | 632f8fdf4c4fae8343409be13d5e028cd4eee32d (patch) | |
tree | 7b48a340844a1ca4e0cbac22c10e32c9abc9b88b /board/eukrea/cpuat91/cpuat91.c | |
parent | 00d10eb0410d2459727307d5eea562247959db2f (diff) | |
download | u-boot-imx-632f8fdf4c4fae8343409be13d5e028cd4eee32d.zip u-boot-imx-632f8fdf4c4fae8343409be13d5e028cd4eee32d.tar.gz u-boot-imx-632f8fdf4c4fae8343409be13d5e028cd4eee32d.tar.bz2 |
cpuat91: fix board support
- fix board support following relocation changes
- switch to boards.cfg
- disable i2c to keep size under 128kiB (1 sector)
Signed-off-by: Eric BĂ©nard <eric@eukrea.com>
Diffstat (limited to 'board/eukrea/cpuat91/cpuat91.c')
-rw-r--r-- | board/eukrea/cpuat91/cpuat91.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/board/eukrea/cpuat91/cpuat91.c b/board/eukrea/cpuat91/cpuat91.c index cd4d42c..4c4dad6 100644 --- a/board/eukrea/cpuat91/cpuat91.c +++ b/board/eukrea/cpuat91/cpuat91.c @@ -47,24 +47,23 @@ int board_init(void) /* arch number of CPUAT91-Board */ gd->bd->bi_arch_number = MACH_TYPE_CPUAT91; /* adress of boot parameters */ - gd->bd->bi_boot_params = PHYS_SDRAM + 0x100; + gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; return 0; } int dram_init(void) { - gd->bd->bi_dram[0].start = PHYS_SDRAM; - gd->bd->bi_dram[0].size = PHYS_SDRAM_SIZE; + /* dram_init must store complete ramsize in gd->ram_size */ + gd->ram_size = get_ram_size((volatile long *)CONFIG_SYS_SDRAM_BASE, + CONFIG_SYS_SDRAM_SIZE); return 0; } #ifdef CONFIG_DRIVER_AT91EMAC int board_eth_init(bd_t *bis) { - int rc = 0; - rc = at91emac_register(bis, 0); - return rc; + return at91emac_register(bis, (u32) AT91_EMAC_BASE); } #endif |