summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorHank Xie <hank.xie@quanta.corp-partner.google.com>2022-06-17 07:07:09 -0400
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-08-10 01:35:44 +0000
commit5ec5a53cc78b85c6ad887bd3d0bd9cf09425f1b6 (patch)
tree61e79eb436f44222d5eb333aaebc0fa676ca696c /board
parentce9fb3e74b09557a8fc32e5ec699e15da1f5ea53 (diff)
downloadchrome-ec-5ec5a53cc78b85c6ad887bd3d0bd9cf09425f1b6.tar.gz
shotzo: Porting recovery botton
Shotzo doesn't have keyboard, so there is physical recovery button on shotzo. BUG=b:234426826 BRANCH=none TEST=check recovery button works fine on shotzo Signed-off-by: Hank Xie <hank.xie@quanta.corp-partner.google.com> Change-Id: Ib65e20f57bcb03f93647200e37e0c0919c548667 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3702074 Reviewed-by: Devin Lu <devin.lu@quantatw.com> Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/shotzo/board.h5
-rw-r--r--board/shotzo/gpio.inc4
2 files changed, 7 insertions, 2 deletions
diff --git a/board/shotzo/board.h b/board/shotzo/board.h
index 2864d6c72c..440e0fed70 100644
--- a/board/shotzo/board.h
+++ b/board/shotzo/board.h
@@ -46,6 +46,9 @@
#define CONFIG_USB_PORT_POWER_DUMB
/* Buttons */
+#define CONFIG_DEDICATED_RECOVERY_BUTTON
+#define CONFIG_DEDICATED_RECOVERY_BUTTON_2
+#define CONFIG_EMULATED_SYSRQ
#define CONFIG_POWER_BUTTON_IGNORE_LID
/* Dedicated barreljack charger port */
@@ -123,6 +126,8 @@ void led_alert(int enable);
/* Pin renaming */
#define GPIO_AC_PRESENT GPIO_BJ_ADP_PRESENT_L
+#define GPIO_RECOVERY_L GPIO_EC_RECOVERY_BTN_ODL
+#define GPIO_RECOVERY_L_2 GPIO_H1_EC_RECOVERY_BTN_ODL
#endif /* !__ASSEMBLER__ */
diff --git a/board/shotzo/gpio.inc b/board/shotzo/gpio.inc
index 600f27e641..a338e50392 100644
--- a/board/shotzo/gpio.inc
+++ b/board/shotzo/gpio.inc
@@ -36,6 +36,8 @@ GPIO_INT(USB_C0_CCSBU_OVP_ODL, PIN(K, 6), GPIO_INT_FALLING | GPIO_PULL_UP, c0_cc
GPIO_INT(EC_WP_OD, PIN(A, 6), GPIO_INT_BOTH, switch_interrupt)
GPIO_INT(BJ_ADP_PRESENT_L, PIN(J, 1), GPIO_INT_BOTH | GPIO_PULL_UP, adp_connect_interrupt)
GPIO_INT(PANEL_BACKLIGHT_EN, PIN(J, 3), GPIO_INT_RISING, oz554_interrupt)
+GPIO_INT(EC_RECOVERY_BTN_ODL, PIN(F, 1), GPIO_INT_BOTH, button_interrupt)
+GPIO_INT(H1_EC_RECOVERY_BTN_ODL, PIN(KSI, 5), GPIO_INT_BOTH, button_interrupt)
/* Power sequence GPIOs */
GPIO(EC_AP_RTCRST, PIN(K, 2), GPIO_OUT_LOW)
@@ -108,7 +110,6 @@ GPIO(GPIOA3_NC, PIN(A, 3), GPIO_INPUT | GPIO_PULL_DOWN)
GPIO(GPIOC0_NC, PIN(C, 0), GPIO_INPUT | GPIO_PULL_DOWN)
GPIO(GPIOC3_NC, PIN(C, 3), GPIO_INPUT | GPIO_PULL_DOWN)
GPIO(GPIOE6_NC, PIN(E, 6), GPIO_INPUT | GPIO_PULL_DOWN)
-GPIO(GPIOF1_NC, PIN(F, 1), GPIO_INPUT | GPIO_PULL_DOWN)
GPIO(GPIOG3_NC, PIN(G, 3), GPIO_INPUT | GPIO_PULL_DOWN)
GPIO(GPIOG4_NC, PIN(G, 4), GPIO_INPUT | GPIO_PULL_DOWN)
GPIO(GPIOG5_NC, PIN(G, 5), GPIO_INPUT | GPIO_PULL_DOWN)
@@ -122,7 +123,6 @@ GPIO(KSI1_NC, PIN(KSI, 1), GPIO_INPUT | GPIO_PULL_DOWN)
GPIO(KSI2_NC, PIN(KSI, 2), GPIO_INPUT | GPIO_PULL_DOWN)
GPIO(KSI3_NC, PIN(KSI, 3), GPIO_INPUT | GPIO_PULL_DOWN)
GPIO(KSI4_NC, PIN(KSI, 4), GPIO_INPUT | GPIO_PULL_DOWN)
-GPIO(KSI5_NC, PIN(KSI, 5), GPIO_INPUT | GPIO_PULL_DOWN)
GPIO(KSI6_NC, PIN(KSI, 6), GPIO_INPUT | GPIO_PULL_DOWN)
GPIO(KSI7_NC, PIN(KSI, 7), GPIO_INPUT | GPIO_PULL_DOWN)
GPIO(KSO0_NC, PIN(KSO_L, 0), GPIO_INPUT | GPIO_PULL_DOWN)