| commit | f968fc8a198573c7c9a8a0c195e93d8b33fb8603 | [log] [tgz] |
|---|---|---|
| author | Ken Chang <[email protected]> | Fri Feb 06 06:06:16 2015 |
| committer | ChromeOS Commit Bot <[email protected]> | Wed Feb 11 03:36:06 2015 |
| tree | 9f37eed3ca43688d42ed79bcb84e537535b80dba | |
| parent | 752b7b20e20d3504549b4059dc233b13a8d41974 [diff] |
crossystem: read recovery switch status from chromeos_arm device The kernel chromeos_arm platform device provides the recovery status with the consideration of active polarity. Thus make crossystem to read from chromeos_arm device first. If this is not available, read directly from gpio pin status. BUG=chrome-os-partner:36425 BRANCH=none TEST=ran on kitty, 'crossystem recoverysw_cur' return 0 with recovery switch off 'crossystem recoverysw_cur' return 1 with recovery switch on Change-Id: Ie20630d7d07aeadf24044cd3ffc495df7cdd8a4a Signed-off-by: Ken Chang <[email protected]> Reviewed-on: https://chromium-review.googlesource.com/246883 Tested-by: Titan Lee <[email protected]> Reviewed-by: Hung-Te Lin <[email protected]> Reviewed-by: Randall Spangler <[email protected]> Commit-Queue: Titan Lee <[email protected]> (cherry picked from commit c93ddb60aae37fc06f614a1b79e6f3fee25b97c4) Reviewed-on: https://chromium-review.googlesource.com/248372 Reviewed-by: Andrew Bresticker <[email protected]>