162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_cimenuconfig ARCH_MXC
362306a36Sopenharmony_ci	bool "Freescale i.MX family"
462306a36Sopenharmony_ci	depends on ((ARCH_MULTI_V4T || ARCH_MULTI_V5) && CPU_LITTLE_ENDIAN) || \
562306a36Sopenharmony_ci		ARCH_MULTI_V6_V7 || ARM_SINGLE_ARMV7M
662306a36Sopenharmony_ci	select CLKSRC_IMX_GPT
762306a36Sopenharmony_ci	select GENERIC_IRQ_CHIP
862306a36Sopenharmony_ci	select GPIOLIB
962306a36Sopenharmony_ci	select PINCTRL
1062306a36Sopenharmony_ci	select PM_OPP if PM
1162306a36Sopenharmony_ci	select SOC_BUS
1262306a36Sopenharmony_ci	select SRAM
1362306a36Sopenharmony_ci	help
1462306a36Sopenharmony_ci	  Support for Freescale MXC/iMX-based family of processors
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ciif ARCH_MXC
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ciconfig MXC_TZIC
1962306a36Sopenharmony_ci	bool
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ciconfig MXC_AVIC
2262306a36Sopenharmony_ci	bool
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ciconfig HAVE_IMX_ANATOP
2562306a36Sopenharmony_ci	bool
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ciconfig HAVE_IMX_GPC
2862306a36Sopenharmony_ci	bool
2962306a36Sopenharmony_ci	select PM_GENERIC_DOMAINS if PM
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ciconfig HAVE_IMX_MMDC
3262306a36Sopenharmony_ci	bool
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ciconfig HAVE_IMX_SRC
3562306a36Sopenharmony_ci	def_bool y if SMP
3662306a36Sopenharmony_ci	select ARCH_HAS_RESET_CONTROLLER
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ciif ARCH_MULTI_V6
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_cicomment "ARM1136 platforms"
4162306a36Sopenharmony_ci
4262306a36Sopenharmony_ciconfig SOC_IMX31
4362306a36Sopenharmony_ci	bool "i.MX31 support"
4462306a36Sopenharmony_ci	select CPU_V6
4562306a36Sopenharmony_ci	select MXC_AVIC
4662306a36Sopenharmony_ci	help
4762306a36Sopenharmony_ci	  This enables support for Freescale i.MX31 processor
4862306a36Sopenharmony_ci
4962306a36Sopenharmony_ciconfig SOC_IMX35
5062306a36Sopenharmony_ci	bool "i.MX35 support"
5162306a36Sopenharmony_ci	select MXC_AVIC
5262306a36Sopenharmony_ci	select PINCTRL_IMX35
5362306a36Sopenharmony_ci	help
5462306a36Sopenharmony_ci	  This enables support for Freescale i.MX35 processor
5562306a36Sopenharmony_ci
5662306a36Sopenharmony_ciendif
5762306a36Sopenharmony_ci
5862306a36Sopenharmony_ciif ARCH_MULTI_V4T
5962306a36Sopenharmony_ci
6062306a36Sopenharmony_ciconfig SOC_IMX1
6162306a36Sopenharmony_ci	bool "i.MX1 support"
6262306a36Sopenharmony_ci	select CPU_ARM920T
6362306a36Sopenharmony_ci	select MXC_AVIC
6462306a36Sopenharmony_ci	select PINCTRL_IMX1
6562306a36Sopenharmony_ci	help
6662306a36Sopenharmony_ci	  This enables support for Freescale i.MX1 processor
6762306a36Sopenharmony_ci
6862306a36Sopenharmony_ciendif
6962306a36Sopenharmony_ci
7062306a36Sopenharmony_ciif ARCH_MULTI_V5
7162306a36Sopenharmony_ci
7262306a36Sopenharmony_ciconfig SOC_IMX25
7362306a36Sopenharmony_ci	bool "i.MX25 support"
7462306a36Sopenharmony_ci	select CPU_ARM926T
7562306a36Sopenharmony_ci	select MXC_AVIC
7662306a36Sopenharmony_ci	select PINCTRL_IMX25
7762306a36Sopenharmony_ci	help
7862306a36Sopenharmony_ci	  This enables support for Freescale i.MX25 processor
7962306a36Sopenharmony_ci
8062306a36Sopenharmony_ciconfig SOC_IMX27
8162306a36Sopenharmony_ci	bool "i.MX27 support"
8262306a36Sopenharmony_ci	select CPU_ARM926T
8362306a36Sopenharmony_ci	select MXC_AVIC
8462306a36Sopenharmony_ci	select PINCTRL_IMX27
8562306a36Sopenharmony_ci	help
8662306a36Sopenharmony_ci	  This enables support for Freescale i.MX27 processor
8762306a36Sopenharmony_ci
8862306a36Sopenharmony_ciendif
8962306a36Sopenharmony_ci
9062306a36Sopenharmony_ciif ARCH_MULTI_V7
9162306a36Sopenharmony_ci
9262306a36Sopenharmony_cicomment "Cortex-A platforms"
9362306a36Sopenharmony_ci
9462306a36Sopenharmony_ciconfig SOC_IMX5
9562306a36Sopenharmony_ci	bool
9662306a36Sopenharmony_ci	select HAVE_IMX_SRC
9762306a36Sopenharmony_ci	select MXC_TZIC
9862306a36Sopenharmony_ci
9962306a36Sopenharmony_ciconfig SOC_IMX50
10062306a36Sopenharmony_ci	bool "i.MX50 support"
10162306a36Sopenharmony_ci	select PINCTRL_IMX50
10262306a36Sopenharmony_ci	select SOC_IMX5
10362306a36Sopenharmony_ci
10462306a36Sopenharmony_ci	help
10562306a36Sopenharmony_ci	  This enables support for Freescale i.MX50 processor.
10662306a36Sopenharmony_ci
10762306a36Sopenharmony_ciconfig SOC_IMX51
10862306a36Sopenharmony_ci	bool "i.MX51 support"
10962306a36Sopenharmony_ci	select PINCTRL_IMX51
11062306a36Sopenharmony_ci	select SOC_IMX5
11162306a36Sopenharmony_ci	help
11262306a36Sopenharmony_ci	  This enables support for Freescale i.MX51 processor
11362306a36Sopenharmony_ci
11462306a36Sopenharmony_ciconfig SOC_IMX53
11562306a36Sopenharmony_ci	bool "i.MX53 support"
11662306a36Sopenharmony_ci	select PINCTRL_IMX53
11762306a36Sopenharmony_ci	select SOC_IMX5
11862306a36Sopenharmony_ci
11962306a36Sopenharmony_ci	help
12062306a36Sopenharmony_ci	  This enables support for Freescale i.MX53 processor.
12162306a36Sopenharmony_ci
12262306a36Sopenharmony_ciconfig SOC_IMX6
12362306a36Sopenharmony_ci	bool
12462306a36Sopenharmony_ci	select ARM_CPU_SUSPEND if (PM || CPU_IDLE)
12562306a36Sopenharmony_ci	select ARM_GIC
12662306a36Sopenharmony_ci	select HAVE_IMX_ANATOP
12762306a36Sopenharmony_ci	select HAVE_IMX_GPC
12862306a36Sopenharmony_ci	select HAVE_IMX_MMDC
12962306a36Sopenharmony_ci	select HAVE_IMX_SRC
13062306a36Sopenharmony_ci	select MFD_SYSCON
13162306a36Sopenharmony_ci	select PL310_ERRATA_769419 if CACHE_L2X0
13262306a36Sopenharmony_ci
13362306a36Sopenharmony_ciconfig SOC_IMX6Q
13462306a36Sopenharmony_ci	bool "i.MX6 Quad/DualLite support"
13562306a36Sopenharmony_ci	select ARM_ERRATA_764369 if SMP
13662306a36Sopenharmony_ci	select ARM_ERRATA_754322
13762306a36Sopenharmony_ci	select ARM_ERRATA_775420
13862306a36Sopenharmony_ci	select HAVE_ARM_SCU if SMP
13962306a36Sopenharmony_ci	select HAVE_ARM_TWD
14062306a36Sopenharmony_ci	select PINCTRL_IMX6Q
14162306a36Sopenharmony_ci	select SOC_IMX6
14262306a36Sopenharmony_ci
14362306a36Sopenharmony_ci	help
14462306a36Sopenharmony_ci	  This enables support for Freescale i.MX6 Quad processor.
14562306a36Sopenharmony_ci
14662306a36Sopenharmony_ciconfig SOC_IMX6SL
14762306a36Sopenharmony_ci	bool "i.MX6 SoloLite support"
14862306a36Sopenharmony_ci	select ARM_ERRATA_754322
14962306a36Sopenharmony_ci	select ARM_ERRATA_775420
15062306a36Sopenharmony_ci	select PINCTRL_IMX6SL
15162306a36Sopenharmony_ci	select SOC_IMX6
15262306a36Sopenharmony_ci
15362306a36Sopenharmony_ci	help
15462306a36Sopenharmony_ci	  This enables support for Freescale i.MX6 SoloLite processor.
15562306a36Sopenharmony_ci
15662306a36Sopenharmony_ciconfig SOC_IMX6SLL
15762306a36Sopenharmony_ci	bool "i.MX6 SoloLiteLite support"
15862306a36Sopenharmony_ci	select ARM_ERRATA_754322
15962306a36Sopenharmony_ci	select ARM_ERRATA_775420
16062306a36Sopenharmony_ci	select PINCTRL_IMX6SLL
16162306a36Sopenharmony_ci	select SOC_IMX6
16262306a36Sopenharmony_ci
16362306a36Sopenharmony_ci	help
16462306a36Sopenharmony_ci	  This enables support for Freescale i.MX6 SoloLiteLite processor.
16562306a36Sopenharmony_ci
16662306a36Sopenharmony_ciconfig SOC_IMX6SX
16762306a36Sopenharmony_ci	bool "i.MX6 SoloX support"
16862306a36Sopenharmony_ci	select ARM_ERRATA_754322
16962306a36Sopenharmony_ci	select ARM_ERRATA_775420
17062306a36Sopenharmony_ci	select PINCTRL_IMX6SX
17162306a36Sopenharmony_ci	select SOC_IMX6
17262306a36Sopenharmony_ci
17362306a36Sopenharmony_ci	help
17462306a36Sopenharmony_ci	  This enables support for Freescale i.MX6 SoloX processor.
17562306a36Sopenharmony_ci
17662306a36Sopenharmony_ciconfig SOC_IMX6UL
17762306a36Sopenharmony_ci	bool "i.MX6 UltraLite support"
17862306a36Sopenharmony_ci	select PINCTRL_IMX6UL
17962306a36Sopenharmony_ci	select SOC_IMX6
18062306a36Sopenharmony_ci	select ARM_ERRATA_814220
18162306a36Sopenharmony_ci
18262306a36Sopenharmony_ci	help
18362306a36Sopenharmony_ci	  This enables support for Freescale i.MX6 UltraLite processor.
18462306a36Sopenharmony_ci
18562306a36Sopenharmony_ciconfig SOC_LS1021A
18662306a36Sopenharmony_ci	bool "Freescale LS1021A support"
18762306a36Sopenharmony_ci	select ARM_GIC
18862306a36Sopenharmony_ci	select HAVE_ARM_ARCH_TIMER
18962306a36Sopenharmony_ci	select ZONE_DMA if ARM_LPAE
19062306a36Sopenharmony_ci	help
19162306a36Sopenharmony_ci	  This enables support for Freescale LS1021A processor.
19262306a36Sopenharmony_ci
19362306a36Sopenharmony_ciendif
19462306a36Sopenharmony_ci
19562306a36Sopenharmony_ciif ARCH_MULTI_V7 || ARM_SINGLE_ARMV7M
19662306a36Sopenharmony_ci
19762306a36Sopenharmony_cicomment "Cortex-A/Cortex-M asymmetric multiprocessing platforms"
19862306a36Sopenharmony_ci
19962306a36Sopenharmony_ciconfig SOC_IMX7D_CA7
20062306a36Sopenharmony_ci	bool
20162306a36Sopenharmony_ci	select ARM_GIC
20262306a36Sopenharmony_ci	select HAVE_ARM_ARCH_TIMER
20362306a36Sopenharmony_ci	select HAVE_IMX_ANATOP
20462306a36Sopenharmony_ci	select HAVE_IMX_MMDC
20562306a36Sopenharmony_ci	select HAVE_IMX_SRC
20662306a36Sopenharmony_ci	select IMX_GPCV2
20762306a36Sopenharmony_ci
20862306a36Sopenharmony_ciconfig SOC_IMX7D_CM4
20962306a36Sopenharmony_ci	bool
21062306a36Sopenharmony_ci	select ARMV7M_SYSTICK
21162306a36Sopenharmony_ci
21262306a36Sopenharmony_ciconfig SOC_IMX7D
21362306a36Sopenharmony_ci	bool "i.MX7 Dual support"
21462306a36Sopenharmony_ci	select PINCTRL_IMX7D
21562306a36Sopenharmony_ci	select SOC_IMX7D_CA7 if ARCH_MULTI_V7
21662306a36Sopenharmony_ci	select SOC_IMX7D_CM4 if ARM_SINGLE_ARMV7M
21762306a36Sopenharmony_ci	select ARM_ERRATA_814220 if ARCH_MULTI_V7
21862306a36Sopenharmony_ci	help
21962306a36Sopenharmony_ci	  This enables support for Freescale i.MX7 Dual processor.
22062306a36Sopenharmony_ci
22162306a36Sopenharmony_ciconfig SOC_IMX7ULP
22262306a36Sopenharmony_ci	bool "i.MX7ULP support"
22362306a36Sopenharmony_ci	select CLKSRC_IMX_TPM
22462306a36Sopenharmony_ci	select PINCTRL_IMX7ULP
22562306a36Sopenharmony_ci	select SOC_IMX7D_CA7 if ARCH_MULTI_V7
22662306a36Sopenharmony_ci	select SOC_IMX7D_CM4 if ARM_SINGLE_ARMV7M
22762306a36Sopenharmony_ci	help
22862306a36Sopenharmony_ci	  This enables support for Freescale i.MX7 Ultra Low Power processor.
22962306a36Sopenharmony_ci
23062306a36Sopenharmony_ciconfig SOC_IMXRT
23162306a36Sopenharmony_ci	bool "i.MXRT support"
23262306a36Sopenharmony_ci	depends on ARM_SINGLE_ARMV7M
23362306a36Sopenharmony_ci	select ARMV7M_SYSTICK if ARM_SINGLE_ARMV7M
23462306a36Sopenharmony_ci	help
23562306a36Sopenharmony_ci	  This enables support for Freescale i.MXRT Crossover processor.
23662306a36Sopenharmony_ci
23762306a36Sopenharmony_ciconfig SOC_VF610
23862306a36Sopenharmony_ci	bool "Vybrid Family VF610 support"
23962306a36Sopenharmony_ci	select ARM_GIC if ARCH_MULTI_V7
24062306a36Sopenharmony_ci	select PINCTRL_VF610
24162306a36Sopenharmony_ci
24262306a36Sopenharmony_ci	help
24362306a36Sopenharmony_ci	  This enables support for Freescale Vybrid VF610 processor.
24462306a36Sopenharmony_ci
24562306a36Sopenharmony_cichoice
24662306a36Sopenharmony_ci	prompt "Clocksource for scheduler clock"
24762306a36Sopenharmony_ci	depends on SOC_VF610
24862306a36Sopenharmony_ci	default VF_USE_ARM_GLOBAL_TIMER
24962306a36Sopenharmony_ci
25062306a36Sopenharmony_ci	config VF_USE_ARM_GLOBAL_TIMER
25162306a36Sopenharmony_ci		bool "Use ARM Global Timer"
25262306a36Sopenharmony_ci		depends on ARCH_MULTI_V7
25362306a36Sopenharmony_ci		select ARM_GLOBAL_TIMER
25462306a36Sopenharmony_ci		select CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
25562306a36Sopenharmony_ci		help
25662306a36Sopenharmony_ci		  Use the ARM Global Timer as clocksource
25762306a36Sopenharmony_ci
25862306a36Sopenharmony_ci	config VF_USE_PIT_TIMER
25962306a36Sopenharmony_ci		bool "Use PIT timer"
26062306a36Sopenharmony_ci		select VF_PIT_TIMER
26162306a36Sopenharmony_ci		help
26262306a36Sopenharmony_ci		  Use SoC Periodic Interrupt Timer (PIT) as clocksource
26362306a36Sopenharmony_ci
26462306a36Sopenharmony_ciendchoice
26562306a36Sopenharmony_ci
26662306a36Sopenharmony_ciendif
26762306a36Sopenharmony_ci
26862306a36Sopenharmony_ciendif
269