u-boot-brain/arch
Alex Bee 90f740a06a 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>
2020-07-22 20:22:52 +08:00
..
arc common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
arm rockchip: sdram: fix dram_init_banksize 2020-07-22 20:22:52 +08:00
m68k treewide: convert bd_t to struct bd_info manually 2020-07-17 10:46:44 -04:00
microblaze Remove CROSS_COMPILE default from arch/*/config.mk 2020-07-01 10:11:03 -04:00
mips common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
nds32 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
nios2 Remove CROSS_COMPILE default from arch/*/config.mk 2020-07-01 10:11:03 -04:00
powerpc treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
riscv Merge branch 'next' 2020-07-06 15:46:38 -04:00
sandbox dm: acpi: Enhance acpi_get_name() 2020-07-17 14:32:24 +08:00
sh treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
x86 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
xtensa Remove CROSS_COMPILE default from arch/*/config.mk 2020-07-01 10:11:03 -04:00
.gitignore
Kconfig acpi: Enable ACPI table generation by default on x86 2020-07-17 14:32:24 +08:00
u-boot-elf.lds arch: Add explicit linker script for u-boot-elf 2020-04-03 11:52:55 -04:00