[PATCH 10/13] board: ti: am62px: evm: Enable cache for AM62p

Chintan Vankar c-vankar at ti.com
Tue Jan 7 10:38:37 CET 2025


From: Andreas Dannenberg <dannenberg at ti.com>

Enable cache to support Ethernet boot for AM62p-SK.

Signed-off-by: Andreas Dannenberg <dannenberg at ti.com>
Signed-off-by: Chintan Vankar <c-vankar at ti.com>
---
 board/ti/am62px/evm.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/board/ti/am62px/evm.c b/board/ti/am62px/evm.c
index 7362fa4520a..2a85af980c7 100644
--- a/board/ti/am62px/evm.c
+++ b/board/ti/am62px/evm.c
@@ -9,6 +9,7 @@
 #include <efi_loader.h>
 #include <asm/arch/hardware.h>
 #include <asm/io.h>
+#include <cpu_func.h>
 #include <dm/uclass.h>
 #include <env.h>
 #include <fdt_support.h>
@@ -53,6 +54,13 @@ int board_init(void)
 	return 0;
 }
 
+#if IS_ENABLED(CONFIG_SPL_BUILD)
+void spl_board_init(void)
+{
+	enable_caches();
+}
+#endif
+
 int dram_init(void)
 {
 	return fdtdec_setup_mem_size_base();
-- 
2.34.1



More information about the U-Boot mailing list