summaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier/memconf.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-02-05 10:52:12 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-02-23 08:37:56 +0900
commit04cd4e7215d30431b736ef89c16d241c50a90c37 (patch)
treeb46fbd5ce22dac559d413253d5d60646f12d6dde /arch/arm/mach-uniphier/memconf.c
parentcf3175bcd8b21a87276016aceb9d7992a2151fca (diff)
downloadu-boot-04cd4e7215d30431b736ef89c16d241c50a90c37.tar.gz
ARM: uniphier: remove DRAM base address from board parameters
The base address of each DRAM channel can be calculated from other parameters, so does not need hard-coding. What we need is the size of each DRAM channel and DRAM_SPARSE flag to decide the start address of DRAM channel 1. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/arm/mach-uniphier/memconf.c')
-rw-r--r--arch/arm/mach-uniphier/memconf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-uniphier/memconf.c b/arch/arm/mach-uniphier/memconf.c
index dcfc6455ba..4ced2cbace 100644
--- a/arch/arm/mach-uniphier/memconf.c
+++ b/arch/arm/mach-uniphier/memconf.c
@@ -93,7 +93,7 @@ static int __uniphier_memconf_init(const struct uniphier_board_data *bd,
}
/* is sparse mem? */
- if (bd->dram_ch[0].base + bd->dram_ch[0].size < bd->dram_ch[1].base)
+ if (bd->flags & UNIPHIER_BD_DRAM_SPARSE)
val |= SG_MEMCONF_SPARSEMEM;
if (!have_ch2)