From 40176967678a5f8ce0de27a252695eb68f34c878 Mon Sep 17 00:00:00 2001 From: Mahesh Mahadevan Date: Mon, 13 Oct 2025 13:17:35 -0500 Subject: [PATCH] drivers: hal_nxp: Disable quick access for Cortex-A only Not needed on Cortex-A as all code and data is in DDR memory and there is no quickaccess section in the Cortex-A linker script. Signed-off-by: Mahesh Mahadevan --- modules/hal_nxp/mcux/CMakeLists.txt | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/modules/hal_nxp/mcux/CMakeLists.txt b/modules/hal_nxp/mcux/CMakeLists.txt index e6ef5875bce79..08c4c5b59593e 100644 --- a/modules/hal_nxp/mcux/CMakeLists.txt +++ b/modules/hal_nxp/mcux/CMakeLists.txt @@ -74,14 +74,18 @@ endif() # CONFIG_SOC_SDKNG_UNSUPPORTED enable_language(C ASM) -zephyr_linker_sources(RWDATA - ${ZEPHYR_CURRENT_MODULE_DIR}/mcux/quick_access_data.ld - ) +if(CONFIG_CPU_CORTEX_A) + zephyr_compile_definitions(FSL_SDK_DRIVER_QUICK_ACCESS_DISABLE) +else() + zephyr_linker_sources(RWDATA + ${ZEPHYR_CURRENT_MODULE_DIR}/mcux/quick_access_data.ld + ) -zephyr_linker_sources_ifdef(CONFIG_ARCH_HAS_RAMFUNC_SUPPORT - RAMFUNC_SECTION - ${ZEPHYR_CURRENT_MODULE_DIR}/mcux/quick_access_code.ld - ) + zephyr_linker_sources_ifdef(CONFIG_ARCH_HAS_RAMFUNC_SUPPORT + RAMFUNC_SECTION + ${ZEPHYR_CURRENT_MODULE_DIR}/mcux/quick_access_code.ld + ) +endif() zephyr_linker_sources_ifdef(CONFIG_NOCACHE_MEMORY NOCACHE_SECTION @@ -107,8 +111,6 @@ zephyr_compile_definitions_ifdef( I2C_RETRY_TIMES=40000 ) -zephyr_compile_definitions(FSL_SDK_DRIVER_QUICK_ACCESS_DISABLE) - # note: if FSL_IRQSTEER_ENABLE_MASTER_INT is not # defined then it will automatically be defined # and set to 1 via fsl_irqsteer.h