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# ADC driver 6771b9114dSArnd Bergmann 6871b9114dSArnd Bergmannconfig S3C_ADC 6971b9114dSArnd Bergmann bool "ADC common driver support" 7071b9114dSArnd Bergmann depends on !ARCH_MULTIPLATFORM 7171b9114dSArnd Bergmann help 7271b9114dSArnd Bergmann Core support for the ADC block found in the Samsung SoC systems 7371b9114dSArnd Bergmann for drivers such as the touchscreen and hwmon to use to share 7471b9114dSArnd Bergmann this resource. 7571b9114dSArnd Bergmann 7671b9114dSArnd Bergmann# device definitions to compile in 7771b9114dSArnd Bergmann 7871b9114dSArnd Bergmannconfig S3C_DEV_HSMMC 7971b9114dSArnd Bergmann bool 8071b9114dSArnd Bergmann help 8171b9114dSArnd Bergmann Compile in platform device definitions for HSMMC code 8271b9114dSArnd Bergmann 8371b9114dSArnd Bergmannconfig S3C_DEV_HSMMC1 8471b9114dSArnd Bergmann bool 8571b9114dSArnd Bergmann help 8671b9114dSArnd Bergmann Compile in platform device definitions for HSMMC channel 1 8771b9114dSArnd Bergmann 8871b9114dSArnd Bergmannconfig S3C_DEV_HSMMC2 8971b9114dSArnd Bergmann bool 9071b9114dSArnd Bergmann help 9171b9114dSArnd Bergmann Compile in platform device definitions for HSMMC channel 2 9271b9114dSArnd Bergmann 9371b9114dSArnd Bergmannconfig S3C_DEV_HSMMC3 9471b9114dSArnd Bergmann bool 9571b9114dSArnd Bergmann help 9671b9114dSArnd Bergmann Compile in platform device definitions for HSMMC channel 3 9771b9114dSArnd Bergmann 9871b9114dSArnd Bergmannconfig S3C_DEV_I2C1 9971b9114dSArnd Bergmann bool 10071b9114dSArnd Bergmann help 10171b9114dSArnd Bergmann Compile in platform device definitions for I2C channel 1 10271b9114dSArnd Bergmann 10371b9114dSArnd Bergmannconfig S3C_DEV_I2C2 10471b9114dSArnd Bergmann bool 10571b9114dSArnd Bergmann help 10671b9114dSArnd Bergmann Compile in platform device definitions for I2C channel 2 10771b9114dSArnd Bergmann 10871b9114dSArnd Bergmannconfig S3C_DEV_I2C3 10971b9114dSArnd Bergmann bool 11071b9114dSArnd Bergmann help 11171b9114dSArnd Bergmann Compile in platform device definition for I2C controller 3 11271b9114dSArnd Bergmann 11371b9114dSArnd Bergmannconfig S3C_DEV_I2C4 11471b9114dSArnd Bergmann bool 11571b9114dSArnd Bergmann help 11671b9114dSArnd Bergmann Compile in platform device definition for I2C controller 4 11771b9114dSArnd Bergmann 11871b9114dSArnd Bergmannconfig S3C_DEV_I2C5 11971b9114dSArnd Bergmann bool 12071b9114dSArnd Bergmann help 12171b9114dSArnd Bergmann Compile in platform device definition for I2C controller 5 12271b9114dSArnd Bergmann 12371b9114dSArnd Bergmannconfig S3C_DEV_I2C6 12471b9114dSArnd Bergmann bool 12571b9114dSArnd Bergmann help 12671b9114dSArnd Bergmann Compile in platform device definition for I2C controller 6 12771b9114dSArnd Bergmann 12871b9114dSArnd Bergmannconfig S3C_DEV_I2C7 12971b9114dSArnd Bergmann bool 13071b9114dSArnd Bergmann help 13171b9114dSArnd Bergmann Compile in platform device definition for I2C controller 7 13271b9114dSArnd Bergmann 13371b9114dSArnd Bergmannconfig S3C_DEV_FB 13471b9114dSArnd Bergmann bool 13571b9114dSArnd Bergmann help 13671b9114dSArnd Bergmann Compile in platform device definition for framebuffer 13771b9114dSArnd Bergmann 13871b9114dSArnd Bergmannconfig S3C_DEV_USB_HOST 13971b9114dSArnd Bergmann bool 14071b9114dSArnd Bergmann help 14171b9114dSArnd Bergmann Compile in platform device definition for USB host. 14271b9114dSArnd Bergmann 14371b9114dSArnd Bergmannconfig S3C_DEV_USB_HSOTG 14471b9114dSArnd Bergmann bool 14571b9114dSArnd Bergmann help 14671b9114dSArnd Bergmann Compile in platform device definition for USB high-speed OtG 14771b9114dSArnd Bergmann 14871b9114dSArnd Bergmannconfig S3C_DEV_WDT 14971b9114dSArnd Bergmann bool 15071b9114dSArnd Bergmann help 15171b9114dSArnd Bergmann Compile in platform device definition for Watchdog Timer 15271b9114dSArnd Bergmann 15371b9114dSArnd Bergmannconfig S3C_DEV_NAND 15471b9114dSArnd Bergmann bool 15571b9114dSArnd Bergmann help 15671b9114dSArnd Bergmann Compile in platform device definition for NAND controller 15771b9114dSArnd Bergmann 15871b9114dSArnd Bergmannconfig S3C_DEV_ONENAND 15971b9114dSArnd Bergmann bool 16071b9114dSArnd Bergmann help 16171b9114dSArnd Bergmann Compile in platform device definition for OneNAND controller 16271b9114dSArnd Bergmann 16371b9114dSArnd Bergmannconfig S3C_DEV_RTC 16471b9114dSArnd Bergmann bool 16571b9114dSArnd Bergmann help 16671b9114dSArnd Bergmann Compile in platform device definition for RTC 16771b9114dSArnd Bergmann 16871b9114dSArnd Bergmannconfig SAMSUNG_DEV_ADC 16971b9114dSArnd Bergmann bool 17071b9114dSArnd Bergmann help 17171b9114dSArnd Bergmann Compile in platform device definition for ADC controller 17271b9114dSArnd Bergmann 17371b9114dSArnd Bergmannconfig S3C64XX_DEV_SPI0 17471b9114dSArnd Bergmann bool 17571b9114dSArnd Bergmann help 17671b9114dSArnd Bergmann Compile in platform device definitions for S3C64XX's type 17771b9114dSArnd Bergmann SPI controller 0 17871b9114dSArnd Bergmann 17971b9114dSArnd Bergmannconfig SAMSUNG_DEV_KEYPAD 18071b9114dSArnd Bergmann bool 18171b9114dSArnd Bergmann help 18271b9114dSArnd Bergmann Compile in platform device definitions for keypad 18371b9114dSArnd Bergmann 18471b9114dSArnd Bergmannconfig SAMSUNG_DEV_PWM 18571b9114dSArnd Bergmann bool 18671b9114dSArnd Bergmann help 18771b9114dSArnd Bergmann Compile in platform device definition for PWM Timer 18871b9114dSArnd Bergmann 18971b9114dSArnd Bergmannconfig GPIO_SAMSUNG 19071b9114dSArnd Bergmann def_bool y 19171b9114dSArnd Bergmann 19271b9114dSArnd Bergmannconfig SAMSUNG_PM_GPIO 19371b9114dSArnd Bergmann bool 19471b9114dSArnd Bergmann default y if GPIO_SAMSUNG && PM 19571b9114dSArnd Bergmann help 19671b9114dSArnd Bergmann Include legacy GPIO power management code for platforms not using 19771b9114dSArnd Bergmann pinctrl-samsung driver. 19871b9114dSArnd Bergmannendif 19971b9114dSArnd Bergmann 20071b9114dSArnd Bergmannconfig SAMSUNG_WAKEMASK 20171b9114dSArnd Bergmann bool 20271b9114dSArnd Bergmann depends on PM 20371b9114dSArnd Bergmann help 20471b9114dSArnd Bergmann Compile support for wakeup-mask controls found on the S3C6400 20571b9114dSArnd Bergmann and above. This code allows a set of interrupt to wakeup-mask 20671b9114dSArnd Bergmann mappings. See <plat/wakeup-mask.h> 20771b9114dSArnd Bergmann 20871b9114dSArnd Bergmannendmenu 20971b9114dSArnd Bergmannendif 210