summaryrefslogtreecommitdiff
path: root/board/slippy/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/slippy/board.c')
-rw-r--r--board/slippy/board.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/board/slippy/board.c b/board/slippy/board.c
index 69566ef404..e19cb4aeef 100644
--- a/board/slippy/board.c
+++ b/board/slippy/board.c
@@ -217,3 +217,15 @@ int board_g781_has_power(void)
{
return gpio_get_level(GPIO_PP3300_DX_EN);
}
+
+/**
+ * Discharge battery when on AC power for factory test.
+ */
+int board_discharge_on_ac(int enable)
+{
+ if (enable)
+ gpio_set_level(GPIO_CHARGE_L, 1);
+ else
+ gpio_set_level(GPIO_CHARGE_L, 0);
+ return EC_SUCCESS;
+}