summaryrefslogtreecommitdiff
path: root/board/ti/j784s4
diff options
context:
space:
mode:
Diffstat (limited to 'board/ti/j784s4')
-rw-r--r--board/ti/j784s4/evm.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/board/ti/j784s4/evm.c b/board/ti/j784s4/evm.c
index 7e7f4a5593..64bedf6ff4 100644
--- a/board/ti/j784s4/evm.c
+++ b/board/ti/j784s4/evm.c
@@ -80,8 +80,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_J784S4_R5_EVM)) {
+ if (IS_ENABLED(CONFIG_K3_INLINE_ECC))
+ fixup_ddr_driver_for_ecc(spl_image);
+ } else {
+ fixup_memory_node(spl_image);
+ }
}
#endif
@@ -90,12 +94,7 @@ int ft_board_setup(void *blob, struct bd_info *bd)
{
int ret;
- ret = fdt_fixup_msmc_ram(blob, "/bus@100000", "sram@70000000");
- if (ret < 0)
- ret = fdt_fixup_msmc_ram(blob, "/interconnect@100000",
- "sram@70000000");
- if (ret)
- printf("%s: fixing up msmc ram failed %d\n", __func__, ret);
+ ret = fdt_fixup_msmc_ram_k3(blob);
detect_enable_spinand(blob);