]> Git Repo - J-u-boot.git/commit
rockchip: Avoid #ifdefs in RK3399 SPL
authorSimon Glass <[email protected]>
Thu, 1 Aug 2024 12:47:23 +0000 (06:47 -0600)
committerTom Rini <[email protected]>
Mon, 5 Aug 2024 18:17:01 +0000 (12:17 -0600)
commitd63091137c8da5e1f3367c40ec607cd8918b8780
tree342a9cc519d0cc38d77ca82fde7a1426e121c498
parent0450e91c38d842593d2fcbdd7e1de8070e122efe
rockchip: Avoid #ifdefs in RK3399 SPL

The code here is confusing due to large blocks which are #ifdefed out.
Add a function phase_sdram_init() which returns whether SDRAM init
should happen in the current phase, using that as needed to control the
code flow.

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

Signed-off-by: Simon Glass <[email protected]>
drivers/ram/rockchip/sdram_rk3399.c
This page took 0.035152 seconds and 4 git commands to generate.