Kconfig 10.1 KB
Newer Older
1
# arch/arm/mach-exynos/Kconfig
2
#
3
# Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
4 5 6 7
#		http://www.samsung.com/
#
# Licensed under GPLv2

8
# Configuration options for the EXYNOS4
9

10 11 12 13 14 15
config ARCH_EXYNOS
	# TODO: make this visible after all drivers are converted
	bool "Samsung EXYNOS" if ARCH_MULTI_V7 && BROKEN
	default ARCH_EXYNOS_SINGLE
	select ARCH_HAS_CPUFREQ
	select CLKDEV_LOOKUP
16
	select COMMON_CLK
17 18 19 20 21 22 23 24
	select CPU_V7
	select GENERIC_CLOCKEVENTS
	select HAVE_CLK
	select HAVE_S3C2410_I2C if I2C
	select HAVE_S3C_RTC if RTC_CLASS
	help
	  Support for SAMSUNG's EXYNOS SoCs (EXYNOS4/5)

25 26 27 28 29 30
if ARCH_EXYNOS

menu "SAMSUNG EXYNOS SoCs Support"

config ARCH_EXYNOS4
	bool "SAMSUNG EXYNOS4"
31
	default y
32
	select HAVE_SMP
33
	select MIGHT_HAVE_CACHE_L2X0
34 35 36
	help
	  Samsung EXYNOS4 SoCs based systems

37 38 39
config ARCH_EXYNOS4_SINGLE
	def_bool ARCH_EXYNOS4 && ARCH_EXYNOS_SINGLE

40 41 42 43 44
config ARCH_EXYNOS5
	bool "SAMSUNG EXYNOS5"
	select HAVE_SMP
	help
	  Samsung EXYNOS5 (Cortex-A15) SoC based systems
45 46

comment "EXYNOS SoCs"
47

48
config CPU_EXYNOS4210
49 50 51
	bool "SAMSUNG EXYNOS4210"
	default y
	depends on ARCH_EXYNOS4
52
	select ARM_CPU_SUSPEND if PM
53
	select PM_GENERIC_DOMAINS
54
	select S5P_PM if PM
55
	select S5P_SLEEP if PM
56
	select SAMSUNG_DMADEV if ARCH_EXYNOS_SINGLE
57
	help
58
	  Enable EXYNOS4210 CPU support
59

60
config SOC_EXYNOS4212
61 62 63
	bool "SAMSUNG EXYNOS4212"
	default y
	depends on ARCH_EXYNOS4
64
	select S5P_PM if PM
65
	select S5P_SLEEP if PM
66
	select SAMSUNG_DMADEV if ARCH_EXYNOS_SINGLE
67 68 69
	help
	  Enable EXYNOS4212 SoC support

70
config SOC_EXYNOS4412
71 72 73
	bool "SAMSUNG EXYNOS4412"
	default y
	depends on ARCH_EXYNOS4
74
	select SAMSUNG_DMADEV if ARCH_EXYNOS_SINGLE
75 76 77
	help
	  Enable EXYNOS4412 SoC support

78 79 80 81
config SOC_EXYNOS5250
	bool "SAMSUNG EXYNOS5250"
	default y
	depends on ARCH_EXYNOS5
82
	select PM_GENERIC_DOMAINS if PM
83 84
	select S5P_PM if PM
	select S5P_SLEEP if PM
85
	select S5P_DEV_MFC
86
	select SAMSUNG_DMADEV if ARCH_EXYNOS_SINGLE
87 88 89
	help
	  Enable EXYNOS5250 SoC support

90 91 92 93 94 95
config SOC_EXYNOS5440
	bool "SAMSUNG EXYNOS5440"
	default y
	depends on ARCH_EXYNOS5
	select ARM_ARCH_TIMER
	select AUTO_ZRELADDR
96 97
	select PINCTRL
	select PINCTRL_EXYNOS5440
98 99 100
	help
	  Enable EXYNOS5440 SoC support

101 102 103 104 105 106 107 108 109 110 111 112 113
config EXYNOS_ATAGS
	bool "ATAGS based boot for EXYNOS (deprecated)"
	depends on !ARCH_MULTIPLATFORM
	depends on ATAGS
	default y
	help
	  The EXYNOS platform is moving towards being completely probed
	  through device tree. This enables support for board files using
	  the traditional ATAGS boot format.
	  Note that this option is not available for multiplatform builds.

if EXYNOS_ATAGS

114
config EXYNOS_DEV_DMA
115 116 117 118
	bool
	help
	  Compile in amba device definitions for DMA controller

119 120 121 122 123
config EXYNOS4_DEV_AHCI
	bool
	help
	  Compile in platform device definitions for AHCI

124 125 126 127 128
config EXYNOS_DEV_DRM
	bool
	help
	  Compile in platform device definitions for core DRM device

129 130 131 132 133
config EXYNOS4_SETUP_FIMD0
	bool
	help
	  Common setup code for FIMD0.

J
Jingoo Han 已提交
134 135 136 137 138
config EXYNOS4_DEV_USB_OHCI
	bool
	help
	  Compile in platform device definition for USB OHCI

139
config EXYNOS4_SETUP_I2C1
140 141 142 143
	bool
	help
	  Common setup code for i2c bus 1.

144
config EXYNOS4_SETUP_I2C2
145 146 147 148
	bool
	help
	  Common setup code for i2c bus 2.

149
config EXYNOS4_SETUP_I2C3
150 151 152 153
	bool
	help
	  Common setup code for i2c bus 3.

154
config EXYNOS4_SETUP_I2C4
155 156 157 158
	bool
	help
	  Common setup code for i2c bus 4.

159
config EXYNOS4_SETUP_I2C5
160 161 162 163
	bool
	help
	  Common setup code for i2c bus 5.

164
config EXYNOS4_SETUP_I2C6
165 166 167 168
	bool
	help
	  Common setup code for i2c bus 6.

169
config EXYNOS4_SETUP_I2C7
170 171 172 173
	bool
	help
	  Common setup code for i2c bus 7.

174 175 176 177 178
config EXYNOS4_SETUP_KEYPAD
	bool
	help
	  Common setup code for keypad.

179
config EXYNOS4_SETUP_SDHCI
180
	bool
181
	select EXYNOS4_SETUP_SDHCI_GPIO
182
	help
183
	  Internal helper functions for EXYNOS4 based SDHCI systems.
184

185
config EXYNOS4_SETUP_SDHCI_GPIO
186 187 188 189
	bool
	help
	  Common setup code for SDHCI gpio.

190 191 192 193 194
config EXYNOS4_SETUP_FIMC
	bool
	help
	  Common setup code for the camera interfaces.

195 196 197 198 199
config EXYNOS4_SETUP_USB_PHY
	bool
	help
	  Common setup code for USB PHY controller

200
config EXYNOS_SETUP_SPI
201 202 203 204
	bool
	help
	  Common setup code for SPI GPIO configurations.

205 206
# machine support

207
if ARCH_EXYNOS4
208

209 210
comment "EXYNOS4210 Boards"

211 212
config MACH_SMDKC210
	bool "SMDKC210"
213
	select MACH_SMDKV310
214 215
	help
	  Machine support for Samsung SMDKC210
216 217 218

config MACH_SMDKV310
	bool "SMDKV310"
219
	select CPU_EXYNOS4210
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235
	select EXYNOS4_DEV_AHCI
	select EXYNOS4_DEV_USB_OHCI
	select EXYNOS4_SETUP_FIMD0
	select EXYNOS4_SETUP_I2C1
	select EXYNOS4_SETUP_KEYPAD
	select EXYNOS4_SETUP_SDHCI
	select EXYNOS4_SETUP_USB_PHY
	select EXYNOS_DEV_DMA
	select EXYNOS_DEV_DRM
	select EXYNOS_DEV_SYSMMU
	select S3C24XX_PWM
	select S3C_DEV_HSMMC
	select S3C_DEV_HSMMC1
	select S3C_DEV_HSMMC2
	select S3C_DEV_HSMMC3
	select S3C_DEV_I2C1
C
Changhwan Youn 已提交
236
	select S3C_DEV_RTC
237
	select S3C_DEV_USB_HSOTG
238
	select S3C_DEV_WDT
239 240 241 242
	select S5P_DEV_FIMC0
	select S5P_DEV_FIMC1
	select S5P_DEV_FIMC2
	select S5P_DEV_FIMC3
243
	select S5P_DEV_FIMD0
244
	select S5P_DEV_G2D
245
	select S5P_DEV_I2C_HDMIPHY
246
	select S5P_DEV_JPEG
247
	select S5P_DEV_MFC
248
	select S5P_DEV_TV
249
	select S5P_DEV_USB_EHCI
250
	select SAMSUNG_DEV_BACKLIGHT
251
	select SAMSUNG_DEV_KEYPAD
252
	select SAMSUNG_DEV_PWM
253 254 255
	help
	  Machine support for Samsung SMDKV310

256 257 258
config MACH_ARMLEX4210
	bool "ARMLEX4210"
	select CPU_EXYNOS4210
259 260 261
	select EXYNOS4_DEV_AHCI
	select EXYNOS4_SETUP_SDHCI
	select EXYNOS_DEV_DMA
262 263 264
	select S3C_DEV_HSMMC
	select S3C_DEV_HSMMC2
	select S3C_DEV_HSMMC3
265 266
	select S3C_DEV_RTC
	select S3C_DEV_WDT
267 268 269
	help
	  Machine support for Samsung ARMLEX4210 based on EXYNOS4210

270 271
config MACH_UNIVERSAL_C210
	bool "Mobile UNIVERSAL_C210 Board"
272
	select CLKSRC_MMIO
273 274 275 276 277 278 279 280 281 282 283
	select CPU_EXYNOS4210
	select EXYNOS4_SETUP_FIMC
	select EXYNOS4_SETUP_FIMD0
	select EXYNOS4_SETUP_I2C1
	select EXYNOS4_SETUP_I2C3
	select EXYNOS4_SETUP_I2C5
	select EXYNOS4_SETUP_SDHCI
	select EXYNOS4_SETUP_USB_PHY
	select EXYNOS_DEV_DMA
	select EXYNOS_DEV_DRM
	select EXYNOS_DEV_SYSMMU
284
	select HAVE_SCHED_CLOCK
285 286 287 288
	select S3C_DEV_HSMMC
	select S3C_DEV_HSMMC2
	select S3C_DEV_HSMMC3
	select S3C_DEV_I2C1
289
	select S3C_DEV_I2C3
290
	select S3C_DEV_I2C5
291
	select S3C_DEV_USB_HSOTG
292 293 294 295 296 297 298
	select S5P_DEV_CSIS0
	select S5P_DEV_FIMC0
	select S5P_DEV_FIMC1
	select S5P_DEV_FIMC2
	select S5P_DEV_FIMC3
	select S5P_DEV_FIMD0
	select S5P_DEV_G2D
299
	select S5P_DEV_I2C_HDMIPHY
300
	select S5P_DEV_JPEG
301
	select S5P_DEV_MFC
302
	select S5P_DEV_ONENAND
303
	select S5P_DEV_TV
304
	select S5P_GPIO_INT
305
	select S5P_SETUP_MIPIPHY
306
	select SAMSUNG_HRT
307 308 309 310
	help
	  Machine support for Samsung Mobile Universal S5PC210 Reference
	  Board.

311 312 313
config MACH_NURI
	bool "Mobile NURI Board"
	select CPU_EXYNOS4210
314 315 316 317 318 319 320 321 322 323
	select EXYNOS4_SETUP_FIMC
	select EXYNOS4_SETUP_FIMD0
	select EXYNOS4_SETUP_I2C1
	select EXYNOS4_SETUP_I2C3
	select EXYNOS4_SETUP_I2C5
	select EXYNOS4_SETUP_I2C6
	select EXYNOS4_SETUP_SDHCI
	select EXYNOS4_SETUP_USB_PHY
	select EXYNOS_DEV_DMA
	select EXYNOS_DEV_DRM
324 325 326 327
	select S3C_DEV_HSMMC
	select S3C_DEV_HSMMC2
	select S3C_DEV_HSMMC3
	select S3C_DEV_I2C1
328
	select S3C_DEV_I2C3
329
	select S3C_DEV_I2C5
330
	select S3C_DEV_I2C6
331
	select S3C_DEV_RTC
332
	select S3C_DEV_USB_HSOTG
333
	select S3C_DEV_WDT
334 335 336 337 338
	select S5P_DEV_CSIS0
	select S5P_DEV_FIMC0
	select S5P_DEV_FIMC1
	select S5P_DEV_FIMC2
	select S5P_DEV_FIMC3
339
	select S5P_DEV_FIMD0
K
Kamil Debski 已提交
340
	select S5P_DEV_G2D
341
	select S5P_DEV_JPEG
342
	select S5P_DEV_MFC
343
	select S5P_DEV_USB_EHCI
344
	select S5P_GPIO_INT
345
	select S5P_SETUP_MIPIPHY
M
MyungJoo Ham 已提交
346
	select SAMSUNG_DEV_ADC
347
	select SAMSUNG_DEV_PWM
348 349 350
	help
	  Machine support for Samsung Mobile NURI Board.

351 352 353
config MACH_ORIGEN
	bool "ORIGEN"
	select CPU_EXYNOS4210
354 355 356 357 358 359 360 361
	select EXYNOS4_DEV_USB_OHCI
	select EXYNOS4_SETUP_FIMD0
	select EXYNOS4_SETUP_SDHCI
	select EXYNOS4_SETUP_USB_PHY
	select EXYNOS_DEV_DMA
	select EXYNOS_DEV_DRM
	select EXYNOS_DEV_SYSMMU
	select S3C24XX_PWM
362
	select S3C_DEV_HSMMC
363
	select S3C_DEV_HSMMC2
364
	select S3C_DEV_RTC
365
	select S3C_DEV_USB_HSOTG
366
	select S3C_DEV_WDT
367 368 369 370
	select S5P_DEV_FIMC0
	select S5P_DEV_FIMC1
	select S5P_DEV_FIMC2
	select S5P_DEV_FIMC3
371
	select S5P_DEV_FIMD0
S
Sachin Kamat 已提交
372
	select S5P_DEV_G2D
373
	select S5P_DEV_I2C_HDMIPHY
374
	select S5P_DEV_JPEG
S
Sachin Kamat 已提交
375
	select S5P_DEV_MFC
376
	select S5P_DEV_TV
377
	select S5P_DEV_USB_EHCI
378 379
	select SAMSUNG_DEV_BACKLIGHT
	select SAMSUNG_DEV_PWM
380 381 382
	help
	  Machine support for ORIGEN based on Samsung EXYNOS4210

383 384 385 386
comment "EXYNOS4212 Boards"

config MACH_SMDK4212
	bool "SMDK4212"
387 388 389 390 391 392 393 394 395 396 397
	select EXYNOS4_SETUP_FIMD0
	select EXYNOS4_SETUP_I2C1
	select EXYNOS4_SETUP_I2C3
	select EXYNOS4_SETUP_I2C7
	select EXYNOS4_SETUP_KEYPAD
	select EXYNOS4_SETUP_SDHCI
	select EXYNOS4_SETUP_USB_PHY
	select EXYNOS_DEV_DMA
	select EXYNOS_DEV_DRM
	select EXYNOS_DEV_SYSMMU
	select S3C24XX_PWM
398 399 400 401 402 403
	select S3C_DEV_HSMMC2
	select S3C_DEV_HSMMC3
	select S3C_DEV_I2C1
	select S3C_DEV_I2C3
	select S3C_DEV_I2C7
	select S3C_DEV_RTC
404
	select S3C_DEV_USB_HSOTG
405
	select S3C_DEV_WDT
406 407 408 409
	select S5P_DEV_FIMC0
	select S5P_DEV_FIMC1
	select S5P_DEV_FIMC2
	select S5P_DEV_FIMC3
410
	select S5P_DEV_FIMD0
411
	select S5P_DEV_MFC
412 413 414
	select SAMSUNG_DEV_BACKLIGHT
	select SAMSUNG_DEV_KEYPAD
	select SAMSUNG_DEV_PWM
415
	select SOC_EXYNOS4212
416 417 418
	help
	  Machine support for Samsung SMDK4212

419 420 421 422 423
comment "EXYNOS4412 Boards"

config MACH_SMDK4412
	bool "SMDK4412"
	select MACH_SMDK4212
424
	select SOC_EXYNOS4412
425 426
	help
	  Machine support for Samsung SMDK4412
427
endif
428

429 430
endif

431
comment "Flattened Device Tree based board for EXYNOS SoCs"
432 433 434

config MACH_EXYNOS4_DT
	bool "Samsung Exynos4 Machine using device tree"
435
	depends on ARCH_EXYNOS4
436
	select ARM_AMBA
437
	select CLKSRC_OF
438
	select CPU_EXYNOS4210
439
	select HAVE_SAMSUNG_KEYPAD if INPUT_KEYBOARD
440
	select PINCTRL
441
	select PINCTRL_EXYNOS
442
	select S5P_DEV_MFC
443
	select USE_OF
444 445 446 447 448 449
	help
	  Machine support for Samsung Exynos4 machine with device tree enabled.
	  Select this if a fdt blob is available for the Exynos4 SoC based board.
	  Note: This is under development and not all peripherals can be supported
	  with this machine file.

450 451
config MACH_EXYNOS5_DT
	bool "SAMSUNG EXYNOS5 Machine using device tree"
452
	default y
453
	depends on ARCH_EXYNOS5
454
	select ARM_AMBA
455
	select CLKSRC_OF
456 457
	select USE_OF
	help
458 459
	  Machine support for Samsung EXYNOS5 machine with device tree enabled.
	  Select this if a fdt blob is available for the EXYNOS5 SoC based board.
460

461
if ARCH_EXYNOS4
462

463
comment "Configuration for HSMMC 8-bit bus width"
464

465
config EXYNOS4_SDHCI_CH0_8BIT
466 467 468 469 470
	bool "Channel 0 with 8-bit bus"
	help
	  Support HSMMC Channel 0 8-bit bus.
	  If selected, Channel 1 is disabled.

471
config EXYNOS4_SDHCI_CH2_8BIT
472 473 474 475
	bool "Channel 2 with 8-bit bus"
	help
	  Support HSMMC Channel 2 8-bit bus.
	  If selected, Channel 3 is disabled.
476
endif
477 478 479

endmenu

480
endif