diff options
author | Wai-Hong Tam <waihong@google.com> | 2018-08-15 16:48:04 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-08-29 11:16:17 -0700 |
commit | 674a12a4fc0bd9bc13822045a3fbd91fab279644 (patch) | |
tree | 4bf70f26f200c98f90d497c3557de901c2cb0866 /board/cheza/board.h | |
parent | 2e4cd7bef7ef671d49ea7bb3ae55e9df970d8e25 (diff) | |
download | chrome-ec-674a12a4fc0bd9bc13822045a3fbd91fab279644.tar.gz |
cheza: Support base detection
The base detection logic is similar to Lux base. But Cheza one doesn't
have a battery inside. So skip the dual-battery charging logic and give
the power to the base right after it is plugged.
BRANCH=none
BUG=b:112614067
TEST=Remove the base battery. Plug and unplug the base. Check the EC
messages showing the base connected and disconnected.
Change-Id: I363860609b17ae74c09ccdb681c99123f7a38a06
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1176732
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Diffstat (limited to 'board/cheza/board.h')
-rw-r--r-- | board/cheza/board.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/board/cheza/board.h b/board/cheza/board.h index ab722c2aec..6c7ac79229 100644 --- a/board/cheza/board.h +++ b/board/cheza/board.h @@ -54,6 +54,9 @@ #define CONFIG_LID_SWITCH #define CONFIG_EXTPOWER_GPIO +#define CONFIG_TABLET_MODE +#define CONFIG_TABLET_MODE_SWITCH + /* Battery */ #define CONFIG_BATTERY_CUT_OFF #define CONFIG_BATTERY_PRESENT_GPIO GPIO_BATT_PRES_ODL @@ -183,6 +186,8 @@ int board_is_sourcing_vbus(int port); int board_vbus_sink_enable(int port, int enable); /* Reset all TCPCs. */ void board_reset_pd_mcu(void); +/* Base detection interrupt handler */ +void base_detect_interrupt(enum gpio_signal signal); #endif /* !defined(__ASSEMBLER__) */ |