Skip to content
Commit d6309113 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
parent 0450e91c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment