summaryrefslogtreecommitdiff
path: root/arch/sh
diff options
context:
space:
mode:
authorAlex Bee <knaerzche@gmail.com>2020-07-15 01:03:31 +0200
committerKever Yang <kever.yang@rock-chips.com>2020-07-22 20:22:52 +0800
commit90f740a06ae5e5e09ae03b1d204cb88a21df8ea3 (patch)
tree782c0a52752c86eccea1437098e55561193e9ba1 /arch/sh
parentad415c80a511e5969942b3a24190a56c52dc5fb7 (diff)
rockchip: sdram: fix dram_init_banksize
Currently 2.5 GB is calculated as DRAM size for a 1 GB RK322x board if CONFIG_SPL_OPTEE is set. This is troublesome when booting a linux kernel since this size will be injected in FDT of the kernel. gd->bd->bi_dram[0].start (which is basically CONFIG_SYS_SDRAM_BASE) must not be taken into consideration for calculation of second bank size, since this offset is already included in calculation of "top". After applying this patch 992 MB (1024 MB - 32 MB reserved for optee-os) is correctly calculated and has also been verified on 2 GB boards. Signed-off-by: Alex Bee <knaerzche@gmail.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'arch/sh')
0 files changed, 0 insertions, 0 deletions