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