Skip to contentSkip to conversation

misc: Kconfig: Add SPL_I2C_EEPROM option

PATCH New Wenyou Yang 3 participants 3 messages Sep 6, 2017 – Sep 12, 2017 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 misc: Kconfig: Add SPL_I2C_EEPROM option

This option is an SPL-variant of the I2C_EEPROM option to enable the driver for generic I2C-attached EEPROMs for SPL.

---

Changes in v2:
- Rebase the uboot/master (84a4206).

 drivers/misc/Kconfig  | 8 ++++++++
 drivers/misc/Makefile | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)
drivers/misc/Kconfig +8 -0
index 3d282d5b14..4133017e32 100644
@@ -197,6 +197,14 @@ config I2C_EEPROM
 	help
 	  Enable a generic driver for EEPROMs attached via I2C.
 
+
+config SPL_I2C_EEPROM
+	bool "Enable driver for generic I2C-attached EEPROMs for SPL"
+	depends on MISC && SPL && SPL_DM
+	help
+	  This option is an SPL-variant of the I2C_EEPROM option.
+	  See the help of I2C_EEPROM for details.
+
 if I2C_EEPROM
 
 config SYS_I2C_EEPROM_ADDR
drivers/misc/Makefile +1 -1
index 10265c8fb4..21f7e6c6f5 100644
@@ -20,7 +20,7 @@ obj-$(CONFIG_CROS_EC_SPI) += cros_ec_spi.o
 endif
 obj-$(CONFIG_FSL_IIM) += fsl_iim.o
 obj-$(CONFIG_LED_STATUS_GPIO) += gpio_led.o
-obj-$(CONFIG_I2C_EEPROM) += i2c_eeprom.o
+obj-$(CONFIG_$(SPL_)I2C_EEPROM) += i2c_eeprom.o
 obj-$(CONFIG_FSL_MC9SDZ60) += mc9sdz60.o
 obj-$(CONFIG_MXC_OCOTP) += mxc_ocotp.o
 obj-$(CONFIG_MXS_OCOTP) += mxs_ocotp.o
Signature · 1 line
2.13.0
#1 lore raw

PATCH v2 1/1 misc: Kconfig: Add SPL_I2C_EEPROM option

Quoted 4 lines · Wenyou Yang

This option is an SPL-variant of the I2C_EEPROM option to enable the driver for generic I2C-attached EEPROMs for SPL.

Quoted 8 lines

---

Changes in v2:
- Rebase the uboot/master (84a4206).

 drivers/misc/Kconfig  | 8 ++++++++
 drivers/misc/Makefile | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)
#2 lore raw

PATCH v2 1/1 misc: Kconfig: Add SPL_I2C_EEPROM option

In reply to Wenyou Yang
Quoted 5 lines · Wenyou Yang

This option is an SPL-variant of the I2C_EEPROM option to enable the driver for generic I2C-attached EEPROMs for SPL.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170912/a3c3f171/attachment.sig>