]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
board: ti: j722s: evm: Enable cache for J722s
authorChintan Vankar <c-vankar@ti.com>
Thu, 31 Jul 2025 07:59:50 +0000 (13:29 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 20 Aug 2025 17:06:19 +0000 (11:06 -0600)
Enable cache for J722s to optimize performance of CPU to access data from
memory.

Reviewed-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Signed-off-by: Chintan Vankar <c-vankar@ti.com>
board/ti/j722s/evm.c

index d2b94913c126d943957e4f399787bc6879cab4f5..32d767cb7d2cd04ce79f58fb137dcc27736ca4c9 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <asm/arch/hardware.h>
 #include <asm/io.h>
+#include <cpu_func.h>
 #include <dm/uclass.h>
 #include <env.h>
 #include <fdt_support.h>
 #include <asm/arch/k3-ddr.h>
 #include "../common/fdt_ops.h"
 
+#if IS_ENABLED(CONFIG_SPL_BUILD)
+void spl_board_init(void)
+{
+       enable_caches();
+}
+#endif
+
 #if defined(CONFIG_XPL_BUILD)
 void spl_perform_fixups(struct spl_image_info *spl_image)
 {