summaryrefslogtreecommitdiffstats
path: root/include/dm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-12-10 08:55:49 -0700
committerSimon Glass <sjg@chromium.org>2014-12-11 13:18:42 -0700
commitc70c71d8334216e272c33c35aff39e42d7c5185e (patch)
tree3d11ad7263c4d88fbfa751901082b1db9966703b /include/dm
parent63656b762e50b2f11e228d94fdbb025a84900c71 (diff)
downloadtalos-obmc-uboot-c70c71d8334216e272c33c35aff39e42d7c5185e.tar.gz
talos-obmc-uboot-c70c71d8334216e272c33c35aff39e42d7c5185e.zip
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>
Diffstat (limited to 'include/dm')
-rw-r--r--include/dm/uclass-id.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dm/uclass-id.h b/include/dm/uclass-id.h
index 01866c3a9c..16e4224c16 100644
--- a/include/dm/uclass-id.h
+++ b/include/dm/uclass-id.h
@@ -19,6 +19,7 @@ enum uclass_id {
UCLASS_TEST_FDT,
UCLASS_TEST_BUS,
UCLASS_SPI_EMUL, /* sandbox SPI device emulator */
+ UCLASS_I2C_EMUL, /* sandbox I2C device emulator */
UCLASS_SIMPLE_BUS,
/* U-Boot uclasses start here */
OpenPOWER on IntegriCloud