modules: hal_nxp: Load SDK common drver per architecture
- The fsl_common_dsp driver needs to be loaded when building xtensa projects and the fsl_common_arm driver needs to be loaded when building arm projects. - Add a condition to load power driver, because the power driver is needed to build RT700 arm core project, but it is not needed to build hifi core project. Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
This commit is contained in:
parent
2882dab78c
commit
e4a9467b25
2 changed files with 12 additions and 3 deletions
|
@ -39,7 +39,11 @@ endif()
|
|||
set(CONFIG_MCUX_COMPONENT_device.system ON)
|
||||
set(CONFIG_MCUX_COMPONENT_device.CMSIS ON)
|
||||
set(CONFIG_MCUX_COMPONENT_driver.clock ON)
|
||||
set(CONFIG_MCUX_COMPONENT_driver.power ON)
|
||||
|
||||
if((NOT CONFIG_SOC_MIMXRT798S_HIFI1) AND (NOT CONFIG_SOC_MIMXRT798S_HIFI4))
|
||||
set(CONFIG_MCUX_COMPONENT_driver.power ON)
|
||||
endif()
|
||||
|
||||
set(CONFIG_MCUX_COMPONENT_driver.reset ON)
|
||||
set(CONFIG_MCUX_COMPONENT_driver.memory ON)
|
||||
|
||||
|
|
|
@ -3,10 +3,15 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# fsl_common driver
|
||||
zephyr_library_sources(${MCUX_SDK_NG_DIR}/drivers/common/fsl_common.c
|
||||
${MCUX_SDK_NG_DIR}/drivers/common/fsl_common_arm.c)
|
||||
zephyr_library_sources(${MCUX_SDK_NG_DIR}/drivers/common/fsl_common.c)
|
||||
zephyr_include_directories(${MCUX_SDK_NG_DIR}/drivers/common)
|
||||
|
||||
if(CONFIG_ARCH STREQUAL "xtensa")
|
||||
zephyr_library_sources(${MCUX_SDK_NG_DIR}/drivers/common/fsl_common_dsp.c)
|
||||
elseif(CONFIG_ARCH STREQUAL "arm")
|
||||
zephyr_library_sources(${MCUX_SDK_NG_DIR}/drivers/common/fsl_common_arm.c)
|
||||
endif()
|
||||
|
||||
set_variable_ifdef(CONFIG_HWINFO_MCUX_SRC_V2 CONFIG_MCUX_COMPONENT_driver.src_2)
|
||||
set_variable_ifdef(CONFIG_GPIO_MCUX_IGPIO CONFIG_MCUX_COMPONENT_driver.igpio)
|
||||
set_variable_ifdef(CONFIG_ADC_MCUX_LPADC CONFIG_MCUX_COMPONENT_driver.lpadc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue