]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: Ensure memory size is available in RK3399 SPL
authorSimon Glass <sjg@chromium.org>
Thu, 1 Aug 2024 12:47:22 +0000 (06:47 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 5 Aug 2024 18:17:01 +0000 (12:17 -0600)
commit0450e91c38d842593d2fcbdd7e1de8070e122efe
treea07a980ca14a93ef0f8859079358aa56d4bdfeee
parentcafde93ec02d654a092ee5b3fd0ed706347a9744
rockchip: Ensure memory size is available in RK3399 SPL

At present gd->ram_size is 0 in SPL, meaning that it is not possible to
enable the cache. Correct this by always populating the RAM size
correctly.

This increases code size by about 500 bytes in SPL, since it must call
the rather large rockchip_sdram_size() function.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
drivers/ram/rockchip/sdram_rk3399.c