diff options
author | Santhosh Kumar K <s-k6@ti.com> | 2024-02-21 13:07:07 +0530 |
---|---|---|
committer | Francesco Dolcini <francesco.dolcini@toradex.com> | 2024-03-21 14:26:33 +0000 |
commit | c8f34655fdabcc8252cb24fb5f11704403981038 (patch) | |
tree | 4d1ca2fafa5c4a6fcd890d3357aacd261926c4ea | |
parent | b700c8bd92fca1d72104b7e5f94b42fd4879457d (diff) |
board: ti: am6*x: evm: Fix up incorrect RAM size for AM62A and AM62P
The fixup_memory_node() does no change in AM64, AM62A and AM62P when
ECC is not enabled. Instead, it causes an issue of fixing up the RAM
size as 2GB instead of 4GB and 8GB for AM62A and AM62P because the
fix up is done by the R5 SPL and R5 being a 32-bit processor, the
gd->bd->bi_dram[bank].start and gd->bd->bi_dram[bank].size values are
restricted to 32-bits. So, remove the fixup_memory_node() from
spl_perform_fixups() in AM64, AM62A and AM62P's evm files.
Fixes: 410888e38c7e ("board: ti: Pull redundant DDR functions to a common location and Fixup DDR size when ECC is enabled")
Signed-off-by: Santhosh Kumar K <s-k6@ti.com>
Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
-rw-r--r-- | board/ti/am62ax/evm.c | 2 | ||||
-rw-r--r-- | board/ti/am62px/evm.c | 2 | ||||
-rw-r--r-- | board/ti/am64x/evm.c | 2 |
3 files changed, 0 insertions, 6 deletions
diff --git a/board/ti/am62ax/evm.c b/board/ti/am62ax/evm.c index 8b3fced0a2..6e6dc3dce5 100644 --- a/board/ti/am62ax/evm.c +++ b/board/ti/am62ax/evm.c @@ -35,8 +35,6 @@ void spl_perform_fixups(struct spl_image_info *spl_image) { if (IS_ENABLED(CONFIG_K3_INLINE_ECC)) fixup_ddr_driver_for_ecc(spl_image); - else - fixup_memory_node(spl_image); } #endif diff --git a/board/ti/am62px/evm.c b/board/ti/am62px/evm.c index 3cbada5405..6e06003f21 100644 --- a/board/ti/am62px/evm.c +++ b/board/ti/am62px/evm.c @@ -55,8 +55,6 @@ void spl_perform_fixups(struct spl_image_info *spl_image) { if (IS_ENABLED(CONFIG_K3_INLINE_ECC)) fixup_ddr_driver_for_ecc(spl_image); - else - fixup_memory_node(spl_image); } static int video_setup(void) diff --git a/board/ti/am64x/evm.c b/board/ti/am64x/evm.c index e990ba0d43..89b7c7524a 100644 --- a/board/ti/am64x/evm.c +++ b/board/ti/am64x/evm.c @@ -105,8 +105,6 @@ void spl_perform_fixups(struct spl_image_info *spl_image) { if (IS_ENABLED(CONFIG_K3_INLINE_ECC)) fixup_ddr_driver_for_ecc(spl_image); - else - fixup_memory_node(spl_image); #if CONFIG_IS_ENABLED(USB_STORAGE) fixup_usb_boot(spl_image->fdt_addr); |