diff options
author | Divagar Mohandass <divagar.mohandass@intel.com> | 2015-10-30 17:47:28 +0530 |
---|---|---|
committer | ChromeOS bot <3su6n15k.default@developer.gserviceaccount.com> | 2015-10-31 04:25:01 +0000 |
commit | efeb243f55252891eb797c38b226cd69dbdf421f (patch) | |
tree | 939d106732d7ed13c49748f6baf178461b6bd077 | |
parent | 48e051cfcabd328fa40d9bb4e644ccc01632db85 (diff) | |
download | chrome-ec-efeb243f55252891eb797c38b226cd69dbdf421f.tar.gz |
Strago: Enable battery present detection.
This change will enable the platform to detect
the battery presence and allow the platform to
boot without battery.
BUG=chrome-os-partner:47113
BRANCH=firmware-strago-7287.B
TEST=Build/flash the EC and boot with and without battery.
Change-Id: Iec42deda741911f5a739a076eb9a54a74a8263c3
Signed-off-by: Divagar Mohandass <divagar.mohandass@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/309916
Reviewed-by: Bernie Thompson <bhthompson@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r-- | board/strago/board.h | 1 | ||||
-rw-r--r-- | board/strago/gpio.inc | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/board/strago/board.h b/board/strago/board.h index cfa40d8b71..cf0a02b29c 100644 --- a/board/strago/board.h +++ b/board/strago/board.h @@ -50,6 +50,7 @@ #define CONFIG_ALS #define CONFIG_ALS_ISL29035 #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/strago/gpio.inc b/board/strago/gpio.inc index 4b60205775..1c5d08e966 100644 --- a/board/strago/gpio.inc +++ b/board/strago/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) /* HW detection signal from battery to EC */ GPIO(GPIO_3_EC, PIN(211), GPIO_OUT_LOW) /* Sleep SOIX signal from SOC to EC */ /* Alternate functions GPIO definition */ |