]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:37:13 +0000 (22:37 +0200)
commitc7b3f73303a52a5f950c484a6eaae1bcddd23bfb
treebc978a032b85c14252942bf18a301e37c1c927b0
parent10a7b726296d52243a28b4a2335c8a15413ad9ae
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