Skip to content
Snippets Groups Projects
Commit 857d638c authored by Thomas Hebb's avatar Thomas Hebb Committed by Kever Yang
Browse files

rockchip: allow DRAM init in SPL


The common SPL removed SoC-specific code for RK3399's SPL and in the
process caused the previously-unconditional DRAM initialization in
board_init_f() to only happen when compiling a configuration that does not
support TPL, meaning DRAM never gets initialized if TPL is supported but
disabled.

Fix this by omitting the DRAM init in SPL only when we are configured to
also build a TPL. This fixes custom configurations that have disabled
TPL, and it should also unbreak the "ficus-rk3399", "rock960-rk3399",
and "chromebook_bob" defconfigs, although since I don't have any of
those devices I can't confirm they're broken now.

Fixes: b7abef2e ("rockchip: rk3399: Migrate to use common spl board file")

Signed-off-by: default avatarThomas Hebb <tommyhebb@gmail.com>
Reviewed-by: default avatarKever Yang <kever.yang@rock-chips.com>
parent 220697a3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment