summaryrefslogtreecommitdiff
path: root/drivers/misc/Makefile
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-12-10 08:55:51 -0700
committerSimon Glass <sjg@chromium.org>2014-12-11 13:18:42 -0700
commit6ec1b7535873dee4c73895e430494e12be4e3e4d (patch)
tree588586656c2c3fa6d9231b23b622f768ccac7dd9 /drivers/misc/Makefile
parentd19de0d314010ac8566ac363ce85f2d3707d5c72 (diff)
downloadu-boot-imx-6ec1b7535873dee4c73895e430494e12be4e3e4d.zip
u-boot-imx-6ec1b7535873dee4c73895e430494e12be4e3e4d.tar.gz
u-boot-imx-6ec1b7535873dee4c73895e430494e12be4e3e4d.tar.bz2
dm: i2c: Add an I2C EEPROM simulator
To enable testing of I2C, add a simple I2C EEPROM simulator for sandbox. It supports reading and writing from a small data store. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Heiko Schocher <hs@denx.de> Reviewed-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'drivers/misc/Makefile')
-rw-r--r--drivers/misc/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile
index 2f2e48f..ff02184 100644
--- a/drivers/misc/Makefile
+++ b/drivers/misc/Makefile
@@ -20,6 +20,9 @@ obj-$(CONFIG_MXC_OCOTP) += mxc_ocotp.o
obj-$(CONFIG_MXS_OCOTP) += mxs_ocotp.o
obj-$(CONFIG_NS87308) += ns87308.o
obj-$(CONFIG_PDSP188x) += pdsp188x.o
+ifdef CONFIG_DM_I2C
+obj-$(CONFIG_SANDBOX) += i2c_eeprom_emul.o
+endif
obj-$(CONFIG_STATUS_LED) += status_led.o
obj-$(CONFIG_TWL4030_LED) += twl4030_led.o
obj-$(CONFIG_FSL_IFC) += fsl_ifc.o