From a4f9cc90d027a62a2107fffae14cbe70c34420f4 Mon Sep 17 00:00:00 2001 From: Jiafei Pan Date: Thu, 8 May 2025 17:11:20 +0800 Subject: [PATCH] modules: hal_nxp: disable hal clock driver for SCMI clock If SCMI clock is used in Zephyr, it will not use hal clock API, so disable hal clock driver and also disable driver clock control in all the other hal drivers. Signed-off-by: Jiafei Pan --- modules/hal_nxp/mcux/CMakeLists.txt | 2 +- modules/hal_nxp/mcux/mcux-sdk-ng/device/device.cmake | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/hal_nxp/mcux/CMakeLists.txt b/modules/hal_nxp/mcux/CMakeLists.txt index d37d3a1b47c..312d028fb09 100644 --- a/modules/hal_nxp/mcux/CMakeLists.txt +++ b/modules/hal_nxp/mcux/CMakeLists.txt @@ -98,7 +98,7 @@ zephyr_compile_definitions_ifdef( ) zephyr_compile_definitions_ifdef( - CONFIG_SOC_MIMX9596 + CONFIG_CLOCK_CONTROL_ARM_SCMI FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL=1 ) diff --git a/modules/hal_nxp/mcux/mcux-sdk-ng/device/device.cmake b/modules/hal_nxp/mcux/mcux-sdk-ng/device/device.cmake index 693d03dbf1a..11ad59d1fa1 100644 --- a/modules/hal_nxp/mcux/mcux-sdk-ng/device/device.cmake +++ b/modules/hal_nxp/mcux/mcux-sdk-ng/device/device.cmake @@ -38,7 +38,9 @@ endif() set(CONFIG_MCUX_COMPONENT_device.system ON) set(CONFIG_MCUX_COMPONENT_device.CMSIS ON) -set(CONFIG_MCUX_COMPONENT_driver.clock ON) +if(NOT CONFIG_CLOCK_CONTROL_ARM_SCMI) + set(CONFIG_MCUX_COMPONENT_driver.clock ON) +endif() # Exclude fsl_power.c for DSP domains if(CONFIG_ARM)