xref: /openbmc/linux/drivers/soc/samsung/Kconfig (revision 17132da7)
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 Nawrockiconfig EXYNOS_ASV
115ea42859SSylwester Nawrocki	bool "Exynos Adaptive Supply Voltage support" if COMPILE_TEST
125ea42859SSylwester Nawrocki	depends on (ARCH_EXYNOS && EXYNOS_CHIPID) || COMPILE_TEST
135ea42859SSylwester Nawrocki	select EXYNOS_ASV_ARM if ARM && ARCH_EXYNOS
145ea42859SSylwester Nawrocki
155ea42859SSylwester Nawrocki# There is no need to enable these drivers for ARMv8
165ea42859SSylwester Nawrockiconfig EXYNOS_ASV_ARM
175ea42859SSylwester Nawrocki	bool "Exynos ASV ARMv7-specific driver extensions" if COMPILE_TEST
185ea42859SSylwester Nawrocki	depends on EXYNOS_ASV
195ea42859SSylwester Nawrocki
203253b7b7SPankaj Dubeyconfig EXYNOS_CHIPID
213253b7b7SPankaj Dubey	bool "Exynos Chipid controller driver" if COMPILE_TEST
223253b7b7SPankaj Dubey	depends on ARCH_EXYNOS || COMPILE_TEST
2328578825SSylwester Nawrocki	select MFD_SYSCON
243253b7b7SPankaj Dubey	select SOC_BUS
253253b7b7SPankaj Dubey
26bfce552dSPankaj Dubeyconfig EXYNOS_PMU
27b11301d5SKrzysztof Kozlowski	bool "Exynos PMU controller driver" if COMPILE_TEST
28a0ebf662SKrzysztof Kozlowski	depends on ARCH_EXYNOS || ((ARM || ARM64) && COMPILE_TEST)
29a0ebf662SKrzysztof Kozlowski	select EXYNOS_PMU_ARM_DRIVERS if ARM && ARCH_EXYNOS
30a0ebf662SKrzysztof Kozlowski
31a0ebf662SKrzysztof Kozlowski# There is no need to enable these drivers for ARMv8
32a0ebf662SKrzysztof Kozlowskiconfig EXYNOS_PMU_ARM_DRIVERS
33a0ebf662SKrzysztof Kozlowski	bool "Exynos PMU ARMv7-specific driver extensions" if COMPILE_TEST
34a0ebf662SKrzysztof Kozlowski	depends on EXYNOS_PMU
35bfce552dSPankaj Dubey
369479f7ccSKrzysztof Kozlowskiconfig EXYNOS_PM_DOMAINS
379479f7ccSKrzysztof Kozlowski	bool "Exynos PM domains" if COMPILE_TEST
38*17132da7SArnd Bergmann	depends on (ARCH_EXYNOS && PM_GENERIC_DOMAINS) || COMPILE_TEST
39*17132da7SArnd Bergmann
40*17132da7SArnd Bergmannconfig SAMSUNG_PM_DEBUG
41*17132da7SArnd Bergmann	bool "Samsung PM Suspend debug"
42*17132da7SArnd Bergmann	depends on PM && DEBUG_KERNEL
43*17132da7SArnd Bergmann	depends on PLAT_S3C24XX || ARCH_S3C64XX || ARCH_S5PV210
44*17132da7SArnd Bergmann	depends on DEBUG_S3C24XX_UART || DEBUG_S3C2410_UART
45*17132da7SArnd Bergmann	help
46*17132da7SArnd Bergmann	  Say Y here if you want verbose debugging from the PM Suspend and
47*17132da7SArnd Bergmann	  Resume code. See <file:Documentation/arm/samsung-s3c24xx/suspend.rst>
48*17132da7SArnd Bergmann	  for more information.
49*17132da7SArnd Bergmann
50*17132da7SArnd Bergmannconfig S3C_PM_DEBUG_LED_SMDK
51*17132da7SArnd Bergmann       bool "SMDK LED suspend/resume debugging"
52*17132da7SArnd Bergmann       depends on PM && (MACH_SMDK6410)
53*17132da7SArnd Bergmann       help
54*17132da7SArnd Bergmann         Say Y here to enable the use of the SMDK LEDs on the baseboard
55*17132da7SArnd Bergmann	 for debugging of the state of the suspend and resume process.
56*17132da7SArnd Bergmann
57*17132da7SArnd Bergmann	 Note, this currently only works for S3C64XX based SMDK boards.
58*17132da7SArnd Bergmann
59*17132da7SArnd Bergmannconfig SAMSUNG_PM_CHECK
60*17132da7SArnd Bergmann	bool "S3C2410 PM Suspend Memory CRC"
61*17132da7SArnd Bergmann	depends on PM && (PLAT_S3C24XX || ARCH_S3C64XX || ARCH_S5PV210)
62*17132da7SArnd Bergmann	select CRC32
63*17132da7SArnd Bergmann	help
64*17132da7SArnd Bergmann	  Enable the PM code's memory area checksum over sleep. This option
65*17132da7SArnd Bergmann	  will generate CRCs of all blocks of memory, and store them before
66*17132da7SArnd Bergmann	  going to sleep. The blocks are then checked on resume for any
67*17132da7SArnd Bergmann	  errors.
68*17132da7SArnd Bergmann
69*17132da7SArnd Bergmann	  Note, this can take several seconds depending on memory size
70*17132da7SArnd Bergmann	  and CPU speed.
71*17132da7SArnd Bergmann
72*17132da7SArnd Bergmann	  See <file:Documentation/arm/samsung-s3c24xx/suspend.rst>
73*17132da7SArnd Bergmann
74*17132da7SArnd Bergmannconfig SAMSUNG_PM_CHECK_CHUNKSIZE
75*17132da7SArnd Bergmann	int "S3C2410 PM Suspend CRC Chunksize (KiB)"
76*17132da7SArnd Bergmann	depends on PM && SAMSUNG_PM_CHECK
77*17132da7SArnd Bergmann	default 64
78*17132da7SArnd Bergmann	help
79*17132da7SArnd Bergmann	  Set the chunksize in Kilobytes of the CRC for checking memory
80*17132da7SArnd Bergmann	  corruption over suspend and resume. A smaller value will mean that
81*17132da7SArnd Bergmann	  the CRC data block will take more memory, but will identify any
82*17132da7SArnd Bergmann	  faults with better precision.
83*17132da7SArnd Bergmann
84*17132da7SArnd 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