mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
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>
This commit is contained in:
parent
ed25486215
commit
3a2175696d
1 changed files with 1 additions and 1 deletions
|
@ -664,6 +664,6 @@ unsigned long sunxi_dram_init(void)
|
|||
mctl_auto_detect_dram_size(¶);
|
||||
mctl_set_cr(¶);
|
||||
|
||||
return (1 << (para.row_bits + 3)) * para.page_size *
|
||||
return (1UL << (para.row_bits + 3)) * para.page_size *
|
||||
(para.dual_rank ? 2 : 1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue