summaryrefslogtreecommitdiff
path: root/include/i2c.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-04-20 12:37:15 -0600
committerSimon Glass <sjg@chromium.org>2015-05-05 20:58:19 -0600
commit182bf92d19cf007c2d6b9a264107d6996ae9014f (patch)
treed73c8abc54efc11cf05e39f891dd57560448c8d9 /include/i2c.h
parentba3864f8037f58dd1f46cad3b76adc0a84bd33b3 (diff)
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>
Diffstat (limited to 'include/i2c.h')
-rw-r--r--include/i2c.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/i2c.h b/include/i2c.h
index d794057f4b..1e259861b7 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -54,6 +54,7 @@ struct dm_i2c_chip {
uint flags;
#ifdef CONFIG_SANDBOX
struct udevice *emul;
+ bool test_mode;
#endif
};