]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
misc: Kconfig: Add SPL_I2C_EEPROM option
authorWenyou Yang <wenyou.yang@microchip.com>
Wed, 6 Sep 2017 05:08:14 +0000 (13:08 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 12 Sep 2017 02:44:30 +0000 (22:44 -0400)
This option is an SPL-variant of the I2C_EEPROM option to enable
the driver for generic I2C-attached EEPROMs for SPL.

Signed-off-by: Wenyou Yang <wenyou.yang@microchip.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/misc/Kconfig
drivers/misc/Makefile

index 3d282d5b14cfff7a43818a8fd4e633e28f1bb2b9..4133017e32d8949017adf5a2dc098cca175f2f01 100644 (file)
@@ -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
index 10265c8fb4693f4fb454f8c0fd77a6150586cc8c..21f7e6c6f58175e37545e88fab97414f50e29507 100644 (file)
@@ -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