xref: /openbmc/linux/drivers/soc/samsung/Kconfig (revision e37ef6dc)
106512c53SKrzysztof Kozlowski# SPDX-License-Identifier: GPL-2.0
2bfce552dSPankaj Dubey#
394500540SKrzysztof Kozlowski# Samsung SoC drivers
4bfce552dSPankaj Dubey#
5b11301d5SKrzysztof Kozlowskimenuconfig SOC_SAMSUNG
6b11301d5SKrzysztof Kozlowski	bool "Samsung SoC driver support" if COMPILE_TEST
7bfce552dSPankaj Dubey
8b11301d5SKrzysztof Kozlowskiif SOC_SAMSUNG
9bfce552dSPankaj Dubey
105ea42859SSylwester Nawrocki# There is no need to enable these drivers for ARMv8
115ea42859SSylwester Nawrockiconfig EXYNOS_ASV_ARM
125ea42859SSylwester Nawrocki	bool "Exynos ASV ARMv7-specific driver extensions" if COMPILE_TEST
13352bfbb3SKrzysztof Kozlowski	depends on EXYNOS_CHIPID
145ea42859SSylwester Nawrocki
153253b7b7SPankaj Dubeyconfig EXYNOS_CHIPID
16352bfbb3SKrzysztof Kozlowski	bool "Exynos ChipID controller and ASV driver" if COMPILE_TEST
173253b7b7SPankaj Dubey	depends on ARCH_EXYNOS || COMPILE_TEST
18352bfbb3SKrzysztof Kozlowski	select EXYNOS_ASV_ARM if ARM && ARCH_EXYNOS
1928578825SSylwester Nawrocki	select MFD_SYSCON
203253b7b7SPankaj Dubey	select SOC_BUS
21352bfbb3SKrzysztof Kozlowski	help
22352bfbb3SKrzysztof Kozlowski	  Support for Samsung Exynos SoC ChipID and Adaptive Supply Voltage.
233253b7b7SPankaj Dubey
24bfce552dSPankaj Dubeyconfig EXYNOS_PMU
25b11301d5SKrzysztof Kozlowski	bool "Exynos PMU controller driver" if COMPILE_TEST
26a0ebf662SKrzysztof Kozlowski	depends on ARCH_EXYNOS || ((ARM || ARM64) && COMPILE_TEST)
27a0ebf662SKrzysztof Kozlowski	select EXYNOS_PMU_ARM_DRIVERS if ARM && ARCH_EXYNOS
28*e37ef6dcSDavid Virag	select MFD_CORE
29a0ebf662SKrzysztof Kozlowski
30a0ebf662SKrzysztof Kozlowski# There is no need to enable these drivers for ARMv8
31a0ebf662SKrzysztof Kozlowskiconfig EXYNOS_PMU_ARM_DRIVERS
32a0ebf662SKrzysztof Kozlowski	bool "Exynos PMU ARMv7-specific driver extensions" if COMPILE_TEST
33a0ebf662SKrzysztof Kozlowski	depends on EXYNOS_PMU
34bfce552dSPankaj Dubey
359479f7ccSKrzysztof Kozlowskiconfig EXYNOS_PM_DOMAINS
369479f7ccSKrzysztof Kozlowski	bool "Exynos PM domains" if COMPILE_TEST
3717132da7SArnd Bergmann	depends on (ARCH_EXYNOS && PM_GENERIC_DOMAINS) || COMPILE_TEST
3817132da7SArnd Bergmann
3917132da7SArnd Bergmannconfig SAMSUNG_PM_DEBUG
4017132da7SArnd Bergmann	bool "Samsung PM Suspend debug"
4117132da7SArnd Bergmann	depends on PM && DEBUG_KERNEL
4217132da7SArnd Bergmann	depends on PLAT_S3C24XX || ARCH_S3C64XX || ARCH_S5PV210
4317132da7SArnd Bergmann	depends on DEBUG_S3C24XX_UART || DEBUG_S3C2410_UART
4476940c8dSOlof Johansson	depends on DEBUG_LL && MMU
4517132da7SArnd Bergmann	help
4617132da7SArnd Bergmann	  Say Y here if you want verbose debugging from the PM Suspend and
4717132da7SArnd Bergmann	  Resume code. See <file:Documentation/arm/samsung-s3c24xx/suspend.rst>
4817132da7SArnd Bergmann	  for more information.
4917132da7SArnd Bergmann
5017132da7SArnd Bergmannconfig S3C_PM_DEBUG_LED_SMDK
5117132da7SArnd Bergmann       bool "SMDK LED suspend/resume debugging"
5217132da7SArnd Bergmann       depends on PM && (MACH_SMDK6410)
5317132da7SArnd Bergmann       help
5417132da7SArnd Bergmann         Say Y here to enable the use of the SMDK LEDs on the baseboard
5517132da7SArnd Bergmann	 for debugging of the state of the suspend and resume process.
5617132da7SArnd Bergmann
5717132da7SArnd Bergmann	 Note, this currently only works for S3C64XX based SMDK boards.
5817132da7SArnd Bergmann
5917132da7SArnd Bergmannconfig SAMSUNG_PM_CHECK
6017132da7SArnd Bergmann	bool "S3C2410 PM Suspend Memory CRC"
6117132da7SArnd Bergmann	depends on PM && (PLAT_S3C24XX || ARCH_S3C64XX || ARCH_S5PV210)
6217132da7SArnd Bergmann	select CRC32
6317132da7SArnd Bergmann	help
6417132da7SArnd Bergmann	  Enable the PM code's memory area checksum over sleep. This option
6517132da7SArnd Bergmann	  will generate CRCs of all blocks of memory, and store them before
6617132da7SArnd Bergmann	  going to sleep. The blocks are then checked on resume for any
6717132da7SArnd Bergmann	  errors.
6817132da7SArnd Bergmann
6917132da7SArnd Bergmann	  Note, this can take several seconds depending on memory size
7017132da7SArnd Bergmann	  and CPU speed.
7117132da7SArnd Bergmann
7217132da7SArnd Bergmann	  See <file:Documentation/arm/samsung-s3c24xx/suspend.rst>
7317132da7SArnd Bergmann
7417132da7SArnd Bergmannconfig SAMSUNG_PM_CHECK_CHUNKSIZE
7517132da7SArnd Bergmann	int "S3C2410 PM Suspend CRC Chunksize (KiB)"
7617132da7SArnd Bergmann	depends on PM && SAMSUNG_PM_CHECK
7717132da7SArnd Bergmann	default 64
7817132da7SArnd Bergmann	help
7917132da7SArnd Bergmann	  Set the chunksize in Kilobytes of the CRC for checking memory
8017132da7SArnd Bergmann	  corruption over suspend and resume. A smaller value will mean that
8117132da7SArnd Bergmann	  the CRC data block will take more memory, but will identify any
8217132da7SArnd Bergmann	  faults with better precision.
8317132da7SArnd Bergmann
8417132da7SArnd Bergmann	  See <file:Documentation/arm/samsung-s3c24xx/suspend.rst>
859479f7ccSKrzysztof Kozlowski
8600067ca5SMarek Szyprowskiconfig EXYNOS_REGULATOR_COUPLER
8700067ca5SMarek Szyprowski	bool "Exynos SoC Regulator Coupler" if COMPILE_TEST
8800067ca5SMarek Szyprowski	depends on ARCH_EXYNOS || COMPILE_TEST
89b11301d5SKrzysztof Kozlowskiendif
90