summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/swanky/board.c1
-rw-r--r--board/swanky/board.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/board/swanky/board.c b/board/swanky/board.c
index 81e7eb719e..6e0ef2109e 100644
--- a/board/swanky/board.c
+++ b/board/swanky/board.c
@@ -80,6 +80,7 @@ const struct gpio_info gpio_list[] = {
{"PP1000_S0IX_PGOOD", LM4_GPIO_H, (1<<6), GPIO_INPUT, NULL},
{"USB1_OC_L", LM4_GPIO_E, (1<<7), GPIO_INPUT, NULL},
{"USB2_OC_L", LM4_GPIO_E, (1<<0), GPIO_INPUT, NULL},
+ {"BAT_PRESENT_L", LM4_GPIO_B, (1<<4), GPIO_INPUT, NULL},
/* Outputs; all unasserted by default except for reset signals */
{"CPU_PROCHOT", LM4_GPIO_B, (1<<5), GPIO_OUT_LOW, NULL},
diff --git a/board/swanky/board.h b/board/swanky/board.h
index 6d59a33ee4..9c83159942 100644
--- a/board/swanky/board.h
+++ b/board/swanky/board.h
@@ -11,6 +11,7 @@
/* Optional features */
#define CONFIG_AP_HANG_DETECT
#define CONFIG_BACKLIGHT_LID
+#define CONFIG_BATTERY_PRESENT_GPIO GPIO_BAT_PRESENT_L
#define CONFIG_BATTERY_SMART
#define CONFIG_BOARD_VERSION
#define CONFIG_CHARGER
@@ -96,6 +97,7 @@ enum gpio_signal {
GPIO_PP1000_S0IX_PGOOD, /* Power good on 1.00V (S0iX supplies) */
GPIO_USB1_OC_L, /* USB port overcurrent warning */
GPIO_USB2_OC_L, /* USB port overcurrent warning */
+ GPIO_BAT_PRESENT_L, /* Battery present. Repurposed BAT_TEMP */
/* Outputs */
GPIO_CPU_PROCHOT, /* Force CPU to think it's overheated */