Commit 848907c0 authored by Laurentiu Mihalcea's avatar Laurentiu Mihalcea Committed by Alberto Escolar
Browse files

soc: imx: imx95: enable cache management for M7



Enable cache management for the M7-based i.MX95 soc.

Signed-off-by: default avatarLaurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
parent d8663bf5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ config SOC_MIMX9596_M7
	select CPU_HAS_DCACHE
	select CPU_HAS_ARM_MPU
	select ARM_MPU
	select SOC_LATE_INIT_HOOK
	select HAS_MCUX

config SOC_MIMX9596_A55
+3 −0
Original line number Diff line number Diff line
@@ -19,4 +19,7 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
	int
	default 800000000

config CACHE_MANAGEMENT
	default y

endif # SOC_MIMX9596_M7
+3 −0
Original line number Diff line number Diff line
@@ -2,4 +2,7 @@

zephyr_include_directories(.)

zephyr_library()
zephyr_library_sources(soc.c)

set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "")
+15 −0
Original line number Diff line number Diff line
/*
 * Copyright 2024 NXP
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include <zephyr/cache.h>

void soc_late_init_hook(void)
{
#ifdef CONFIG_CACHE_MANAGEMENT
	sys_cache_data_enable();
	sys_cache_instr_enable();
#endif /* CONFIG_CACHE_MANAGEMENT */
}