dm: i2c: Add an explicit test mode to the sandbox I2C driver
authorSimon Glass <sjg@chromium.org>
Mon, 20 Apr 2015 18:37:15 +0000 (12:37 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 6 May 2015 02:58:19 +0000 (20:58 -0600)
commit182bf92d19cf007c2d6b9a264107d6996ae9014f
treed73c8abc54efc11cf05e39f891dd57560448c8d9
parentba3864f8037f58dd1f46cad3b76adc0a84bd33b3
dm: i2c: Add an explicit test mode to the sandbox I2C driver

At present this driver has a few test features. They are needed for running
the driver model unit tests but are confusing and unnecessary if using
sandbox at the command line. Add a flag to enable the test mode, and don't
enable it by default.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/include/asm/test.h
drivers/i2c/sandbox_i2c.c
include/i2c.h
test/dm/i2c.c