xref: /openbmc/linux/drivers/misc/eeprom/Kconfig (revision b593bce5)
1# SPDX-License-Identifier: GPL-2.0-only
2menu "EEPROM support"
3
4config EEPROM_AT24
5	tristate "I2C EEPROMs / RAMs / ROMs from most vendors"
6	depends on I2C && SYSFS
7	select NVMEM
8	select NVMEM_SYSFS
9	select REGMAP_I2C
10	help
11	  Enable this driver to get read/write support to most I2C EEPROMs
12	  and compatible devices like FRAMs, SRAMs, ROMs etc. After you
13	  configure the driver to know about each chip on your target
14	  board.  Use these generic chip names, instead of vendor-specific
15	  ones like at24c64, 24lc02 or fm24c04:
16
17	     24c00, 24c01, 24c02, spd (readonly 24c02), 24c04, 24c08,
18	     24c16, 24c32, 24c64, 24c128, 24c256, 24c512, 24c1024, 24c2048
19
20	  Unless you like data loss puzzles, always be sure that any chip
21	  you configure as a 24c32 (32 kbit) or larger is NOT really a
22	  24c16 (16 kbit) or smaller, and vice versa. Marking the chip
23	  as read-only won't help recover from this. Also, if your chip
24	  has any software write-protect mechanism you may want to review the
25	  code to make sure this driver won't turn it on by accident.
26
27	  If you use this with an SMBus adapter instead of an I2C adapter,
28	  full functionality is not available.  Only smaller devices are
29	  supported (24c16 and below, max 4 kByte).
30
31	  This driver can also be built as a module.  If so, the module
32	  will be called at24.
33
34config EEPROM_AT25
35	tristate "SPI EEPROMs from most vendors"
36	depends on SPI && SYSFS
37	select NVMEM
38	select NVMEM_SYSFS
39	help
40	  Enable this driver to get read/write support to most SPI EEPROMs,
41	  after you configure the board init code to know about each eeprom
42	  on your target board.
43
44	  This driver can also be built as a module.  If so, the module
45	  will be called at25.
46
47config EEPROM_LEGACY
48	tristate "Old I2C EEPROM reader"
49	depends on I2C && SYSFS
50	help
51	  If you say yes here you get read-only access to the EEPROM data
52	  available on modern memory DIMMs and Sony Vaio laptops via I2C. Such
53	  EEPROMs could theoretically be available on other devices as well.
54
55	  This driver can also be built as a module.  If so, the module
56	  will be called eeprom.
57
58config EEPROM_MAX6875
59	tristate "Maxim MAX6874/5 power supply supervisor"
60	depends on I2C
61	help
62	  If you say yes here you get read-only support for the user EEPROM of
63	  the Maxim MAX6874/5 EEPROM-programmable, quad power-supply
64	  sequencer/supervisor.
65
66	  All other features of this chip should be accessed via i2c-dev.
67
68	  This driver can also be built as a module.  If so, the module
69	  will be called max6875.
70
71
72config EEPROM_93CX6
73	tristate "EEPROM 93CX6 support"
74	help
75	  This is a driver for the EEPROM chipsets 93c46 and 93c66.
76	  The driver supports both read as well as write commands.
77
78	  If unsure, say N.
79
80config EEPROM_93XX46
81	tristate "Microwire EEPROM 93XX46 support"
82	depends on SPI && SYSFS
83	select REGMAP
84	select NVMEM
85	select NVMEM_SYSFS
86	help
87	  Driver for the microwire EEPROM chipsets 93xx46x. The driver
88	  supports both read and write commands and also the command to
89	  erase the whole EEPROM.
90
91	  This driver can also be built as a module.  If so, the module
92	  will be called eeprom_93xx46.
93
94	  If unsure, say N.
95
96config EEPROM_DIGSY_MTC_CFG
97	bool "DigsyMTC display configuration EEPROMs device"
98	depends on GPIO_MPC5200 && SPI_GPIO
99	help
100	  This option enables access to display configuration EEPROMs
101	  on digsy_mtc board. You have to additionally select Microwire
102	  EEPROM 93XX46 driver. sysfs entries will be created for that
103	  EEPROM allowing to read/write the configuration data or to
104	  erase the whole EEPROM.
105
106	  If unsure, say N.
107
108config EEPROM_IDT_89HPESX
109	tristate "IDT 89HPESx PCIe-swtiches EEPROM / CSR support"
110	depends on I2C && SYSFS
111	help
112	  Enable this driver to get read/write access to EEPROM / CSRs
113	  over IDT PCIe-swtich i2c-slave interface.
114
115	  This driver can also be built as a module. If so, the module
116	  will be called idt_89hpesx.
117
118config EEPROM_EE1004
119	tristate "SPD EEPROMs on DDR4 memory modules"
120	depends on I2C && SYSFS
121	help
122	  Enable this driver to get read support to SPD EEPROMs following
123	  the JEDEC EE1004 standard. These are typically found on DDR4
124	  SDRAM memory modules.
125
126	  This driver can also be built as a module.  If so, the module
127	  will be called ee1004.
128
129endmenu
130