summaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier/bcu/bcu-sld3.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-uniphier/bcu/bcu-sld3.c')
-rw-r--r--arch/arm/mach-uniphier/bcu/bcu-sld3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-uniphier/bcu/bcu-sld3.c b/arch/arm/mach-uniphier/bcu/bcu-sld3.c
index 64efd37..99b318f 100644
--- a/arch/arm/mach-uniphier/bcu/bcu-sld3.c
+++ b/arch/arm/mach-uniphier/bcu/bcu-sld3.c
@@ -28,7 +28,7 @@ void uniphier_sld3_bcu_init(const struct uniphier_board_data *bd)
writel(0x24440000, BCSCR5);
/* Specify DDR channel */
- shift = (bd->dram_ch[1].base - bd->dram_ch[0].base) / 0x04000000 * 4;
+ shift = bd->dram_ch[0].size / 0x04000000 * 4;
writel(ch(shift), BCIPPCCHR2); /* 0x80000000-0x9fffffff */
shift -= 32;