diff options
author | Neha Malcom Francis <n-francis@ti.com> | 2024-04-01 18:29:43 +0530 |
---|---|---|
committer | Praneeth Bajjuri <praneeth@ti.com> | 2024-05-03 14:37:19 -0500 |
commit | 55058018a69a7a5d3335da9f52e81b8d82532104 (patch) | |
tree | b9828607c43ff3f5d17f7d0201f17fe21a7d498e /board/ti/j721s2 | |
parent | e23fe21834b49e6f494cbb10b46801726b7fce36 (diff) |
board: ti: j7: evm.c: Propagate DT fixup in A72 SPL for enabled ECC
Call fixup_memory_node() in A72 SPL stage so that the memory changes
made by fixup_ddr_driver_for_ecc() by R5 SPL is propagated to the A72
U-Boot stage as well.
Fixes: 410888e38c7e ("board: ti: Pull redundant DDR functions to a common location and Fixup DDR size when ECC is enabled")
Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
Diffstat (limited to 'board/ti/j721s2')
-rw-r--r-- | board/ti/j721s2/evm.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/board/ti/j721s2/evm.c b/board/ti/j721s2/evm.c index 1bde20a17d..d2ebfc185b 100644 --- a/board/ti/j721s2/evm.c +++ b/board/ti/j721s2/evm.c @@ -81,8 +81,12 @@ static void __maybe_unused detect_enable_spinand(void *blob) void spl_perform_fixups(struct spl_image_info *spl_image) { detect_enable_spinand(spl_image->fdt_addr); - if (IS_ENABLED(CONFIG_K3_INLINE_ECC)) - fixup_ddr_driver_for_ecc(spl_image); + if (IS_ENABLED(CONFIG_TARGET_J721S2_R5_EVM)) { + if (IS_ENABLED(CONFIG_K3_INLINE_ECC)) + fixup_ddr_driver_for_ecc(spl_image); + } else { + fixup_memory_node(spl_image); + } } #endif |