dm: i2c: Add I2C emulation driver for sandbox
authorSimon Glass <sjg@chromium.org>
Wed, 10 Dec 2014 15:55:49 +0000 (08:55 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 11 Dec 2014 20:18:42 +0000 (13:18 -0700)
commitc70c71d8334216e272c33c35aff39e42d7c5185e
tree3d11ad7263c4d88fbfa751901082b1db9966703b
parent63656b762e50b2f11e228d94fdbb025a84900c71
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>
drivers/i2c/Makefile
drivers/i2c/i2c-emul-uclass.c [new file with mode: 0644]
include/dm/uclass-id.h