soc: arm: imx_rt10xx: enable code cache during boot
For certain combinations of configuration parameters, z_arm_init_arch_hw_at_boot() disables the instruction cache. Make sure to re-enable it if required. Signed-off-by: Jan Peters <peters@kt-elektronik.de>
This commit is contained in:
parent
117bf6b0da
commit
b9235faf22
1 changed files with 5 additions and 0 deletions
|
@ -292,6 +292,11 @@ static int imxrt_init(void)
|
|||
#ifndef CONFIG_IMXRT1XXX_CODE_CACHE
|
||||
/* SystemInit enables code cache, disable it here */
|
||||
SCB_DisableICache();
|
||||
#else
|
||||
/* z_arm_init_arch_hw_at_boot() disables code cache if CONFIG_ARCH_CACHE is enabled,
|
||||
* enable it here.
|
||||
*/
|
||||
SCB_EnableICache();
|
||||
#endif
|
||||
|
||||
if (IS_ENABLED(CONFIG_IMXRT1XXX_DATA_CACHE)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue