summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHsu Henry <Henry.Hsu@quantatw.com>2014-11-27 18:04:16 +0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-12-03 00:55:53 +0000
commit4df53a9472fd40f1fcac023938ae164c825149ff (patch)
treee64c34160d30bfe30ff6e97e1c8752ea7f434d02
parent4719560bc9edc7dd732689cc537c4c39f1542d00 (diff)
downloadchrome-ec-4df53a9472fd40f1fcac023938ae164c825149ff.tar.gz
Yuna: Update battery spec for 48Wh battery.
Update the parameter from the spec for 48Wh battery. Also add the bat_id pin to identify 48Wh and 54Wh battries if yuna need the 54Wh battery pack. BUG=chrome-os-partner:32709 BRANCH=yuna TEST=none Change-Id: I7a04bf2b8c8b099d5202b6fdf23cd89aae4fd744 Signed-off-by: Henry Hsu <Henry.Hsu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/232173 Reviewed-by: Mohammed Habibulla <moch@chromium.org>
-rw-r--r--board/yuna/battery.c14
-rw-r--r--board/yuna/gpio.inc2
2 files changed, 8 insertions, 8 deletions
diff --git a/board/yuna/battery.c b/board/yuna/battery.c
index fbd4fb3f0a..0ea8273bde 100644
--- a/board/yuna/battery.c
+++ b/board/yuna/battery.c
@@ -13,22 +13,22 @@
#define SB_SHIP_MODE_ADDR 0x3a
#define SB_SHIP_MODE_DATA 0xc574
-/* Values for 54Wh 3UPF656790-1-T1001 battery */
+/* Values for 48Wh 4UAF495780-1-T1186/AC011353-PRR14G01 battery */
static const struct battery_info info = {
- .voltage_max = 12600,
- .voltage_normal = 11100, /* Average of max & min */
- .voltage_min = 9000,
+ .voltage_max = 17200,
+ .voltage_normal = 15200, /* Average of max & min */
+ .voltage_min = 12000,
/* Pre-charge values. */
- .precharge_current = 392, /* mA */
+ .precharge_current = 256, /* mA */
.start_charging_min_c = 0,
- .start_charging_max_c = 60,
+ .start_charging_max_c = 50,
.charging_min_c = 0,
.charging_max_c = 60,
.discharging_min_c = 0,
- .discharging_max_c = 50,
+ .discharging_max_c = 40,
};
const struct battery_info *battery_get_info(void)
diff --git a/board/yuna/gpio.inc b/board/yuna/gpio.inc
index 3e275ec397..de31a5fa5c 100644
--- a/board/yuna/gpio.inc
+++ b/board/yuna/gpio.inc
@@ -34,7 +34,7 @@ GPIO(BOARD_VERSION2, Q, 6, GPIO_INPUT, NULL) /* Board version stuffing
GPIO(BOARD_VERSION3, Q, 7, GPIO_INPUT, NULL) /* Board version stuffing resistor 3 */
GPIO(CPU_PGOOD, C, 4, GPIO_INPUT, NULL) /* Power good to the CPU */
GPIO(BAT_PRESENT_L, B, 4, GPIO_INPUT, NULL) /* Battery present. Repurposed BAT_TEMP */
-
+GPIO(BAT_ID, N, 5, GPIO_INPUT, NULL) /* Battery id for 48w/54w battery*/
/* Outputs; all unasserted by default except for reset signals */
GPIO(CPU_PROCHOT, B, 1, GPIO_OUT_LOW, NULL) /* Force CPU to think it's overheated */
GPIO(PP1350_EN, H, 5, GPIO_OUT_LOW, NULL) /* Enable 1.35V supply */