xref: /openbmc/linux/drivers/soc/samsung/Kconfig (revision 63705da3)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Samsung SoC drivers
4#
5menuconfig SOC_SAMSUNG
6	bool "Samsung SoC driver support" if COMPILE_TEST
7
8if SOC_SAMSUNG
9
10# There is no need to enable these drivers for ARMv8
11config EXYNOS_ASV_ARM
12	bool "Exynos ASV ARMv7-specific driver extensions" if COMPILE_TEST
13	depends on EXYNOS_CHIPID
14
15config EXYNOS_CHIPID
16	tristate "Exynos ChipID controller and ASV driver"
17	depends on ARCH_EXYNOS || COMPILE_TEST
18	default ARCH_EXYNOS
19	select EXYNOS_ASV_ARM if ARM && ARCH_EXYNOS
20	select MFD_SYSCON
21	select SOC_BUS
22	help
23	  Support for Samsung Exynos SoC ChipID and Adaptive Supply Voltage.
24	  This driver can also be built as module (exynos_chipid).
25
26config EXYNOS_PMU
27	bool "Exynos PMU controller driver" if COMPILE_TEST
28	depends on ARCH_EXYNOS || ((ARM || ARM64) && COMPILE_TEST)
29	select EXYNOS_PMU_ARM_DRIVERS if ARM && ARCH_EXYNOS
30	select MFD_CORE
31
32# There is no need to enable these drivers for ARMv8
33config EXYNOS_PMU_ARM_DRIVERS
34	bool "Exynos PMU ARMv7-specific driver extensions" if COMPILE_TEST
35	depends on EXYNOS_PMU
36
37config EXYNOS_PM_DOMAINS
38	bool "Exynos PM domains" if COMPILE_TEST
39	depends on (ARCH_EXYNOS && PM_GENERIC_DOMAINS) || COMPILE_TEST
40
41config SAMSUNG_PM_DEBUG
42	bool "Samsung PM Suspend debug"
43	depends on PM && DEBUG_KERNEL
44	depends on PLAT_S3C24XX || ARCH_S3C64XX || ARCH_S5PV210
45	depends on DEBUG_S3C24XX_UART || DEBUG_S3C2410_UART
46	depends on DEBUG_LL && MMU
47	help
48	  Say Y here if you want verbose debugging from the PM Suspend and
49	  Resume code. See <file:Documentation/arm/samsung-s3c24xx/suspend.rst>
50	  for more information.
51
52config S3C_PM_DEBUG_LED_SMDK
53       bool "SMDK LED suspend/resume debugging"
54       depends on PM && (MACH_SMDK6410)
55       help
56         Say Y here to enable the use of the SMDK LEDs on the baseboard
57	 for debugging of the state of the suspend and resume process.
58
59	 Note, this currently only works for S3C64XX based SMDK boards.
60
61config SAMSUNG_PM_CHECK
62	bool "S3C2410 PM Suspend Memory CRC"
63	depends on PM && (PLAT_S3C24XX || ARCH_S3C64XX || ARCH_S5PV210)
64	select CRC32
65	help
66	  Enable the PM code's memory area checksum over sleep. This option
67	  will generate CRCs of all blocks of memory, and store them before
68	  going to sleep. The blocks are then checked on resume for any
69	  errors.
70
71	  Note, this can take several seconds depending on memory size
72	  and CPU speed.
73
74	  See <file:Documentation/arm/samsung-s3c24xx/suspend.rst>
75
76config SAMSUNG_PM_CHECK_CHUNKSIZE
77	int "S3C2410 PM Suspend CRC Chunksize (KiB)"
78	depends on PM && SAMSUNG_PM_CHECK
79	default 64
80	help
81	  Set the chunksize in Kilobytes of the CRC for checking memory
82	  corruption over suspend and resume. A smaller value will mean that
83	  the CRC data block will take more memory, but will identify any
84	  faults with better precision.
85
86	  See <file:Documentation/arm/samsung-s3c24xx/suspend.rst>
87
88config EXYNOS_REGULATOR_COUPLER
89	bool "Exynos SoC Regulator Coupler" if COMPILE_TEST
90	depends on ARCH_EXYNOS || COMPILE_TEST
91endif
92