1#
2# Copyright 2024 NXP
3#
4# SPDX-License-Identifier: Apache-2.0
5#
6
7# Pass this flag so the SDK I2C, UART and SPI drivers do not init the LP
8# Flexcomm SDK driver
9zephyr_compile_definitions_ifdef(CONFIG_NXP_LP_FLEXCOMM LPFLEXCOMM_INIT_NOT_USED_IN_DRIVER=1)
10
11zephyr_sources(soc.c)
12
13if(CONFIG_FLASH_MCUX_FLEXSPI_NOR)
14  zephyr_sources(flash_clock_setup.c)
15  if(CONFIG_FLASH_MCUX_FLEXSPI_XIP)
16    zephyr_code_relocate(FILES flash_clock_setup.c LOCATION ${CONFIG_FLASH_MCUX_FLEXSPI_XIP_MEM}_TEXT)
17  endif()
18endif()
19
20zephyr_include_directories(.)
21
22set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "")
23