Commit c70c71d8334216e272c33c35aff39e42d7c5185e
1 parent
63656b762e
Exists in
v2017.01-smarct4x
and in
37 other branches
dm: i2c: Add I2C emulation driver for sandbox
In order to test I2C we need some sort of emulation interface. Add hooks to allow a driver to emulate an I2C device for sandbox. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Heiko Schocher <hs@denx.de> Reviewed-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Showing 3 changed files with 16 additions and 0 deletions Side-by-side Diff
drivers/i2c/Makefile
... | ... | @@ -27,6 +27,7 @@ |
27 | 27 | obj-$(CONFIG_SYS_I2C_PPC4XX) += ppc4xx_i2c.o |
28 | 28 | obj-$(CONFIG_SYS_I2C_RCAR) += rcar_i2c.o |
29 | 29 | obj-$(CONFIG_SYS_I2C_S3C24X0) += s3c24x0_i2c.o |
30 | +obj-$(CONFIG_SYS_I2C_SANDBOX) += i2c-emul-uclass.o | |
30 | 31 | obj-$(CONFIG_SYS_I2C_SH) += sh_i2c.o |
31 | 32 | obj-$(CONFIG_SYS_I2C_SOFT) += soft_i2c.o |
32 | 33 | obj-$(CONFIG_SYS_I2C_TEGRA) += tegra_i2c.o |
drivers/i2c/i2c-emul-uclass.c
include/dm/uclass-id.h