summaryrefslogtreecommitdiff
path: root/board/ti/am62px
diff options
context:
space:
mode:
Diffstat (limited to 'board/ti/am62px')
-rw-r--r--board/ti/am62px/evm.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/board/ti/am62px/evm.c b/board/ti/am62px/evm.c
index 23716ed99a..341bc48ba8 100644
--- a/board/ti/am62px/evm.c
+++ b/board/ti/am62px/evm.c
@@ -17,6 +17,7 @@
#include <splash.h>
#include "../common/rtc.c"
+#include "../common/k3-ddr-init.h"
#if CONFIG_IS_ENABLED(SPLASH_SCREEN)
static struct splash_location default_splash_locations[] = {
@@ -49,17 +50,15 @@ int board_init(void)
return 0;
}
-int dram_init(void)
-{
- return fdtdec_setup_mem_size_base();
-}
-
-int dram_init_banksize(void)
+#if defined(CONFIG_SPL_BUILD)
+void spl_perform_fixups(struct spl_image_info *spl_image)
{
- return fdtdec_setup_memory_banksize();
+ if (IS_ENABLED(CONFIG_K3_INLINE_ECC))
+ fixup_ddr_driver_for_ecc(spl_image);
+ else
+ fixup_memory_node(spl_image);
}
-#if defined(CONFIG_SPL_BUILD)
static int video_setup(void)
{
if (CONFIG_IS_ENABLED(VIDEO)) {