summaryrefslogtreecommitdiff
path: root/board/willow
diff options
context:
space:
mode:
authorDavid Huang <david.huang@quanta.corp-partner.google.com>2021-03-04 10:21:46 +0800
committerCommit Bot <commit-bot@chromium.org>2021-03-08 09:02:57 +0000
commite2ddc99972bdcfb7a5a7bb80d2cef6631828e598 (patch)
treee5264c3f77d23fcaa6e1f4b4e36087beffbe775f /board/willow
parentfeb60a97826a539aabcfbac88c892ff27f41ac21 (diff)
downloadchrome-ec-e2ddc99972bdcfb7a5a7bb80d2cef6631828e598.tar.gz
willow: remove tablet mode related function
Remove table mode related function due to willow is clamshell. BUG=b:172034762 BRANCH=main TEST=Overlap two system and check top system not enter tablet mode. Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com> Change-Id: Ie0075cb6157468c9589cdc99a184a79f314050d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2734067 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'board/willow')
-rw-r--r--board/willow/board.c1
-rw-r--r--board/willow/board.h5
-rw-r--r--board/willow/gpio.inc3
3 files changed, 6 insertions, 3 deletions
diff --git a/board/willow/board.c b/board/willow/board.c
index ee13dee75b..3bcc94ce79 100644
--- a/board/willow/board.c
+++ b/board/willow/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/willow/board.h b/board/willow/board.h
index 0fa3bf8c00..785aea70ba 100644
--- a/board/willow/board.h
+++ b/board/willow/board.h
@@ -90,6 +90,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/willow/gpio.inc b/board/willow/gpio.inc
index 1c5db485c8..c3e4e92b67 100644
--- a/board/willow/gpio.inc
+++ b/board/willow/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)