diff options
author | Sue Chen <sue.chen@quanta.corp-partner.google.com> | 2021-03-25 16:44:16 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-30 09:41:09 +0000 |
commit | beee3cfec33869cd58fa9ea78fc0a32d2d273ff9 (patch) | |
tree | 75496809ef3631ddc58876b30bdff4aa3f8ca3d3 /board/icarus | |
parent | 2e015d4da56c91d18fed240264cb6f105f680121 (diff) | |
download | chrome-ec-beee3cfec33869cd58fa9ea78fc0a32d2d273ff9.tar.gz |
Cozmo: Remove tablet mode relative function
For Cozmo is clamshell, it doesn't need tablet mode function.
BUG=b:183454206
BRANCH=icarus
TEST=make sure the DUT doesn't change to tablet mode while the
TABLET_MODE_L is low.
Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com>
Change-Id: I74b5d35b69a19c6fb99ee94ba7ff4e81b94dee35
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2784339
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'board/icarus')
-rw-r--r-- | board/icarus/board.c | 1 | ||||
-rw-r--r-- | board/icarus/board.h | 5 | ||||
-rw-r--r-- | board/icarus/gpio.inc | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/board/icarus/board.c b/board/icarus/board.c index 13b41c0b82..eea38ef5ee 100644 --- a/board/icarus/board.c +++ b/board/icarus/board.c @@ -36,7 +36,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/icarus/board.h b/board/icarus/board.h index 17382496c4..ce8d5fe9ec 100644 --- a/board/icarus/board.h +++ b/board/icarus/board.h @@ -86,6 +86,11 @@ #define CONFIG_LED_ONOFF_STATES +#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/icarus/gpio.inc b/board/icarus/gpio.inc index 335260c308..e2fe2bb448 100644 --- a/board/icarus/gpio.inc +++ b/board/icarus/gpio.inc @@ -33,11 +33,10 @@ GPIO_INT(BC12_EC_INT_ODL, PIN(J, 6), GPIO_INT_FALLING, bc12_interrupt) GPIO_INT(AP_EC_WATCHDOG_L, PIN(C, 7), GPIO_INT_FALLING | GPIO_SEL_1P8V, chipset_watchdog_interrupt) -GPIO_INT(TABLET_MODE_L, PIN(J, 7), GPIO_INT_BOTH, - gmr_tablet_switch_isr) GPIO_INT(UART1_RX, PIN(B, 0), GPIO_INT_FALLING, uart_deepsleep_interrupt) /* UART_DEBUG_TX_EC_RX */ /* Unimplemented interrupts */ +GPIO(TABLET_MODE_L, PIN(J, 7), GPIO_INPUT) GPIO(VOLUME_DOWN_L, PIN(D, 5), GPIO_INPUT) GPIO(VOLUME_UP_L, PIN(D, 6), GPIO_INPUT) GPIO(ALS_RGB_INT_ODL, PIN(F, 0), GPIO_INPUT) |