drivers/nvmem/Kconfig

Source file repositories/reference/linux-study-clean/drivers/nvmem/Kconfig

File Facts

System
Linux kernel
Corpus path
drivers/nvmem/Kconfig
Extension
[no extension]
Size
15385 bytes
Lines
487
Domain
Driver Families
Bucket
drivers/nvmem
Inferred role
Driver Families: build/configuration rule
Status
atlas-only

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

# SPDX-License-Identifier: GPL-2.0-only
menuconfig NVMEM
	bool "NVMEM Support"
	imply NVMEM_LAYOUTS
	help
	  Support for NVMEM(Non Volatile Memory) devices like EEPROM, EFUSES...

	  This framework is designed to provide a generic interface to NVMEM
	  from both the Linux Kernel and the userspace.

	  If unsure, say no.

if NVMEM

config NVMEM_SYSFS
	bool "/sys/bus/nvmem/devices/*/nvmem (sysfs interface)"
	depends on SYSFS
	default y
	help
	 Say Y here to add a sysfs interface for NVMEM.

	 This interface is mostly used by userspace applications to
	 read/write directly into nvmem.

# Layouts

source "drivers/nvmem/layouts/Kconfig"

# Devices

config NVMEM_AN8855_EFUSE
	tristate "Airoha AN8855 eFuse support"
	depends on COMPILE_TEST
	help
	  Say y here to enable support for reading eFuses on Airoha AN8855
	  Switch. These are e.g. used to store factory programmed
	  calibration data required for the PHY.

	  This driver can also be built as a module. If so, the module will
	  be called nvmem-an8855-efuse.

config NVMEM_APPLE_EFUSES
	tristate "Apple eFuse support"
	depends on ARCH_APPLE || COMPILE_TEST
	help
	  Say y here to enable support for reading eFuses on Apple SoCs
	  such as the M1. These are e.g. used to store factory programmed
	  calibration data required for the PCIe or the USB-C PHY.

	  This driver can also be built as a module. If so, the module will
	  be called nvmem-apple-efuses.

config NVMEM_APPLE_SPMI
	tristate "Apple SPMI NVMEM"
	depends on ARCH_APPLE || COMPILE_TEST
	depends on SPMI
	select REGMAP_SPMI
	help
	  Say y here to build a driver to expose NVMEM cells for a set of power
	  and RTC-related settings on a SPMI-attached PMIC present on Apple
	  devices, such as Apple Silicon Macs.

	  This driver can also be built as a module. If so, the module
	  will be called apple-nvmem-spmi.

config NVMEM_BCM_OCOTP
	tristate "Broadcom On-Chip OTP Controller support"
	depends on ARCH_BCM_IPROC || COMPILE_TEST
	depends on HAS_IOMEM
	default ARCH_BCM_IPROC

Annotation

Implementation Notes