diff options
author | Vijay Hiremath <vijay.p.hiremath@intel.com> | 2015-08-03 23:37:54 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-09-23 15:10:08 -0700 |
commit | f9272713da615e51ea14f70872fec46fbd88e938 (patch) | |
tree | 7b12c57a3435a615718c9d3325dfc0671fc297b6 /include/battery.h | |
parent | 806aae81f6bed5ab1a26e860eaa2b5b1349a1444 (diff) | |
download | chrome-ec-f9272713da615e51ea14f70872fec46fbd88e938.tar.gz |
i2c: Add i2ctest console command
Added i2ctest console command to test the reliability of the I2C.
By reading/writing to the known registers this tests provides the
number of successful read and writes.
BUG=chrome-os-partner:57487
TEST=Enabled the i2ctest config on Reef and tested the
i2c read/writes.
BRANCH=none
Change-Id: I9e27ff96f2b85422933bc590d112a083990e2dfb
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/290427
Commit-Ready: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'include/battery.h')
-rw-r--r-- | include/battery.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/battery.h b/include/battery.h index e79ddd3adf..4f729895b9 100644 --- a/include/battery.h +++ b/include/battery.h @@ -333,4 +333,8 @@ void print_battery_debug(void); */ enum battery_disconnect_state battery_get_disconnect_state(void); +#ifdef CONFIG_CMD_I2C_STRESS_TEST_BATTERY +extern struct i2c_stress_test_dev battery_i2c_stress_test_dev; +#endif + #endif /* __CROS_EC_BATTERY_H */ |