commit | 08d4ba4e729698a86eadb955dec39b539877a000 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Thu Aug 01 06:47:23 2024 -0600 |
committer | Tom Rini <trini@konsulko.com> | Mon Aug 05 12:17:01 2024 -0600 |
tree | 342a9cc519d0cc38d77ca82fde7a1426e121c498 | |
parent | c5c33be23d8a07966c2c410f6761a5944f4b41e5 [diff] |
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>