diff options
author | wen zhang <zhangwen6@huaqin.corp-partner.google.com> | 2021-07-25 20:48:47 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-26 07:14:28 +0000 |
commit | bedaebbb05b921331fcac3bb1561e9cb902e663e (patch) | |
tree | 757c98c2cfe2be3b6f801457325c17a9f00a1e46 /board/munna | |
parent | 420abf3b27f5fd013296c7fef9622cc694050c0f (diff) | |
download | chrome-ec-bedaebbb05b921331fcac3bb1561e9cb902e663e.tar.gz |
Munna: Remove tablet mode function
Munna is clamshell, it doesn't need tablet mode function.
So we should remove the tablet mode function
BUG=b:194515354
BRANCH=kukui
TEST=make sure the DUT doesn't change to tablet mode while the
TABLET_MODE_L is low.
Change-Id: Ic19b0f6d8b6b44baca3b92f85c848839410c7235
Signed-off-by: wen zhang <zhangwen6@huaqin.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3051293
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'board/munna')
-rw-r--r-- | board/munna/board.c | 1 | ||||
-rw-r--r-- | board/munna/board.h | 5 | ||||
-rw-r--r-- | board/munna/gpio.inc | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/board/munna/board.c b/board/munna/board.c index fe7cf484c4..8a81ed5966 100644 --- a/board/munna/board.c +++ b/board/munna/board.c @@ -37,7 +37,6 @@ #include "registers.h" #include "spi.h" #include "system.h" -#include "tablet_mode.h" #include "task.h" #include "tcpm/tcpm.h" #include "timer.h" diff --git a/board/munna/board.h b/board/munna/board.h index 50cd6111ca..f530c45781 100644 --- a/board/munna/board.h +++ b/board/munna/board.h @@ -120,6 +120,11 @@ (EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_OPEN) |\ EC_HOST_EVENT_MASK(EC_HOST_EVENT_POWER_BUTTON)) +#undef CONFIG_GMR_TABLET_MODE +#undef GMR_TABLET_MODE_GPIO_L +#undef CONFIG_TABLET_MODE +#undef CONFIG_TABLET_MODE_SWITCH + #ifndef __ASSEMBLER__ enum adc_channel { diff --git a/board/munna/gpio.inc b/board/munna/gpio.inc index ad71f60b36..50e5ee3a47 100644 --- a/board/munna/gpio.inc +++ b/board/munna/gpio.inc @@ -37,11 +37,10 @@ GPIO_INT(IT8801_SMB_INT, PIN(A, 8), GPIO_INT_FALLING | GPIO_PULL_UP, io_expander_it8801_interrupt) /* KB_INT_ODL */ GPIO_INT(AP_EC_WATCHDOG_L, PIN(D, 2), GPIO_INT_FALLING, chipset_watchdog_interrupt) -GPIO_INT(TABLET_MODE_L, PIN(B, 11), GPIO_INT_BOTH, - gmr_tablet_switch_isr) /* Unimplemented interrupts */ GPIO(ALS_RGB_INT_ODL, PIN(C, 10), GPIO_INPUT) +GPIO(TABLET_MODE_L, PIN(B, 11), GPIO_INPUT) /* Reset pins */ GPIO(AP_SYS_RST_L, PIN(C, 11), GPIO_OUT_LOW) |