Randall Spangler
00ea73ab16
usb_i2c: Fail if board I2C bridge is disabled
...
Add usb_i2c_board_is_enabled().
On Cr50, this is now also connected to the I2C CCD capability. The
USB-I2C bridge can only be used when the capability is available.
On other platforms (Servo V4, etc.) where usb_i2c_board_enable() is
a no-op, add a dummy implementation which always returns true.
See go/cr50-ccd-wp for more information.
BUG=b:62537474
BRANCH=cr50
TEST=manual with CR50_DEV=1
Connect host PC to dev board USB port
On host PC:
sudo servod -c ccd_cr50.xml -c reef_r1_inas.xml
dut-control pp3300_ec_shv_reg --> fail, error 0x8001
ccdoops --> reset I2C config
ccd i2c disable --> I2C disabled
On host PC:
sudo servod -c ccd_cr50.xml -c reef_r1_inas.xml
dut-control pp3300_ec_shv_reg --> fail, error 0x0006
ccd i2c enable --> I2C enabled
ccdunlock --> I2C disabled
ccdoops --> I2C enabled
ccdset i2c unlesslocked
ccdlock --> I2C disabled
ccdunlock --> I2C enabled
Change-Id: Ia3df32e239a5f7c5915bc6c7e408ce0dc8b26c89
Signed-off-by: Randall Spangler <rspangler@chromium.org >
Reviewed-on: https://chromium-review.googlesource.com/590577
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org >
Reviewed-by: Mary Ruthven <mruthven@chromium.org >
2017-07-31 21:39:39 -07:00
..
2017-07-14 04:01:45 -07:00
2016-11-08 17:11:28 -08:00
2016-08-24 16:30:10 +00:00
2016-08-24 16:30:10 +00:00
2016-08-24 16:30:10 +00:00
2013-09-27 23:07:21 +00:00
2017-06-28 23:23:41 -07:00
2016-08-24 16:30:10 +00:00
2016-08-11 14:46:33 -07:00
2016-08-24 16:30:10 +00:00
2016-11-16 19:04:31 -08:00
2017-07-27 15:44:01 -07:00
2017-07-14 04:01:46 -07:00
2016-04-18 17:32:40 -07:00
2016-10-11 23:01:59 -07:00
2017-07-31 21:39:39 -07:00
2017-05-11 17:15:47 -07:00
2017-03-30 17:35:44 -07:00
2017-05-17 06:14:55 -07:00
2017-02-10 19:02:55 -08:00
2016-08-24 16:30:10 +00:00
2016-08-24 16:30:10 +00:00
2015-05-19 02:46:27 +00:00
2016-10-01 03:13:43 +00:00
2017-06-19 15:33:10 -07:00
2016-03-18 22:16:53 -07:00
2014-08-08 03:11:38 +00:00
2017-07-03 21:44:34 -07:00
2017-07-03 21:44:34 -07:00
2017-06-30 03:08:42 -07:00
2017-01-23 13:38:22 -08:00
2017-02-14 14:50:36 -08:00
2015-07-17 03:17:50 +00:00
2017-06-16 21:10:54 -07:00
2016-09-02 07:11:33 -07:00
2016-08-24 16:30:10 +00:00
2017-07-13 19:45:57 -07:00
2017-07-13 19:45:57 -07:00
2017-07-28 17:45:13 -07:00
2017-04-11 20:22:32 -07:00
2016-11-15 17:41:53 -08:00
2016-08-31 17:20:26 +00:00
2017-06-11 23:17:19 -07:00
2017-07-20 15:00:40 -07:00
2016-08-24 16:30:10 +00:00
2017-06-30 16:02:50 -07:00
2017-06-30 03:08:42 -07:00
2017-06-09 21:44:03 -07:00
2017-07-05 14:24:49 -07:00
2017-04-26 13:37:04 -07:00
2016-08-24 16:30:10 +00:00
2017-02-02 12:29:30 -08:00
2016-04-18 17:32:40 -07:00
2017-05-18 18:07:29 -07:00
2017-05-03 19:40:24 -07:00
2017-07-28 17:45:14 -07:00
2017-05-08 07:04:06 -07:00
2013-03-22 11:24:29 -07:00
2015-09-25 09:13:34 -07:00
2017-05-02 17:45:16 -07:00
2017-04-13 12:55:33 -07:00
2016-03-02 13:39:47 -08:00
2016-08-24 16:30:10 +00:00
2016-08-24 16:30:10 +00:00
2015-10-13 05:28:54 -07:00
2017-06-28 21:50:51 -07:00
2015-10-13 05:28:54 -07:00
2015-10-13 05:28:54 -07:00
2017-06-19 15:33:09 -07:00
2016-10-01 00:02:01 -07:00
2017-07-28 15:04:24 -07:00
2017-07-13 08:32:58 -07:00
2017-06-01 00:51:37 -07:00
2017-06-02 10:38:57 -07:00
2017-02-27 18:50:12 -08:00
2017-02-23 01:19:07 -08:00
2013-08-02 18:22:57 -07:00
2016-10-01 03:14:07 +00:00
2016-11-15 17:41:53 -08:00
2017-07-19 14:41:21 -07:00
2016-08-24 16:30:10 +00:00
2017-06-28 21:50:51 -07:00
2016-08-24 16:30:10 +00:00
2017-02-11 13:06:38 -08:00
2017-01-03 15:13:58 -08:00
2016-08-24 16:30:10 +00:00
2016-09-08 17:57:51 -07:00
2015-06-11 00:08:49 +00:00
2015-07-15 21:57:36 +00:00
2017-06-30 16:02:50 -07:00
2017-06-14 01:19:31 -07:00
2016-11-10 21:28:28 -08:00
2017-06-21 01:03:00 -07:00
2017-02-11 13:06:38 -08:00
2014-05-17 20:14:17 +00:00
2017-06-14 05:59:37 -07:00
2016-08-31 17:20:26 +00:00
2017-01-05 21:13:09 -08:00
2016-03-21 16:35:33 -07:00
2016-08-24 16:30:10 +00:00
2017-05-12 20:58:09 -07:00
2016-10-05 20:58:37 -07:00
2017-02-09 05:04:56 +00:00
2017-05-09 23:20:07 -07:00
2017-07-28 17:45:13 -07:00
2017-01-04 18:07:12 -08:00
2016-08-24 16:30:10 +00:00
2016-08-24 16:30:10 +00:00
2016-08-24 16:30:10 +00:00
2016-08-24 16:30:10 +00:00
2017-02-03 20:01:45 -08:00
2017-07-30 22:41:06 -07:00
2017-06-29 10:37:40 -07:00
2017-05-12 13:09:54 -07:00
2017-04-26 04:28:08 -07:00
2016-06-16 12:27:42 -07:00
2017-07-31 21:39:39 -07:00
2017-05-02 20:24:17 -07:00
2017-07-18 14:26:16 -07:00
2017-03-26 02:15:54 -07:00
2017-05-01 21:54:10 -07:00
2017-05-01 21:54:10 -07:00
2017-06-15 07:07:40 -07:00
2017-02-23 16:02:02 -08:00
2017-06-27 21:28:05 -07:00
2015-10-13 05:28:54 -07:00
2017-04-06 03:29:38 -07:00
2017-07-05 14:24:49 -07:00
2016-01-25 21:46:48 -08:00
2016-08-24 16:30:10 +00:00