diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2021-08-17 12:49:11 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-17 21:43:56 +0000 |
commit | 6c744430d9d4217958baec91c368b1c577ec9a9e (patch) | |
tree | 21db67dc9b75f6e9f4203c9ee273fbbc37decae6 /board/coachz/board.h | |
parent | 26226558f72567e8229d00e8890e2ed270b7b475 (diff) | |
download | chrome-ec-6c744430d9d4217958baec91c368b1c577ec9a9e.tar.gz |
CoachZ: Disable IRQ from CTN730 in RO
When PCHG isn't enabled in RO, a keyboard is disabled until another
USB device is plugged.
This patch restores PCHG in RO but disables it by assigning an
invalid value to the IRQ signal (GPIO_IH_COUNT). A PCHG task
will be started but will not run because there will be no event.
BUG=b:193223400, b:173235954
BRANCH=trogdor
TEST=On CoachZ, stylus charges in normal mode and doesn't charge in
recovery mode.
Change-Id: Icb5702474ac5ef74119455ab4879447cb7a963e4
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3100491
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'board/coachz/board.h')
-rw-r--r-- | board/coachz/board.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/board/coachz/board.h b/board/coachz/board.h index e4adcb6b49..c129500d25 100644 --- a/board/coachz/board.h +++ b/board/coachz/board.h @@ -65,12 +65,9 @@ #define GPIO_KS_OPEN GPIO_LID_INT_N_HALL2 /* WLC pins */ -#ifdef SECTION_IS_RW -#define GPIO_PCHG_P0 GPIO_WLC_IRQ_CONN #define CONFIG_PERIPHERAL_CHARGER #define CONFIG_DEVICE_EVENT #define CONFIG_CTN730 -#endif #ifndef __ASSEMBLER__ |