diff options
author | Simon Glass <sjg@chromium.org> | 2015-04-20 12:37:15 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-05-05 20:58:19 -0600 |
commit | 182bf92d19cf007c2d6b9a264107d6996ae9014f (patch) | |
tree | d73c8abc54efc11cf05e39f891dd57560448c8d9 /include/i2c.h | |
parent | ba3864f8037f58dd1f46cad3b76adc0a84bd33b3 (diff) | |
download | u-boot-182bf92d19cf007c2d6b9a264107d6996ae9014f.tar.gz u-boot-182bf92d19cf007c2d6b9a264107d6996ae9014f.tar.bz2 u-boot-182bf92d19cf007c2d6b9a264107d6996ae9014f.zip |
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.h | 1 |
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 }; |