u-boot-brain/arch/arm
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
..
cpu treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
dts ARM: dts: rk3328-rock64: Add SPI Flash support 2020-07-22 20:22:16 +08:00
include rockchip: ram: fix debug funcfion define when RAM_ROCKCHIP_DEBUG not set 2020-07-22 20:22:33 +08:00
lib treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-aspeed common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mach-at91 drivers: rename drivers to match compatible string 2020-07-09 18:57:22 -06:00
mach-bcm283x - add support for PCI and XHCI for RPi4 (64 bit only) 2020-07-10 14:31:22 -04:00
mach-bcmstb
mach-cortina board: presidio-asic: Add basic G3 engr. development board support 2020-02-07 16:16:01 -05:00
mach-davinci treewide: convert bd_t to struct bd_info manually 2020-07-17 10:46:44 -04:00
mach-exynos common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mach-highbank common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
mach-imx treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-integrator
mach-k3 arm: k3: use correct weak function name spl_board_prepare_for_linux 2020-07-13 20:58:34 +05:30
mach-keystone common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mach-kirkwood treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-lpc32xx treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-mediatek common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mach-meson treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-mvebu treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-omap2 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-orion5x treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-owl Actions: OWL: Calculate SDRAM size 2020-07-07 16:09:22 -04:00
mach-qemu qemu: don't allow to select 32- and 64-bit 2020-04-24 10:51:32 -04:00
mach-rmobile treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-rockchip rockchip: sdram: fix dram_init_banksize 2020-07-22 20:22:52 +08:00
mach-s5pc1xx common: Drop net.h from common header 2020-05-18 17:33:31 -04:00
mach-snapdragon common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mach-socfpga socfpga: Mark socfpga_fpga_add() as static inline in the non-FPGA case 2020-07-01 10:11:03 -04:00
mach-sti
mach-stm32 common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
mach-stm32mp treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-sunxi sunxi: Silence warning about non-static inline function 2020-06-01 22:38:08 +05:30
mach-tegra treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-u8500 common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
mach-uniphier treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-versal common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mach-versatile
mach-zynq common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mach-zynqmp common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mach-zynqmp-r5 common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
thumb1/include/asm/proc-armv
config.mk
Kconfig ARM: mx6: make CAAM usable on the i.MX6 boards 2020-07-16 11:20:08 +02:00
Kconfig.debug
Makefile rename symbol: CONFIG_STM32 -> CONFIG_ARCH_STM32 2020-05-15 14:47:35 -04:00