162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# Copyright 2009 Simtec Electronics
462306a36Sopenharmony_ci
562306a36Sopenharmony_cisource "arch/arm/mach-s3c/Kconfig.s3c64xx"
662306a36Sopenharmony_ci
762306a36Sopenharmony_ciconfig PLAT_SAMSUNG
862306a36Sopenharmony_ci	def_bool ARCH_S3C64XX
962306a36Sopenharmony_ci	select GENERIC_IRQ_CHIP
1062306a36Sopenharmony_ci	select NO_IOPORT_MAP
1162306a36Sopenharmony_ci	select SOC_SAMSUNG
1262306a36Sopenharmony_ci	help
1362306a36Sopenharmony_ci	  Base platform code for all Samsung SoC based systems
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ciconfig SAMSUNG_PM
1662306a36Sopenharmony_ci	def_bool ARCH_S3C64XX
1762306a36Sopenharmony_ci	depends on PM
1862306a36Sopenharmony_ci	help
1962306a36Sopenharmony_ci	  Base platform power management code for samsung code
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ciif PLAT_SAMSUNG
2262306a36Sopenharmony_cimenu "Samsung Common options"
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci# boot configurations
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_cicomment "Boot options"
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ciconfig S3C_LOWLEVEL_UART_PORT
2962306a36Sopenharmony_ci	int "S3C UART to use for low-level messages"
3062306a36Sopenharmony_ci	depends on ARCH_S3C64XX
3162306a36Sopenharmony_ci	default 0
3262306a36Sopenharmony_ci	help
3362306a36Sopenharmony_ci	  Choice of which UART port to use for the low-level messages,
3462306a36Sopenharmony_ci	  such as the `Uncompressing...` at start time. The value of
3562306a36Sopenharmony_ci	  this configuration should be between zero and two. The port
3662306a36Sopenharmony_ci	  must have been initialised by the boot-loader before use.
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ciconfig SAMSUNG_ATAGS
3962306a36Sopenharmony_ci	def_bool n
4062306a36Sopenharmony_ci	depends on ATAGS
4162306a36Sopenharmony_ci	help
4262306a36Sopenharmony_ci	  This option enables ATAGS based boot support code for
4362306a36Sopenharmony_ci	  Samsung platforms, including static platform devices, legacy
4462306a36Sopenharmony_ci	  clock, timer and interrupt initialization, etc.
4562306a36Sopenharmony_ci
4662306a36Sopenharmony_ci	  Platforms that support only DT based boot need not to select
4762306a36Sopenharmony_ci	  this option.
4862306a36Sopenharmony_ci
4962306a36Sopenharmony_ciif SAMSUNG_ATAGS
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ciconfig S3C_GPIO_SPACE
5262306a36Sopenharmony_ci	int "Space between gpio banks"
5362306a36Sopenharmony_ci	default 0
5462306a36Sopenharmony_ci	help
5562306a36Sopenharmony_ci	  Add a number of spare GPIO entries between each bank for debugging
5662306a36Sopenharmony_ci	  purposes. This allows any problems where an counter overflows from
5762306a36Sopenharmony_ci	  one bank to another to be caught, at the expense of using a little
5862306a36Sopenharmony_ci	  more memory.
5962306a36Sopenharmony_ci
6062306a36Sopenharmony_ciconfig S3C_GPIO_TRACK
6162306a36Sopenharmony_ci	bool
6262306a36Sopenharmony_ci	help
6362306a36Sopenharmony_ci	  Internal configuration option to enable the s3c specific gpio
6462306a36Sopenharmony_ci	  chip tracking if the platform requires it.
6562306a36Sopenharmony_ci
6662306a36Sopenharmony_ci# device definitions to compile in
6762306a36Sopenharmony_ci
6862306a36Sopenharmony_ciconfig S3C_DEV_HSMMC
6962306a36Sopenharmony_ci	bool
7062306a36Sopenharmony_ci	help
7162306a36Sopenharmony_ci	  Compile in platform device definitions for HSMMC code
7262306a36Sopenharmony_ci
7362306a36Sopenharmony_ciconfig S3C_DEV_HSMMC1
7462306a36Sopenharmony_ci	bool
7562306a36Sopenharmony_ci	help
7662306a36Sopenharmony_ci	  Compile in platform device definitions for HSMMC channel 1
7762306a36Sopenharmony_ci
7862306a36Sopenharmony_ciconfig S3C_DEV_HSMMC2
7962306a36Sopenharmony_ci	bool
8062306a36Sopenharmony_ci	help
8162306a36Sopenharmony_ci	  Compile in platform device definitions for HSMMC channel 2
8262306a36Sopenharmony_ci
8362306a36Sopenharmony_ciconfig S3C_DEV_HSMMC3
8462306a36Sopenharmony_ci	bool
8562306a36Sopenharmony_ci	help
8662306a36Sopenharmony_ci	  Compile in platform device definitions for HSMMC channel 3
8762306a36Sopenharmony_ci
8862306a36Sopenharmony_ciconfig S3C_DEV_I2C1
8962306a36Sopenharmony_ci	bool
9062306a36Sopenharmony_ci	help
9162306a36Sopenharmony_ci	  Compile in platform device definitions for I2C channel 1
9262306a36Sopenharmony_ci
9362306a36Sopenharmony_ciconfig S3C_DEV_FB
9462306a36Sopenharmony_ci	bool
9562306a36Sopenharmony_ci	help
9662306a36Sopenharmony_ci	  Compile in platform device definition for framebuffer
9762306a36Sopenharmony_ci
9862306a36Sopenharmony_ciconfig S3C_DEV_USB_HOST
9962306a36Sopenharmony_ci	bool
10062306a36Sopenharmony_ci	help
10162306a36Sopenharmony_ci	  Compile in platform device definition for USB host.
10262306a36Sopenharmony_ci
10362306a36Sopenharmony_ciconfig S3C_DEV_USB_HSOTG
10462306a36Sopenharmony_ci	bool
10562306a36Sopenharmony_ci	help
10662306a36Sopenharmony_ci	  Compile in platform device definition for USB high-speed OtG
10762306a36Sopenharmony_ci
10862306a36Sopenharmony_ciconfig S3C64XX_DEV_SPI0
10962306a36Sopenharmony_ci	bool
11062306a36Sopenharmony_ci	help
11162306a36Sopenharmony_ci	  Compile in platform device definitions for S3C64XX's type
11262306a36Sopenharmony_ci	  SPI controller 0
11362306a36Sopenharmony_ci
11462306a36Sopenharmony_ciconfig SAMSUNG_DEV_KEYPAD
11562306a36Sopenharmony_ci	bool
11662306a36Sopenharmony_ci	help
11762306a36Sopenharmony_ci	  Compile in platform device definitions for keypad
11862306a36Sopenharmony_ci
11962306a36Sopenharmony_ciconfig SAMSUNG_DEV_PWM
12062306a36Sopenharmony_ci	bool
12162306a36Sopenharmony_ci	help
12262306a36Sopenharmony_ci	  Compile in platform device definition for PWM Timer
12362306a36Sopenharmony_ci
12462306a36Sopenharmony_ciconfig GPIO_SAMSUNG
12562306a36Sopenharmony_ci	def_bool y
12662306a36Sopenharmony_ci
12762306a36Sopenharmony_ciconfig SAMSUNG_PM_GPIO
12862306a36Sopenharmony_ci	bool
12962306a36Sopenharmony_ci	default y if GPIO_SAMSUNG && PM
13062306a36Sopenharmony_ci	help
13162306a36Sopenharmony_ci	  Include legacy GPIO power management code for platforms not using
13262306a36Sopenharmony_ci	  pinctrl-samsung driver.
13362306a36Sopenharmony_ciendif
13462306a36Sopenharmony_ci
13562306a36Sopenharmony_ciconfig SAMSUNG_WAKEMASK
13662306a36Sopenharmony_ci	bool
13762306a36Sopenharmony_ci	depends on PM
13862306a36Sopenharmony_ci	help
13962306a36Sopenharmony_ci	  Compile support for wakeup-mask controls found on the S3C6400
14062306a36Sopenharmony_ci	  and above. This code allows a set of interrupt to wakeup-mask
14162306a36Sopenharmony_ci	  mappings. See <plat/wakeup-mask.h>
14262306a36Sopenharmony_ci
14362306a36Sopenharmony_ciendmenu
14462306a36Sopenharmony_ciendif
145