diff options
author | Tom Rini <trini@ti.com> | 2013-07-25 08:22:08 -0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-07-25 08:51:51 -0400 |
commit | aaf5e825606a70ddc8fca8e366d8c16a6fd3cc7c (patch) | |
tree | 64eaea4d396dce4e0a30bb955b8240d4b199cdca /board/AndesTech/adp-ag101p/adp-ag101p.c | |
parent | 0b17998e509e5614633aee0a3c5d6248f8bc580b (diff) | |
parent | c54fd3efa497876a33cc3c6e7df514ae53abc729 (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-nds32
Diffstat (limited to 'board/AndesTech/adp-ag101p/adp-ag101p.c')
-rw-r--r-- | board/AndesTech/adp-ag101p/adp-ag101p.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/board/AndesTech/adp-ag101p/adp-ag101p.c b/board/AndesTech/adp-ag101p/adp-ag101p.c index ed0969f90e..dd8a66532a 100644 --- a/board/AndesTech/adp-ag101p/adp-ag101p.c +++ b/board/AndesTech/adp-ag101p/adp-ag101p.c @@ -35,7 +35,7 @@ int board_init(void) int dram_init(void) { unsigned long sdram_base = PHYS_SDRAM_0; - unsigned long expected_size = PHYS_SDRAM_0_SIZE; + unsigned long expected_size = PHYS_SDRAM_0_SIZE + PHYS_SDRAM_1_SIZE; unsigned long actual_size; actual_size = get_ram_size((void *)sdram_base, expected_size); @@ -50,6 +50,14 @@ int dram_init(void) return 0; } +void dram_init_banksize(void) +{ + gd->bd->bi_dram[0].start = PHYS_SDRAM_0; + gd->bd->bi_dram[0].size = PHYS_SDRAM_0_SIZE; + gd->bd->bi_dram[1].start = PHYS_SDRAM_1; + gd->bd->bi_dram[1].size = PHYS_SDRAM_1_SIZE; +} + int board_eth_init(bd_t *bd) { return ftmac100_initialize(bd); |