summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Przywara <[email protected]>2017-01-02 11:48:44 +0000
committerJagan Teki <[email protected]>2017-01-04 16:37:43 +0100
commit3a2175696d97eff0f6fae1edfab2bb19e28b9eae (patch)
tree1cd7578702c8ef86bc4e9c69856471109524ff04
parented25486215148cb0a8ed4459aa74d04bacbcd3c3 (diff)
sunxi: DRAM: fix H3 DRAM size display on aarch64
Fix the output of the DRAM size on AArch64 SPLs. Signed-off-by: Andre Przywara <[email protected]> Reviewed-by: Alexander Graf <[email protected]> Reviewed-by: Simon Glass <[email protected]> Acked-by: Maxime Ripard <[email protected]> Reviewed-by: Jagan Teki <[email protected]>
-rw-r--r--arch/arm/mach-sunxi/dram_sun8i_h3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-sunxi/dram_sun8i_h3.c b/arch/arm/mach-sunxi/dram_sun8i_h3.c
index 1311edaf325..9f7cc7fd4cc 100644
--- a/arch/arm/mach-sunxi/dram_sun8i_h3.c
+++ b/arch/arm/mach-sunxi/dram_sun8i_h3.c
@@ -664,6 +664,6 @@ unsigned long sunxi_dram_init(void)
mctl_auto_detect_dram_size(&para);
mctl_set_cr(&para);
- return (1 << (para.row_bits + 3)) * para.page_size *
+ return (1UL << (para.row_bits + 3)) * para.page_size *
(para.dual_rank ? 2 : 1);
}