diff options
author | Scott Chao <scott.chao@bitland.corp-partner.google.com> | 2020-03-25 23:02:07 -0400 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-03-26 11:36:36 +0000 |
commit | 39088753b33270156592866df2a21927f0f2b653 (patch) | |
tree | c369fa5c0664812c2cb2e7a11da71e337d4241af /board/damu/board.h | |
parent | a88bd6dd2ce985f15cee44e95562639a4112f283 (diff) | |
download | chrome-ec-39088753b33270156592866df2a21927f0f2b653.tar.gz |
damu: enable bit-bang for battery smbus
EC using PA5/PC4 as i2c pin for battery.
BUG=b:152456966
BRANCH=kukui
TEST=make -j BOARD=damu
TEST=make buildall
TEST=On board testing to wait until we receive proto1 board.
Signed-off-by: Scott Chao <scott.chao@bitland.corp-partner.google.com>
Change-Id: I0064b8fde634fc3824593102e5fe8bc64563b0d5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2120877
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'board/damu/board.h')
-rw-r--r-- | board/damu/board.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/board/damu/board.h b/board/damu/board.h index 348d09d55b..c1c74cdc27 100644 --- a/board/damu/board.h +++ b/board/damu/board.h @@ -35,6 +35,13 @@ #undef CONFIG_EXTPOWER_DEBOUNCE_MS #define CONFIG_EXTPOWER_DEBOUNCE_MS 200 +#define CONFIG_I2C_BITBANG +#undef I2C_BITBANG_PORT_COUNT +#define I2C_BITBANG_PORT_COUNT 1 +#undef CONFIG_I2C_NACK_RETRY_COUNT +#define CONFIG_I2C_NACK_RETRY_COUNT 3 +#define CONFIG_SMBUS_PEC + #define CONFIG_USB_PD_TCPM_FUSB302 #define CONFIG_USB_PD_DISCHARGE_GPIO #define CONFIG_USB_PD_TCPC_LOW_POWER |