diff options
author | Bruce <Bruce.Wan@quantatw.com> | 2015-11-03 18:48:02 +0800 |
---|---|---|
committer | ChromeOS bot <3su6n15k.default@developer.gserviceaccount.com> | 2015-11-04 00:52:19 +0000 |
commit | 8c471ea7446fe22cab79cca892cc12f665a36d96 (patch) | |
tree | ad3ca1ff30920eff4a822792a7ec996c825f3189 | |
parent | 98156812e5453a7724a4cb595638a775511230e0 (diff) | |
download | chrome-ec-8c471ea7446fe22cab79cca892cc12f665a36d96.tar.gz |
Ultima: 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: I977214ab62d9cbaab1b61e418de6d27043652af0
Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/310316
Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r-- | board/ultima/board.h | 1 | ||||
-rw-r--r-- | board/ultima/gpio.inc | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/board/ultima/board.h b/board/ultima/board.h index ff8ffd593c..5952365850 100644 --- a/board/ultima/board.h +++ b/board/ultima/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/ultima/gpio.inc b/board/ultima/gpio.inc index b325e3e898..26931695e4 100644 --- a/board/ultima/gpio.inc +++ b/board/ultima/gpio.inc @@ -105,7 +105,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(NC_GPIO204, PIN(204), GPIO_INPUT | GPIO_PULL_UP) -GPIO(NC_GPIO210, PIN(210), GPIO_INPUT | GPIO_PULL_UP) /* NC */ +GPIO(BAT_PRESENT_L, PIN(210), GPIO_INPUT) GPIO(GPIO_3_EC, PIN(211), GPIO_OUT_LOW) /* Sleep SOIX signal from SOC to EC */ /* Alternate functions GPIO definition */ |