diff options
author | Simon Glass <sjg@chromium.org> | 2024-08-01 06:47:23 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-08-05 12:17:01 -0600 |
commit | d63091137c8da5e1f3367c40ec607cd8918b8780 (patch) | |
tree | 342a9cc519d0cc38d77ca82fde7a1426e121c498 /doc | |
parent | 0450e91c38d842593d2fcbdd7e1de8070e122efe (diff) | |
download | u-boot-d63091137c8da5e1f3367c40ec607cd8918b8780.tar.gz u-boot-d63091137c8da5e1f3367c40ec607cd8918b8780.tar.bz2 u-boot-d63091137c8da5e1f3367c40ec607cd8918b8780.zip |
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 <sjg@chromium.org>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions