mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 16:41:55 +00:00
Add i2cscan and kbpress commands for FAFT. Remove unnecessary i2c reading since there is no race condition. Bugs fixed: Fixed i2c_read_string bug since we shouldn't enable NACK if flag doesn't contain I2C_XFER_STOP. Fixed i2c_unwedge bug since the parameter should be port not controller. Fixed state machine bug since we should restore bus state back to idle if bus encountered timeout. Modified drivers: 1. board.h: Add i2cscan and kbpress commands for FAFT. 2. i2c.c: Remove unnecessary reading since there is no race condition. 3. i2c.c: Fixed i2c_read_string and i2c_unwedge bugs. 4. i2c.c: Restore to idle state if bus encountered timeout. 5. board.h: Add CONFIG_LOW_POWER_IDLE for better power consumption. BUG=chrome-os-partner:34346 TEST=make buildall -j; test nuvoton IC specific drivers BRANCH=none Change-Id: I98974f852cbbaec270c697feb8016b52550005bc Signed-off-by: Mulin Chao <mlchao@nuvoton.com> Reviewed-on: https://chromium-review.googlesource.com/313393 Reviewed-by: Randall Spangler <rspangler@chromium.org>