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

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

index 2e85363cf5feb4807cebef92da590e66479b6a0a..c06e3878d67dd84c9434f5e5b782840bf0062403 100644 (file)
@@ -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>
@@ -41,6 +42,13 @@ struct efi_capsule_update_info update_info = {
        .images = fw_images,
 };
 
+#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)
 {