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 <Jiafei.Pan@nxp.com>
This commit is contained in:
Jiafei Pan 2025-05-08 17:11:20 +08:00 committed by Anas Nashif
commit a4f9cc90d0
2 changed files with 4 additions and 2 deletions

View file

@ -98,7 +98,7 @@ zephyr_compile_definitions_ifdef(
) )
zephyr_compile_definitions_ifdef( zephyr_compile_definitions_ifdef(
CONFIG_SOC_MIMX9596 CONFIG_CLOCK_CONTROL_ARM_SCMI
FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL=1 FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL=1
) )

View file

@ -38,7 +38,9 @@ endif()
set(CONFIG_MCUX_COMPONENT_device.system ON) set(CONFIG_MCUX_COMPONENT_device.system ON)
set(CONFIG_MCUX_COMPONENT_device.CMSIS ON) set(CONFIG_MCUX_COMPONENT_device.CMSIS ON)
if(NOT CONFIG_CLOCK_CONTROL_ARM_SCMI)
set(CONFIG_MCUX_COMPONENT_driver.clock ON) set(CONFIG_MCUX_COMPONENT_driver.clock ON)
endif()
# Exclude fsl_power.c for DSP domains # Exclude fsl_power.c for DSP domains
if(CONFIG_ARM) if(CONFIG_ARM)