xref: /linux/arch/arm/mach-s3c/Kconfig (revision 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e)
14490e3c6SKrzysztof Kozlowski# SPDX-License-Identifier: GPL-2.0
2cf383678SBen Dooks#
3cf383678SBen Dooks# Copyright 2009 Simtec Electronics
4cf383678SBen Dooks
571b9114dSArnd Bergmannsource "arch/arm/mach-s3c/Kconfig.s3c64xx"
671b9114dSArnd Bergmann
7cf383678SBen Dooksconfig PLAT_SAMSUNG
8*61b7f892SArnd Bergmann	def_bool ARCH_S3C64XX
9b1b3f49cSRussell King	select GENERIC_IRQ_CHIP
10ce816fa8SUwe Kleine-König	select NO_IOPORT_MAP
1117132da7SArnd Bergmann	select SOC_SAMSUNG
12cf383678SBen Dooks	help
13cf383678SBen Dooks	  Base platform code for all Samsung SoC based systems
14cf383678SBen Dooks
1589693016SAmit Daniel Kachhapconfig SAMSUNG_PM
16*61b7f892SArnd Bergmann	def_bool ARCH_S3C64XX
17*61b7f892SArnd Bergmann	depends on PM
1889693016SAmit Daniel Kachhap	help
1989693016SAmit Daniel Kachhap	  Base platform power management code for samsung code
2089693016SAmit Daniel Kachhap
21cf383678SBen Dooksif PLAT_SAMSUNG
22e509b289SRob Herringmenu "Samsung Common options"
23cf383678SBen Dooks
2489f1fa08SBen Dooks# boot configurations
2589f1fa08SBen Dooks
2689f1fa08SBen Dookscomment "Boot options"
2789f1fa08SBen Dooks
2889f1fa08SBen Dooksconfig S3C_LOWLEVEL_UART_PORT
2989f1fa08SBen Dooks	int "S3C UART to use for low-level messages"
30e509b289SRob Herring	depends on ARCH_S3C64XX
3189f1fa08SBen Dooks	default 0
3289f1fa08SBen Dooks	help
3389f1fa08SBen Dooks	  Choice of which UART port to use for the low-level messages,
3489f1fa08SBen Dooks	  such as the `Uncompressing...` at start time. The value of
3589f1fa08SBen Dooks	  this configuration should be between zero and two. The port
3689f1fa08SBen Dooks	  must have been initialised by the boot-loader before use.
3789f1fa08SBen Dooks
38cd8dc7aeSTomasz Figaconfig SAMSUNG_ATAGS
39cd8dc7aeSTomasz Figa	def_bool n
40cd8dc7aeSTomasz Figa	depends on ATAGS
41cd8dc7aeSTomasz Figa	help
42cd8dc7aeSTomasz Figa	  This option enables ATAGS based boot support code for
43cd8dc7aeSTomasz Figa	  Samsung platforms, including static platform devices, legacy
44cd8dc7aeSTomasz Figa	  clock, timer and interrupt initialization, etc.
45cd8dc7aeSTomasz Figa
46cd8dc7aeSTomasz Figa	  Platforms that support only DT based boot need not to select
47cd8dc7aeSTomasz Figa	  this option.
48cd8dc7aeSTomasz Figa
49cd8dc7aeSTomasz Figaif SAMSUNG_ATAGS
50cd8dc7aeSTomasz Figa
5189f1fa08SBen Dooksconfig S3C_GPIO_SPACE
5289f1fa08SBen Dooks	int "Space between gpio banks"
5389f1fa08SBen Dooks	default 0
5489f1fa08SBen Dooks	help
5589f1fa08SBen Dooks	  Add a number of spare GPIO entries between each bank for debugging
5689f1fa08SBen Dooks	  purposes. This allows any problems where an counter overflows from
5789f1fa08SBen Dooks	  one bank to another to be caught, at the expense of using a little
5889f1fa08SBen Dooks	  more memory.
5989f1fa08SBen Dooks
6089f1fa08SBen Dooksconfig S3C_GPIO_TRACK
6189f1fa08SBen Dooks	bool
6289f1fa08SBen Dooks	help
6389f1fa08SBen Dooks	  Internal configuration option to enable the s3c specific gpio
6489f1fa08SBen Dooks	  chip tracking if the platform requires it.
6589f1fa08SBen Dooks
66b6a60413SBen Dooks# device definitions to compile in
67b6a60413SBen Dooks
68b6a60413SBen Dooksconfig S3C_DEV_HSMMC
69b6a60413SBen Dooks	bool
70b6a60413SBen Dooks	help
71b6a60413SBen Dooks	  Compile in platform device definitions for HSMMC code
72b6a60413SBen Dooks
73b6a60413SBen Dooksconfig S3C_DEV_HSMMC1
74b6a60413SBen Dooks	bool
75b6a60413SBen Dooks	help
76b6a60413SBen Dooks	  Compile in platform device definitions for HSMMC channel 1
77b6a60413SBen Dooks
78b6a60413SBen Dooksconfig S3C_DEV_HSMMC2
79b6a60413SBen Dooks	bool
80b6a60413SBen Dooks	help
81b6a60413SBen Dooks	  Compile in platform device definitions for HSMMC channel 2
82b6a60413SBen Dooks
83b3c674bcSHyuk Leeconfig S3C_DEV_HSMMC3
84b3c674bcSHyuk Lee	bool
85b3c674bcSHyuk Lee	help
86b3c674bcSHyuk Lee	  Compile in platform device definitions for HSMMC channel 3
87b3c674bcSHyuk Lee
88b6a60413SBen Dooksconfig S3C_DEV_I2C1
89b6a60413SBen Dooks	bool
90b6a60413SBen Dooks	help
91b6a60413SBen Dooks	  Compile in platform device definitions for I2C channel 1
92b6a60413SBen Dooks
93b6a60413SBen Dooksconfig S3C_DEV_FB
94b6a60413SBen Dooks	bool
95b6a60413SBen Dooks	help
96b6a60413SBen Dooks	  Compile in platform device definition for framebuffer
97b6a60413SBen Dooks
98b6a60413SBen Dooksconfig S3C_DEV_USB_HOST
99b6a60413SBen Dooks	bool
100b6a60413SBen Dooks	help
101b6a60413SBen Dooks	  Compile in platform device definition for USB host.
102b6a60413SBen Dooks
103b6a60413SBen Dooksconfig S3C_DEV_USB_HSOTG
104b6a60413SBen Dooks	bool
105b6a60413SBen Dooks	help
106b6a60413SBen Dooks	  Compile in platform device definition for USB high-speed OtG
107b6a60413SBen Dooks
108875a5937SPadmavathi Vennaconfig S3C64XX_DEV_SPI0
1094b4c6625SJassi Brar	bool
1104b4c6625SJassi Brar	help
1114b4c6625SJassi Brar	  Compile in platform device definitions for S3C64XX's type
112875a5937SPadmavathi Venna	  SPI controller 0
113875a5937SPadmavathi Venna
114995c48adSJoonyoung Shimconfig SAMSUNG_DEV_KEYPAD
115995c48adSJoonyoung Shim	bool
116995c48adSJoonyoung Shim	help
117995c48adSJoonyoung Shim	  Compile in platform device definitions for keypad
118995c48adSJoonyoung Shim
1192ce30137SBanajit Goswamiconfig SAMSUNG_DEV_PWM
1202ce30137SBanajit Goswami	bool
1212ce30137SBanajit Goswami	help
1222ce30137SBanajit Goswami	  Compile in platform device definition for PWM Timer
1232ce30137SBanajit Goswami
1240f20e456SArnd Bergmannconfig GPIO_SAMSUNG
1250f20e456SArnd Bergmann	def_bool y
1260f20e456SArnd Bergmann
127105dddbfSTomasz Figaconfig SAMSUNG_PM_GPIO
128105dddbfSTomasz Figa	bool
129105dddbfSTomasz Figa	default y if GPIO_SAMSUNG && PM
130105dddbfSTomasz Figa	help
131105dddbfSTomasz Figa	  Include legacy GPIO power management code for platforms not using
132105dddbfSTomasz Figa	  pinctrl-samsung driver.
13327873b05SArnd Bergmannendif
13427873b05SArnd Bergmann
1350317e52eSBen Dooksconfig SAMSUNG_WAKEMASK
1360317e52eSBen Dooks	bool
1370317e52eSBen Dooks	depends on PM
1380317e52eSBen Dooks	help
1390317e52eSBen Dooks	  Compile support for wakeup-mask controls found on the S3C6400
1400317e52eSBen Dooks	  and above. This code allows a set of interrupt to wakeup-mask
1410317e52eSBen Dooks	  mappings. See <plat/wakeup-mask.h>
1420317e52eSBen Dooks
143e509b289SRob Herringendmenu
144cf383678SBen Dooksendif
145