diff options
author | Grover Yen <Grover_Yen@wistron.com> | 2014-12-19 15:01:07 +0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-12-22 03:45:01 +0000 |
commit | 80dde2c452b4cf58637ad8eb7c206bd7553ac668 (patch) | |
tree | 740d91d205bae704c686f277e5ef8ea0b513a173 | |
parent | 54e3b27776c736438a450353d7e70a51cd08ac11 (diff) | |
download | chrome-ec-80dde2c452b4cf58637ad8eb7c206bd7553ac668.tar.gz |
cranky: Apply PB4 for BAT_PRESENT_L function.
Add BAT_PRESENT_L to distinguish battery/non-battery SKU.
BUG=chrome-os-partner:33527
BRANCH=none
TEST=make -j buildall, make -j tests
Change-Id: Id69843826424f1bfc2d37b813239f18923f21318
Signed-off-by: Grover Yen <Grover_Yen@wistron.com>
Reviewed-on: https://chromium-review.googlesource.com/236850
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Mohammed Habibulla <moch@chromium.org>
-rw-r--r-- | board/cranky/board.c | 2 | ||||
-rw-r--r-- | board/cranky/board.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/board/cranky/board.c b/board/cranky/board.c index a870761612..47006a0dc8 100644 --- a/board/cranky/board.c +++ b/board/cranky/board.c @@ -87,6 +87,8 @@ 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|GPIO_PULL_DOWN, + 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/cranky/board.h b/board/cranky/board.h index 536885b6c1..6bcfae16c3 100644 --- a/board/cranky/board.h +++ b/board/cranky/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_BUTTON_COUNT 2 @@ -104,6 +105,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 */ |