1# Copyright (c) 2017-2021, NXP
2# SPDX-License-Identifier: Apache-2.0
3
4config SOC_FAMILY_IMX
5	bool
6	select HAS_SEGGER_RTT if ZEPHYR_SEGGER_MODULE
7
8if SOC_FAMILY_IMX
9
10config SOC_FAMILY
11	string
12	default "nxp_imx"
13
14
15# Used for default value in FLASH_MCUX_FLEXSPI_XIP
16DT_CHOSEN_Z_FLASH := zephyr,flash
17DT_COMPAT_FLEXSPI := nxp,imx-flexspi
18# Macros to shorten Kconfig definitions
19DT_CHOSEN_FLASH_NODE := $(dt_chosen_path,$(DT_CHOSEN_Z_FLASH))
20DT_CHOSEN_FLASH_PARENT := $(dt_node_parent,$(DT_CHOSEN_FLASH_NODE))
21
22
23source "soc/arm/nxp_imx/*/Kconfig.soc"
24
25config SOC_PART_NUMBER
26	default SOC_PART_NUMBER_IMX_RT5XX if SOC_SERIES_IMX_RT5XX
27	default SOC_PART_NUMBER_IMX_RT6XX if SOC_SERIES_IMX_RT6XX
28	default SOC_PART_NUMBER_IMX_RT if SOC_SERIES_IMX_RT
29	default SOC_PART_NUMBER_IMX_6X_M4 if SOC_SERIES_IMX_6X_M4
30	default SOC_PART_NUMBER_IMX7_M4 if SOC_SERIES_IMX7_M4
31	default SOC_PART_NUMBER_IMX8MM_M4 if SOC_SERIES_IMX8MM_M4
32	default SOC_PART_NUMBER_IMX8ML_M7 if SOC_SERIES_IMX8ML_M7
33	default SOC_PART_NUMBER_IMX8MQ_M4 if SOC_SERIES_IMX8MQ_M4
34
35config FLASH_MCUX_FLEXSPI_XIP
36	bool "MCUX FlexSPI flash access with xip"
37	default $(dt_node_has_compat,$(DT_CHOSEN_FLASH_PARENT),$(DT_COMPAT_FLEXSPI))
38	depends on (CODE_FLEXSPI || CODE_FLEXSPI2 || SOC_SERIES_IMX_RT6XX || SOC_SERIES_IMX_RT5XX)
39	select XIP
40	help
41	  Allows for the soc to safely initialize the clocks for the
42	  FlexSpi when planning to execute code in FlexSpi Memory.
43
44
45endif # SOC_FAMILY_IMX
46