xref: /openbmc/linux/arch/arm/mach-s3c/Kconfig (revision 0d297df0)
171b9114dSArnd Bergmann# SPDX-License-Identifier: GPL-2.0
271b9114dSArnd Bergmann#
371b9114dSArnd Bergmann# Copyright 2009 Simtec Electronics
471b9114dSArnd Bergmann
571b9114dSArnd Bergmannsource "arch/arm/mach-s3c/Kconfig.s3c64xx"
671b9114dSArnd Bergmann
771b9114dSArnd Bergmannconfig PLAT_SAMSUNG
8*61b7f892SArnd Bergmann	def_bool ARCH_S3C64XX
971b9114dSArnd Bergmann	select GENERIC_IRQ_CHIP
1071b9114dSArnd Bergmann	select NO_IOPORT_MAP
1171b9114dSArnd Bergmann	select SOC_SAMSUNG
1271b9114dSArnd Bergmann	help
1371b9114dSArnd Bergmann	  Base platform code for all Samsung SoC based systems
1471b9114dSArnd Bergmann
1571b9114dSArnd Bergmannconfig SAMSUNG_PM
16*61b7f892SArnd Bergmann	def_bool ARCH_S3C64XX
17*61b7f892SArnd Bergmann	depends on PM
1871b9114dSArnd Bergmann	help
1971b9114dSArnd Bergmann	  Base platform power management code for samsung code
2071b9114dSArnd Bergmann
2171b9114dSArnd Bergmannif PLAT_SAMSUNG
2271b9114dSArnd Bergmannmenu "Samsung Common options"
2371b9114dSArnd Bergmann
2471b9114dSArnd Bergmann# boot configurations
2571b9114dSArnd Bergmann
2671b9114dSArnd Bergmanncomment "Boot options"
2771b9114dSArnd Bergmann
2871b9114dSArnd Bergmannconfig S3C_LOWLEVEL_UART_PORT
2971b9114dSArnd Bergmann	int "S3C UART to use for low-level messages"
3071b9114dSArnd Bergmann	depends on ARCH_S3C64XX
3171b9114dSArnd Bergmann	default 0
3271b9114dSArnd Bergmann	help
3371b9114dSArnd Bergmann	  Choice of which UART port to use for the low-level messages,
3471b9114dSArnd Bergmann	  such as the `Uncompressing...` at start time. The value of
3571b9114dSArnd Bergmann	  this configuration should be between zero and two. The port
3671b9114dSArnd Bergmann	  must have been initialised by the boot-loader before use.
3771b9114dSArnd Bergmann
3871b9114dSArnd Bergmannconfig SAMSUNG_ATAGS
3971b9114dSArnd Bergmann	def_bool n
4071b9114dSArnd Bergmann	depends on ATAGS
4171b9114dSArnd Bergmann	help
4271b9114dSArnd Bergmann	  This option enables ATAGS based boot support code for
4371b9114dSArnd Bergmann	  Samsung platforms, including static platform devices, legacy
4471b9114dSArnd Bergmann	  clock, timer and interrupt initialization, etc.
4571b9114dSArnd Bergmann
4671b9114dSArnd Bergmann	  Platforms that support only DT based boot need not to select
4771b9114dSArnd Bergmann	  this option.
4871b9114dSArnd Bergmann
4971b9114dSArnd Bergmannif SAMSUNG_ATAGS
5071b9114dSArnd Bergmann
5171b9114dSArnd Bergmannconfig S3C_GPIO_SPACE
5271b9114dSArnd Bergmann	int "Space between gpio banks"
5371b9114dSArnd Bergmann	default 0
5471b9114dSArnd Bergmann	help
5571b9114dSArnd Bergmann	  Add a number of spare GPIO entries between each bank for debugging
5671b9114dSArnd Bergmann	  purposes. This allows any problems where an counter overflows from
5771b9114dSArnd Bergmann	  one bank to another to be caught, at the expense of using a little
5871b9114dSArnd Bergmann	  more memory.
5971b9114dSArnd Bergmann
6071b9114dSArnd Bergmannconfig S3C_GPIO_TRACK
6171b9114dSArnd Bergmann	bool
6271b9114dSArnd Bergmann	help
6371b9114dSArnd Bergmann	  Internal configuration option to enable the s3c specific gpio
6471b9114dSArnd Bergmann	  chip tracking if the platform requires it.
6571b9114dSArnd Bergmann
6671b9114dSArnd Bergmann# device definitions to compile in
6771b9114dSArnd Bergmann
6871b9114dSArnd Bergmannconfig S3C_DEV_HSMMC
6971b9114dSArnd Bergmann	bool
7071b9114dSArnd Bergmann	help
7171b9114dSArnd Bergmann	  Compile in platform device definitions for HSMMC code
7271b9114dSArnd Bergmann
7371b9114dSArnd Bergmannconfig S3C_DEV_HSMMC1
7471b9114dSArnd Bergmann	bool
7571b9114dSArnd Bergmann	help
7671b9114dSArnd Bergmann	  Compile in platform device definitions for HSMMC channel 1
7771b9114dSArnd Bergmann
7871b9114dSArnd Bergmannconfig S3C_DEV_HSMMC2
7971b9114dSArnd Bergmann	bool
8071b9114dSArnd Bergmann	help
8171b9114dSArnd Bergmann	  Compile in platform device definitions for HSMMC channel 2
8271b9114dSArnd Bergmann
8371b9114dSArnd Bergmannconfig S3C_DEV_HSMMC3
8471b9114dSArnd Bergmann	bool
8571b9114dSArnd Bergmann	help
8671b9114dSArnd Bergmann	  Compile in platform device definitions for HSMMC channel 3
8771b9114dSArnd Bergmann
8871b9114dSArnd Bergmannconfig S3C_DEV_I2C1
8971b9114dSArnd Bergmann	bool
9071b9114dSArnd Bergmann	help
9171b9114dSArnd Bergmann	  Compile in platform device definitions for I2C channel 1
9271b9114dSArnd Bergmann
9371b9114dSArnd Bergmannconfig S3C_DEV_FB
9471b9114dSArnd Bergmann	bool
9571b9114dSArnd Bergmann	help
9671b9114dSArnd Bergmann	  Compile in platform device definition for framebuffer
9771b9114dSArnd Bergmann
9871b9114dSArnd Bergmannconfig S3C_DEV_USB_HOST
9971b9114dSArnd Bergmann	bool
10071b9114dSArnd Bergmann	help
10171b9114dSArnd Bergmann	  Compile in platform device definition for USB host.
10271b9114dSArnd Bergmann
10371b9114dSArnd Bergmannconfig S3C_DEV_USB_HSOTG
10471b9114dSArnd Bergmann	bool
10571b9114dSArnd Bergmann	help
10671b9114dSArnd Bergmann	  Compile in platform device definition for USB high-speed OtG
10771b9114dSArnd Bergmann
10871b9114dSArnd Bergmannconfig S3C64XX_DEV_SPI0
10971b9114dSArnd Bergmann	bool
11071b9114dSArnd Bergmann	help
11171b9114dSArnd Bergmann	  Compile in platform device definitions for S3C64XX's type
11271b9114dSArnd Bergmann	  SPI controller 0
11371b9114dSArnd Bergmann
11471b9114dSArnd Bergmannconfig SAMSUNG_DEV_KEYPAD
11571b9114dSArnd Bergmann	bool
11671b9114dSArnd Bergmann	help
11771b9114dSArnd Bergmann	  Compile in platform device definitions for keypad
11871b9114dSArnd Bergmann
11971b9114dSArnd Bergmannconfig SAMSUNG_DEV_PWM
12071b9114dSArnd Bergmann	bool
12171b9114dSArnd Bergmann	help
12271b9114dSArnd Bergmann	  Compile in platform device definition for PWM Timer
12371b9114dSArnd Bergmann
12471b9114dSArnd Bergmannconfig GPIO_SAMSUNG
12571b9114dSArnd Bergmann	def_bool y
12671b9114dSArnd Bergmann
12771b9114dSArnd Bergmannconfig SAMSUNG_PM_GPIO
12871b9114dSArnd Bergmann	bool
12971b9114dSArnd Bergmann	default y if GPIO_SAMSUNG && PM
13071b9114dSArnd Bergmann	help
13171b9114dSArnd Bergmann	  Include legacy GPIO power management code for platforms not using
13271b9114dSArnd Bergmann	  pinctrl-samsung driver.
13371b9114dSArnd Bergmannendif
13471b9114dSArnd Bergmann
13571b9114dSArnd Bergmannconfig SAMSUNG_WAKEMASK
13671b9114dSArnd Bergmann	bool
13771b9114dSArnd Bergmann	depends on PM
13871b9114dSArnd Bergmann	help
13971b9114dSArnd Bergmann	  Compile support for wakeup-mask controls found on the S3C6400
14071b9114dSArnd Bergmann	  and above. This code allows a set of interrupt to wakeup-mask
14171b9114dSArnd Bergmann	  mappings. See <plat/wakeup-mask.h>
14271b9114dSArnd Bergmann
14371b9114dSArnd Bergmannendmenu
14471b9114dSArnd Bergmannendif
145