diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2015-09-11 11:17:49 (GMT) |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2015-09-24 15:27:53 (GMT) |
commit | cf88affab6c46bc728d47fe2590c465734d78efb (patch) | |
tree | 24918bad7814f9a9877ed7033091d9b8ee154e3c /arch/arm/mach-uniphier/board_common.c | |
parent | 9628afa7f5cd6d752adc7bb77ea14fd639a66d03 (diff) | |
download | u-boot-cf88affab6c46bc728d47fe2590c465734d78efb.tar.xz |
ARM: uniphier: parse device tree to determine DRAM base and size
Device tree specifies the available memory ranges in its "/memory"
node. Use it to simplify the CONFIG defines.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/arm/mach-uniphier/board_common.c')
-rw-r--r-- | arch/arm/mach-uniphier/board_common.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/arm/mach-uniphier/board_common.c b/arch/arm/mach-uniphier/board_common.c index 5f2d5f6..967fa6c 100644 --- a/arch/arm/mach-uniphier/board_common.c +++ b/arch/arm/mach-uniphier/board_common.c @@ -18,15 +18,3 @@ int board_init(void) return 0; } - -#if CONFIG_NR_DRAM_BANKS >= 2 -void dram_init_banksize(void) -{ - DECLARE_GLOBAL_DATA_PTR; - - gd->bd->bi_dram[0].start = CONFIG_SDRAM0_BASE; - gd->bd->bi_dram[0].size = CONFIG_SDRAM0_SIZE; - gd->bd->bi_dram[1].start = CONFIG_SDRAM1_BASE; - gd->bd->bi_dram[1].size = CONFIG_SDRAM1_SIZE; -} -#endif |