From c8f34655fdabcc8252cb24fb5f11704403981038 Mon Sep 17 00:00:00 2001 From: Santhosh Kumar K Date: Wed, 21 Feb 2024 13:07:07 +0530 Subject: 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 Reviewed-by: Neha Malcom Francis --- board/ti/am62ax/evm.c | 2 -- board/ti/am62px/evm.c | 2 -- board/ti/am64x/evm.c | 2 -- 3 files changed, 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); -- cgit v1.2.3