summaryrefslogtreecommitdiff
path: root/arch/arm/mach-sunxi/dram_sun8i_h3.c
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2017-01-02 11:48:44 +0000
committerJagan Teki <jagan@openedev.com>2017-01-04 16:37:43 +0100
commit3a2175696d97eff0f6fae1edfab2bb19e28b9eae (patch)
tree1cd7578702c8ef86bc4e9c69856471109524ff04 /arch/arm/mach-sunxi/dram_sun8i_h3.c
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 <andre.przywara@arm.com> Reviewed-by: Alexander Graf <agraf@suse.de> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Reviewed-by: Jagan Teki <jagan@openedev.com>
Diffstat (limited to 'arch/arm/mach-sunxi/dram_sun8i_h3.c')
-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 1311edaf32..9f7cc7fd4c 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);
}