hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/nvmem/Kconfig
....@@ -1,3 +1,4 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 menuconfig NVMEM
23 bool "NVMEM Support"
34 help
....@@ -5,9 +6,6 @@
56
67 This framework is designed to provide a generic interface to NVMEM
78 from both the Linux Kernel and the userspace.
8
-
9
- This driver can also be built as a module. If so, the module
10
- will be called nvmem_core.
119
1210 If unsure, say no.
1311
....@@ -35,8 +33,8 @@
3533 will be called nvmem-imx-iim.
3634
3735 config NVMEM_IMX_OCOTP
38
- tristate "i.MX6 On-Chip OTP Controller support"
39
- depends on SOC_IMX6 || COMPILE_TEST
36
+ tristate "i.MX 6/7/8 On-Chip OTP Controller support"
37
+ depends on ARCH_MXC || COMPILE_TEST
4038 depends on HAS_IOMEM
4139 help
4240 This is a driver for the On-Chip OTP Controller (OCOTP) available on
....@@ -45,6 +43,26 @@
4543
4644 This driver can also be built as a module. If so, the module
4745 will be called nvmem-imx-ocotp.
46
+
47
+config NVMEM_IMX_OCOTP_SCU
48
+ tristate "i.MX8 SCU On-Chip OTP Controller support"
49
+ depends on IMX_SCU
50
+ depends on HAVE_ARM_SMCCC
51
+ help
52
+ This is a driver for the SCU On-Chip OTP Controller (OCOTP)
53
+ available on i.MX8 SoCs.
54
+
55
+config JZ4780_EFUSE
56
+ tristate "JZ4780 EFUSE Memory Support"
57
+ depends on MACH_INGENIC || COMPILE_TEST
58
+ depends on HAS_IOMEM
59
+ depends on OF
60
+ select REGMAP_MMIO
61
+ help
62
+ Say Y here to include support for JZ4780 efuse memory found on
63
+ all JZ4780 SoC based devices.
64
+ To compile this driver as a module, choose M here: the module
65
+ will be called nvmem_jz4780_efuse.
4866
4967 config NVMEM_LPC18XX_EEPROM
5068 tristate "NXP LPC18XX EEPROM Memory Support"
....@@ -100,12 +118,19 @@
100118 This driver can also be built as a module. If so, the module
101119 will be called nvmem_qfprom.
102120
121
+config NVMEM_SPMI_SDAM
122
+ tristate "SPMI SDAM Support"
123
+ depends on SPMI
124
+ help
125
+ This driver supports the Shared Direct Access Memory Module on
126
+ Qualcomm Technologies, Inc. PMICs. It provides the clients
127
+ an interface to read/write to the SDAM module's shared memory.
128
+
103129 config RK628_EFUSE
104130 tristate "RK628 eFuse Support"
105131 depends on ARCH_ROCKCHIP || COMPILE_TEST
106132 depends on HAS_IOMEM
107133 depends on MFD_RK628
108
- default MFD_RK630
109134 help
110135 This is a simple drive to dump specified values of Rk628 SoC
111136 from eFuse, such as cpu-leakage.
....@@ -125,7 +150,7 @@
125150 will be called nvmem_rockchip_efuse.
126151
127152 config ROCKCHIP_OTP
128
- tristate "Rockchip OTP Support"
153
+ tristate "Rockchip OTP controller support"
129154 depends on ARCH_ROCKCHIP || COMPILE_TEST
130155 depends on HAS_IOMEM
131156 help
....@@ -134,6 +159,17 @@
134159
135160 This driver can also be built as a module. If so, the module
136161 will be called nvmem_rockchip_otp.
162
+
163
+config NVMEM_ROCKCHIP_SEC_OTP
164
+ tristate "Rockchip Secure OTP controller support"
165
+ depends on ARCH_ROCKCHIP || COMPILE_TEST
166
+ depends on TEE && OPTEE
167
+ help
168
+ This is a simple drive to read and write non-protected
169
+ oem zone in secure otp.
170
+
171
+ This driver can also be built as a module. If so, the module
172
+ will be called nvmem-rockchip-secure-otp.
137173
138174 config NVMEM_BCM_OCOTP
139175 tristate "Broadcom On-Chip OTP Controller support"
....@@ -146,6 +182,16 @@
146182
147183 This driver can also be built as a module. If so, the module
148184 will be called nvmem-bcm-ocotp.
185
+
186
+config NVMEM_STM32_ROMEM
187
+ tristate "STMicroelectronics STM32 factory-programmed memory support"
188
+ depends on ARCH_STM32 || COMPILE_TEST
189
+ help
190
+ Say y here to enable read-only access for STMicroelectronics STM32
191
+ factory-programmed memory area.
192
+
193
+ This driver can also be built as a module. If so, the module
194
+ will be called nvmem-stm32-romem.
149195
150196 config NVMEM_SUNXI_SID
151197 tristate "Allwinner SoCs SID support"
....@@ -201,7 +247,7 @@
201247
202248 config NVMEM_SNVS_LPGPR
203249 tristate "Support for Low Power General Purpose Register"
204
- depends on SOC_IMX6 || SOC_IMX7D || COMPILE_TEST
250
+ depends on ARCH_MXC || COMPILE_TEST
205251 help
206252 This is a driver for Low Power General Purpose Register (LPGPR) available on
207253 i.MX6 and i.MX7 SoCs in Secure Non-Volatile Storage (SNVS) of this chip.
....@@ -226,4 +272,25 @@
226272 This driver can also be built as a module. If so, the module
227273 will be called nvmem-sc27xx-efuse.
228274
275
+config NVMEM_ZYNQMP
276
+ bool "Xilinx ZYNQMP SoC nvmem firmware support"
277
+ depends on ARCH_ZYNQMP
278
+ help
279
+ This is a driver to access hardware related data like
280
+ soc revision, IDCODE... etc by using the firmware
281
+ interface.
282
+
283
+ If sure, say yes. If unsure, say no.
284
+
285
+config SPRD_EFUSE
286
+ tristate "Spreadtrum SoC eFuse Support"
287
+ depends on ARCH_SPRD || COMPILE_TEST
288
+ depends on HAS_IOMEM
289
+ help
290
+ This is a simple driver to dump specified values of Spreadtrum
291
+ SoCs from eFuse.
292
+
293
+ This driver can also be built as a module. If so, the module
294
+ will be called nvmem-sprd-efuse.
295
+
229296 endif