Kconfig 12.8 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0-only
2
menuconfig ARCH_MXC
3 4
	bool "Freescale i.MX family"
	depends on ARCH_MULTI_V4_V5 || ARCH_MULTI_V6_V7 || ARM_SINGLE_ARMV7M
J
Johannes Berg 已提交
5
	select ARCH_SUPPORTS_BIG_ENDIAN
6
	select CLKSRC_IMX_GPT
S
Shawn Guo 已提交
7
	select GENERIC_IRQ_CHIP
8
	select GPIOLIB
9
	select PINCTRL
10
	select PM_OPP if PM
11
	select SOC_BUS
12
	select SRAM
S
Shawn Guo 已提交
13 14 15
	help
	  Support for Freescale MXC/iMX-based family of processors

16
if ARCH_MXC
S
Shawn Guo 已提交
17 18 19 20 21 22 23 24 25

config MXC_TZIC
	bool

config MXC_AVIC
	bool

config MXC_DEBUG_BOARD
	bool "Enable MXC debug board(for 3-stack)"
26
	depends on MACH_MX27_3DS || MACH_MX31_3DS || MACH_MX35_3DS
S
Shawn Guo 已提交
27 28 29 30 31 32 33 34 35
	help
	  The debug board is an integral part of the MXC 3-stack(PDK)
	  platforms, it can be attached or removed from the peripheral
	  board. On debug board, several debug devices(ethernet, UART,
	  buttons, LEDs and JTAG) are implemented. Between the MCU and
	  these devices, a CPLD is added as a bridge which performs
	  data/address de-multiplexing and decode, signal level shift,
	  interrupt control and various board functions.

36 37 38
config HAVE_IMX_ANATOP
	bool

39 40
config HAVE_IMX_GPC
	bool
41
	select PM_GENERIC_DOMAINS if PM
42 43 44 45 46

config HAVE_IMX_MMDC
	bool

config HAVE_IMX_SRC
47
	def_bool y if SMP
48
	select ARCH_HAS_RESET_CONTROLLER
49

50 51 52 53 54 55
config IMX_HAVE_IOMUX_V1
	bool

config ARCH_MXC_IOMUX_V3
	bool

56 57 58 59 60 61 62 63 64
config SOC_IMX31
	bool
	select CPU_V6
	select MXC_AVIC

config SOC_IMX35
	bool
	select ARCH_MXC_IOMUX_V3
	select MXC_AVIC
65
	select PINCTRL_IMX35
66

S
Shawn Guo 已提交
67
if ARCH_MULTI_V6
68 69 70 71 72

comment "MX31 platforms:"

config MACH_MX31ADS
	bool "Support MX31ADS platforms"
73
	default y
74 75 76
	select IMX_HAVE_PLATFORM_IMX_I2C
	select IMX_HAVE_PLATFORM_IMX_SSI
	select IMX_HAVE_PLATFORM_IMX_UART
77
	select SOC_IMX31
78 79 80 81 82 83 84 85
	help
	  Include support for MX31ADS platform. This includes specific
	  configurations for the board and its peripherals.

config MACH_MX31ADS_WM1133_EV1
	bool "Support Wolfson Microelectronics 1133-EV1 module"
	depends on MACH_MX31ADS
	depends on MFD_WM8350_I2C
86
	depends on REGULATOR_WM8350 = y
87 88 89 90 91 92 93 94 95 96 97
	help
	  Include support for the Wolfson Microelectronics 1133-EV1 PMU
	  and audio module for the MX31ADS platform.

config MACH_MX31LILLY
	bool "Support MX31 LILLY-1131 platforms (INCO startec)"
	select IMX_HAVE_PLATFORM_IMX_UART
	select IMX_HAVE_PLATFORM_IPU_CORE
	select IMX_HAVE_PLATFORM_MXC_EHCI
	select IMX_HAVE_PLATFORM_MXC_MMC
	select IMX_HAVE_PLATFORM_SPI_IMX
98
	select USB_ULPI_VIEWPORT if USB_ULPI
99
	select SOC_IMX31
100 101 102 103 104 105 106 107 108 109 110 111 112
	help
	  Include support for mx31 based LILLY1131 modules. This includes
	  specific configurations for the board and its peripherals.

config MACH_MX31LITE
	bool "Support MX31 LITEKIT (LogicPD)"
	select IMX_HAVE_PLATFORM_IMX2_WDT
	select IMX_HAVE_PLATFORM_IMX_UART
	select IMX_HAVE_PLATFORM_MXC_EHCI
	select IMX_HAVE_PLATFORM_MXC_MMC
	select IMX_HAVE_PLATFORM_MXC_NAND
	select IMX_HAVE_PLATFORM_MXC_RTC
	select IMX_HAVE_PLATFORM_SPI_IMX
113
	select LEDS_GPIO_REGISTER
114
	select USB_ULPI_VIEWPORT if USB_ULPI
115
	select SOC_IMX31
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
	help
	  Include support for MX31 LITEKIT platform. This includes specific
	  configurations for the board and its peripherals.

config MACH_PCM037
	bool "Support Phytec pcm037 (i.MX31) platforms"
	select IMX_HAVE_PLATFORM_FSL_USB2_UDC
	select IMX_HAVE_PLATFORM_IMX2_WDT
	select IMX_HAVE_PLATFORM_IMX_I2C
	select IMX_HAVE_PLATFORM_IMX_UART
	select IMX_HAVE_PLATFORM_IPU_CORE
	select IMX_HAVE_PLATFORM_MXC_EHCI
	select IMX_HAVE_PLATFORM_MXC_MMC
	select IMX_HAVE_PLATFORM_MXC_NAND
	select IMX_HAVE_PLATFORM_MXC_W1
131
	select USB_ULPI_VIEWPORT if USB_ULPI
132
	select SOC_IMX31
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
	help
	  Include support for Phytec pcm037 platform. This includes
	  specific configurations for the board and its peripherals.

config MACH_PCM037_EET
	bool "Support pcm037 EET board extensions"
	depends on MACH_PCM037
	select IMX_HAVE_PLATFORM_GPIO_KEYS
	select IMX_HAVE_PLATFORM_SPI_IMX
	help
	  Add support for PCM037 EET baseboard extensions. If you are using the
	  OLED display with EET, use "video=mx3fb:CMEL-OLED" kernel
	  command-line parameter.

config MACH_MX31_3DS
	bool "Support MX31PDK (3DS)"
	select IMX_HAVE_PLATFORM_FSL_USB2_UDC
	select IMX_HAVE_PLATFORM_IMX2_WDT
	select IMX_HAVE_PLATFORM_IMX_I2C
	select IMX_HAVE_PLATFORM_IMX_KEYPAD
153
	select IMX_HAVE_PLATFORM_IMX_SSI
154 155 156
	select IMX_HAVE_PLATFORM_IMX_UART
	select IMX_HAVE_PLATFORM_IPU_CORE
	select IMX_HAVE_PLATFORM_MXC_EHCI
157
	select IMX_HAVE_PLATFORM_MXC_MMC
158 159
	select IMX_HAVE_PLATFORM_MXC_NAND
	select IMX_HAVE_PLATFORM_SPI_IMX
160
	select MXC_DEBUG_BOARD
161
	select USB_ULPI_VIEWPORT if USB_ULPI
162
	select SOC_IMX31
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
	help
	  Include support for MX31PDK (3DS) platform. This includes specific
	  configurations for the board and its peripherals.

config MACH_MX31_3DS_MXC_NAND_USE_BBT
	bool "Make the MXC NAND driver use the in flash Bad Block Table"
	depends on MACH_MX31_3DS
	depends on MTD_NAND_MXC
	help
	  Enable this if you want that the MXC NAND driver uses the in flash
	  Bad Block Table to know what blocks are bad instead of scanning the
	  entire flash looking for bad block markers.

config MACH_MX31MOBOARD
	bool "Support mx31moboard platforms (EPFL Mobots group)"
	select IMX_HAVE_PLATFORM_FSL_USB2_UDC
179
	select IMX_HAVE_PLATFORM_IMX2_WDT
180
	select IMX_HAVE_PLATFORM_IMX_I2C
181
	select IMX_HAVE_PLATFORM_IMX_SSI
182 183 184 185 186
	select IMX_HAVE_PLATFORM_IMX_UART
	select IMX_HAVE_PLATFORM_IPU_CORE
	select IMX_HAVE_PLATFORM_MXC_EHCI
	select IMX_HAVE_PLATFORM_MXC_MMC
	select IMX_HAVE_PLATFORM_SPI_IMX
187
	select LEDS_GPIO_REGISTER
188
	select USB_ULPI_VIEWPORT if USB_ULPI
189
	select SOC_IMX31
190 191 192 193 194 195
	help
	  Include support for mx31moboard platform. This includes specific
	  configurations for the board and its peripherals.

config MACH_QONG
	bool "Support Dave/DENX QongEVB-LITE platform"
196
	select IMX_HAVE_PLATFORM_IMX2_WDT
197 198
	select IMX_HAVE_PLATFORM_IMX_UART
	select SOC_IMX31
199 200 201 202 203 204 205 206 207 208 209 210 211
	help
	  Include support for Dave/DENX QongEVB-LITE platform. This includes
	  specific configurations for the board and its peripherals.

config MACH_ARMADILLO5X0
	bool "Support Atmark Armadillo-500 Development Base Board"
	select IMX_HAVE_PLATFORM_GPIO_KEYS
	select IMX_HAVE_PLATFORM_IMX_I2C
	select IMX_HAVE_PLATFORM_IMX_UART
	select IMX_HAVE_PLATFORM_IPU_CORE
	select IMX_HAVE_PLATFORM_MXC_EHCI
	select IMX_HAVE_PLATFORM_MXC_MMC
	select IMX_HAVE_PLATFORM_MXC_NAND
212
	select USB_ULPI_VIEWPORT if USB_ULPI
213
	select SOC_IMX31
214 215 216 217 218 219 220
	help
	  Include support for Atmark Armadillo-500 platform. This includes
	  specific configurations for the board and its peripherals.

config MACH_KZM_ARM11_01
	bool "Support KZM-ARM11-01(Kyoto Microcomputer)"
	select IMX_HAVE_PLATFORM_IMX_UART
221
	select SOC_IMX31
222 223 224 225 226 227 228
	help
	  Include support for KZM-ARM11-01. This includes specific
	  configurations for the board and its peripherals.

config MACH_BUG
	bool "Support Buglabs BUGBase platform"
	default y
229 230
	select IMX_HAVE_PLATFORM_IMX_UART
	select SOC_IMX31
231 232 233 234
	help
	  Include support for BUGBase 1.3 platform. This includes specific
	  configurations for the board and its peripherals.

235 236 237 238 239 240 241
config MACH_IMX31_DT
	bool "Support i.MX31 platforms from device tree"
	select SOC_IMX31
	help
	  Include support for Freescale i.MX31 based platforms
	  using the device tree for discovery.

242 243
comment "MX35 platforms:"

244 245 246 247 248 249 250
config MACH_IMX35_DT
	bool "Support i.MX35 platforms from device tree"
	select SOC_IMX35
	help
	  Include support for Freescale i.MX35 based platforms
	  using the device tree for discovery.

251 252 253 254 255 256 257 258 259 260 261 262
config MACH_PCM043
	bool "Support Phytec pcm043 (i.MX35) platforms"
	select IMX_HAVE_PLATFORM_FLEXCAN
	select IMX_HAVE_PLATFORM_FSL_USB2_UDC
	select IMX_HAVE_PLATFORM_IMX2_WDT
	select IMX_HAVE_PLATFORM_IMX_I2C
	select IMX_HAVE_PLATFORM_IMX_SSI
	select IMX_HAVE_PLATFORM_IMX_UART
	select IMX_HAVE_PLATFORM_IPU_CORE
	select IMX_HAVE_PLATFORM_MXC_EHCI
	select IMX_HAVE_PLATFORM_MXC_NAND
	select IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX
263
	select USB_ULPI_VIEWPORT if USB_ULPI
264
	select SOC_IMX35
265 266 267 268 269 270 271 272
	help
	  Include support for Phytec pcm043 platform. This includes
	  specific configurations for the board and its peripherals.

config MACH_MX35_3DS
	bool "Support MX35PDK platform"
	select IMX_HAVE_PLATFORM_FSL_USB2_UDC
	select IMX_HAVE_PLATFORM_IMX2_WDT
273
	select IMX_HAVE_PLATFORM_IMX_FB
274 275
	select IMX_HAVE_PLATFORM_IMX_I2C
	select IMX_HAVE_PLATFORM_IMX_UART
276
	select IMX_HAVE_PLATFORM_IPU_CORE
277 278
	select IMX_HAVE_PLATFORM_MXC_EHCI
	select IMX_HAVE_PLATFORM_MXC_NAND
279
	select IMX_HAVE_PLATFORM_MXC_RTC
280
	select IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX
281 282
	select MXC_DEBUG_BOARD
	select SOC_IMX35
283 284 285 286 287 288 289 290 291 292
	help
	  Include support for MX35PDK platform. This includes specific
	  configurations for the board and its peripherals.

config MACH_VPR200
	bool "Support VPR200 platform"
	select IMX_HAVE_PLATFORM_FSL_USB2_UDC
	select IMX_HAVE_PLATFORM_GPIO_KEYS
	select IMX_HAVE_PLATFORM_IMX2_WDT
	select IMX_HAVE_PLATFORM_IMX_I2C
293
	select IMX_HAVE_PLATFORM_IMX_UART
294 295 296 297
	select IMX_HAVE_PLATFORM_IPU_CORE
	select IMX_HAVE_PLATFORM_MXC_EHCI
	select IMX_HAVE_PLATFORM_MXC_NAND
	select IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX
298
	select SOC_IMX35
299 300 301 302
	help
	  Include support for VPR200 platform. This includes specific
	  configurations for the board and its peripherals.

S
Shawn Guo 已提交
303 304
endif

305 306 307 308 309 310 311 312 313 314 315 316
if ARCH_MULTI_V4T

config SOC_IMX1
	bool "i.MX1 support"
	select CPU_ARM920T
	select MXC_AVIC
	select PINCTRL_IMX1
	help
	  This enables support for Freescale i.MX1 processor

endif

317 318
if ARCH_MULTI_V5

319 320 321 322 323 324 325 326
config SOC_IMX25
	bool "i.MX25 support"
	select ARCH_MXC_IOMUX_V3
	select CPU_ARM926T
	select MXC_AVIC
	select PINCTRL_IMX25
	help
	  This enables support for Freescale i.MX25 processor
327 328 329 330 331 332 333 334 335 336

config SOC_IMX27
	bool "i.MX27 support"
	select IMX_HAVE_IOMUX_V1
	select CPU_ARM926T
	select MXC_AVIC
	select PINCTRL_IMX27
	help
	  This enables support for Freescale i.MX27 processor

337 338
endif

S
Shawn Guo 已提交
339 340
if ARCH_MULTI_V7

341
comment "Cortex-A platforms"
342

343 344 345 346 347
config SOC_IMX5
	bool
	select HAVE_IMX_SRC
	select MXC_TZIC

348 349
config	SOC_IMX50
	bool "i.MX50 support"
350
	select PINCTRL_IMX50
351 352 353 354 355
	select SOC_IMX5

	help
	  This enables support for Freescale i.MX50 processor.

S
Shawn Guo 已提交
356
config SOC_IMX51
357
	bool "i.MX51 support"
S
Shawn Guo 已提交
358 359
	select PINCTRL_IMX51
	select SOC_IMX5
360 361 362
	help
	  This enables support for Freescale i.MX51 processor

363 364 365
config	SOC_IMX53
	bool "i.MX53 support"
	select PINCTRL_IMX53
366
	select SOC_IMX5
367 368

	help
369
	  This enables support for Freescale i.MX53 processor.
370

371 372
config SOC_IMX6
	bool
373
	select ARM_CPU_SUSPEND if (PM || CPU_IDLE)
374
	select ARM_GIC
375
	select HAVE_IMX_ANATOP
376 377
	select HAVE_IMX_GPC
	select HAVE_IMX_MMDC
378
	select HAVE_IMX_SRC
379
	select MFD_SYSCON
380
	select PL310_ERRATA_769419 if CACHE_L2X0
381

382 383 384
config SOC_IMX6Q
	bool "i.MX6 Quad/DualLite support"
	select ARM_ERRATA_764369 if SMP
385 386
	select ARM_ERRATA_754322
	select ARM_ERRATA_775420
387
	select HAVE_ARM_SCU if SMP
388
	select HAVE_ARM_TWD
389 390 391
	select PINCTRL_IMX6Q
	select SOC_IMX6

392 393 394
	help
	  This enables support for Freescale i.MX6 Quad processor.

395 396
config SOC_IMX6SL
	bool "i.MX6 SoloLite support"
397 398
	select ARM_ERRATA_754322
	select ARM_ERRATA_775420
399
	select PINCTRL_IMX6SL
400
	select SOC_IMX6
401 402 403 404

	help
	  This enables support for Freescale i.MX6 SoloLite processor.

405 406
config SOC_IMX6SLL
	bool "i.MX6 SoloLiteLite support"
407 408
	select ARM_ERRATA_754322
	select ARM_ERRATA_775420
409
	select PINCTRL_IMX6SLL
410 411 412 413 414
	select SOC_IMX6

	help
	  This enables support for Freescale i.MX6 SoloLiteLite processor.

415 416
config SOC_IMX6SX
	bool "i.MX6 SoloX support"
417 418
	select ARM_ERRATA_754322
	select ARM_ERRATA_775420
419 420 421 422 423 424
	select PINCTRL_IMX6SX
	select SOC_IMX6

	help
	  This enables support for Freescale i.MX6 SoloX processor.

F
Frank Li 已提交
425 426 427 428
config SOC_IMX6UL
	bool "i.MX6 UltraLite support"
	select PINCTRL_IMX6UL
	select SOC_IMX6
429
	select ARM_ERRATA_814220
F
Frank Li 已提交
430 431 432 433

	help
	  This enables support for Freescale i.MX6 UltraLite processor.

434 435 436 437 438 439 440 441 442 443 444 445
config SOC_LS1021A
	bool "Freescale LS1021A support"
	select ARM_GIC
	select HAVE_ARM_ARCH_TIMER
	select ZONE_DMA if ARM_LPAE
	help
	  This enables support for Freescale LS1021A processor.

endif

if ARCH_MULTI_V7 || ARM_SINGLE_ARMV7M

446 447
comment "Cortex-A/Cortex-M asymmetric multiprocessing platforms"

448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465
config SOC_IMX7D_CA7
	bool
	select ARM_GIC
	select HAVE_ARM_ARCH_TIMER
	select HAVE_IMX_ANATOP
	select HAVE_IMX_MMDC
	select HAVE_IMX_SRC
	select IMX_GPCV2

config SOC_IMX7D_CM4
	bool
	select ARMV7M_SYSTICK

config SOC_IMX7D
	bool "i.MX7 Dual support"
	select PINCTRL_IMX7D
	select SOC_IMX7D_CA7 if ARCH_MULTI_V7
	select SOC_IMX7D_CM4 if ARM_SINGLE_ARMV7M
466
	select ARM_ERRATA_814220 if ARCH_MULTI_V7
467 468 469
	help
		This enables support for Freescale i.MX7 Dual processor.

470 471 472 473
config SOC_IMX7ULP
	bool "i.MX7ULP support"
	select CLKSRC_IMX_TPM
	select PINCTRL_IMX7ULP
474 475
	select SOC_IMX7D_CA7 if ARCH_MULTI_V7
	select SOC_IMX7D_CM4 if ARM_SINGLE_ARMV7M
476 477 478
	help
	  This enables support for Freescale i.MX7 Ultra Low Power processor.

479 480
config SOC_VF610
	bool "Vybrid Family VF610 support"
481
	select ARM_GIC if ARCH_MULTI_V7
482 483 484
	select PINCTRL_VF610

	help
485
	  This enables support for Freescale Vybrid VF610 processor.
486

487 488 489 490 491 492
choice
	prompt "Clocksource for scheduler clock"
	depends on SOC_VF610
	default VF_USE_ARM_GLOBAL_TIMER

	config VF_USE_ARM_GLOBAL_TIMER
493 494
		bool "Use ARM Global Timer"
		depends on ARCH_MULTI_V7
495 496 497 498 499 500 501 502 503 504 505 506 507
		select ARM_GLOBAL_TIMER
		select CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
		help
		  Use the ARM Global Timer as clocksource

	config VF_USE_PIT_TIMER
		bool "Use PIT timer"
		select VF_PIT_TIMER
		help
		  Use SoC Periodic Interrupt Timer (PIT) as clocksource

endchoice

508
endif
509 510

source "arch/arm/mach-imx/devices/Kconfig"
S
Shawn Guo 已提交
511

512
endif