From f9272713da615e51ea14f70872fec46fbd88e938 Mon Sep 17 00:00:00 2001 From: Vijay Hiremath Date: Mon, 3 Aug 2015 23:37:54 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/290427 Commit-Ready: Vijay P Hiremath Tested-by: Vijay P Hiremath Reviewed-by: Shawn N --- include/battery.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/battery.h') 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 */ -- cgit v1.2.1