diff options
author | cloud_lin <cloud_lin@compal.com> | 2014-04-08 15:27:15 +0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-04-12 05:54:04 +0000 |
commit | ccdce3f83dcdc72b08dc76faced5acca710e6f8d (patch) | |
tree | f0a3b83861239deb8eccfcbed73ec17da051c116 | |
parent | cdb70250d014a636d8621a211cb2e1c0fb755b75 (diff) | |
download | chrome-ec-ccdce3f83dcdc72b08dc76faced5acca710e6f8d.tar.gz |
big: Modify LGC battery setting based on battery spec
1. Modify voltage_max
2. Set CP point
BUG=chrome-os-partner:27859
BRANCH=Big
TEST=Plug in AC and battery, use UART command "charger" to check
v_batt and I_in and the values are correct.
Change-Id: If83a444338e8d520e6c2f4d04ca6016c14cea8bd
Reviewed-on: https://chromium-review.googlesource.com/193584
Reviewed-by: Yung-chieh Lo <yjlou@chromium.org>
Commit-Queue: Lin Cloud <cloud_lin@compal.com>
Tested-by: Lin Cloud <cloud_lin@compal.com>
-rw-r--r-- | board/big/battery.c | 8 | ||||
-rw-r--r-- | board/big/board.h | 5 |
2 files changed, 8 insertions, 5 deletions
diff --git a/board/big/battery.c b/board/big/battery.c index 31408b838b..1dacf4ec8b 100644 --- a/board/big/battery.c +++ b/board/big/battery.c @@ -76,7 +76,7 @@ static struct battery_info info_3s = { static struct battery_info info_3s_LGC = { - .voltage_max = 13140, + .voltage_max = 12900, .voltage_normal = 11400, /* Average of max & min */ .voltage_min = 9000, @@ -91,9 +91,9 @@ static struct battery_info info_3s_LGC = { .discharging_max_c = 75, }; -static struct battery_info info_4s = { +static struct battery_info info_4s_LGC = { - .voltage_max = 17520, + .voltage_max = 17200, .voltage_normal = 15200, /* Average of max & min */ .voltage_min = 12000, @@ -134,7 +134,7 @@ static struct battery_device support_batteries[] = { .manuf = "LGC", .device = "AC14B8K", .design_mv = 15200, - .battery_info = &info_4s, + .battery_info = &info_4s_LGC, .support_cut_off = 1, }, { diff --git a/board/big/board.h b/board/big/board.h index ea6daef76a..a411d776e3 100644 --- a/board/big/board.h +++ b/board/big/board.h @@ -114,7 +114,10 @@ enum pwm_channel { /* Charger module */ #define CONFIG_CHARGER_SENSE_RESISTOR 10 /* Charge sense resistor, mOhm */ #define CONFIG_CHARGER_SENSE_RESISTOR_AC 20 /* Input sensor resistor, mOhm */ -#define CONFIG_CHARGER_INPUT_CURRENT 4032 /* mA, based on Link HW design */ +/* Input current limit for 45W AC adapter: + * 45W/19V*85%=2013mA, choose the closest charger setting = 2048mA + */ +#define CONFIG_CHARGER_INPUT_CURRENT 2048 /* mA, based on Link HW design */ #define CONFIG_CHARGER_CURRENT_LIMIT 3000 /* PL102 inductor 3.0A(3.8A) */ /* Discharge battery when on AC power for factory test. */ |