diff options
author | Bruce <Bruce.Wan@quantatw.com> | 2015-11-03 18:52:40 +0800 |
---|---|---|
committer | ChromeOS bot <3su6n15k.default@developer.gserviceaccount.com> | 2015-11-04 00:52:26 +0000 |
commit | 88150065ae54839258a063e5af721a9fbf35c510 (patch) | |
tree | ecbd08477adcb0653322a8d60efb3be808f57c46 | |
parent | 8c471ea7446fe22cab79cca892cc12f665a36d96 (diff) | |
download | chrome-ec-88150065ae54839258a063e5af721a9fbf35c510.tar.gz |
Reks: Enable battery present detection.
This change will enable the platform to detect
the battery presence and allow the platform to
boot without battery.
BUG=None
BRANCH=firmware-strago-7287.B
TEST=Build/flash the EC and boot with and without battery.
Change-Id: Ib5289f8008815f93a347e9b1b0b27e3ded72d594
Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/310460
Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r-- | board/reks/board.h | 1 | ||||
-rw-r--r-- | board/reks/gpio.inc | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/board/reks/board.h b/board/reks/board.h index e5ad655a36..9de8039db3 100644 --- a/board/reks/board.h +++ b/board/reks/board.h @@ -47,6 +47,7 @@ #define CONFIG_PMIC #define CONFIG_BATTERY_CUT_OFF +#define CONFIG_BATTERY_PRESENT_GPIO GPIO_BAT_PRESENT_L #define CONFIG_BATTERY_SMART #define CONFIG_CHARGER #define CONFIG_CHARGER_V2 diff --git a/board/reks/gpio.inc b/board/reks/gpio.inc index c86575c6d2..92b8f4ba53 100644 --- a/board/reks/gpio.inc +++ b/board/reks/gpio.inc @@ -104,7 +104,7 @@ GPIO(EC_BL_DISABLE_L, PIN(202), GPIO_OUT_HIGH) /* EDP backligh GPIO(SMC_SHUTDOWN, PIN(203), GPIO_OUT_LOW) /* Shutdown signal from EC to power sequencing PLD */ GPIO(USBPD_BST_OFF, PIN(204), GPIO_OUT_LOW) -GPIO(SUSPWRDNACK_SOC_EC,PIN(210), GPIO_OUT_LOW) /* SUSPWRDNACK signal from MOIC device to EC */ +GPIO(BAT_PRESENT_L,PIN(210), GPIO_INPUT) /* SUSPWRDNACK signal from MOIC device to EC */ GPIO(GPIO_3_EC, PIN(211), GPIO_OUT_LOW) /* Sleep SOIX signal from SOC to EC */ /* Alternate functions GPIO definition */ |