File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,11 @@ config SOC_MIMX94398_M33
14
14
select CPU_HAS_FPU
15
15
select CPU_HAS_ARM_MPU
16
16
select CPU_HAS_ARM_SAU
17
+ select CPU_HAS_ICACHE
17
18
select CPU_HAS_DCACHE
18
19
select ARM_MPU
19
20
select ARMV8_M_DSP
20
21
select HAS_MCUX
21
22
select HAS_MCUX_XCACHE
22
23
select INIT_ARCH_HW_AT_BOOT
24
+ select SOC_EARLY_INIT_HOOK
Original file line number Diff line number Diff line change @@ -27,4 +27,7 @@ endchoice
27
27
config ETH_NXP_IMX_MSGINTR
28
28
default 2
29
29
30
+ config CACHE_MANAGEMENT
31
+ default y
32
+
30
33
endif # SOC_MIMX94398_M33
Original file line number Diff line number Diff line change 4
4
* SPDX-License-Identifier: Apache-2.0
5
5
*/
6
6
7
+ #include <zephyr/cache.h>
7
8
#include <zephyr/device.h>
8
9
#include <zephyr/init.h>
9
10
#include <zephyr/kernel.h>
18
19
#define POWER_DOMAIN_STATE_ON 0x00000000
19
20
#define POWER_DOMAIN_STATE_OFF 0x40000000
20
21
22
+ void soc_early_init_hook (void )
23
+ {
24
+ #ifdef CONFIG_CACHE_MANAGEMENT
25
+ sys_cache_data_enable ();
26
+ sys_cache_instr_enable ();
27
+ #endif
28
+ }
29
+
21
30
#if defined(CONFIG_ETH_NXP_IMX_NETC ) && (DT_CHILD_NUM_STATUS_OKAY (DT_NODELABEL (netc )) != 0 )
22
31
/* The function is to reuse code for 250MHz NETC system clock and MACs clocks initialization */
23
32
static int soc_netc_clock_init (int clk_id )
You can’t perform that action at this time.
0 commit comments