diff options
author | Ryan Zhang <ryan.zhang.quanta@gmail.com> | 2017-02-17 14:16:20 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-02-24 20:09:51 -0800 |
commit | 26a2ff77d09d6c8846267d9f908a913aaf63f737 (patch) | |
tree | fe46806c1244230d49dfad95c352656fae770273 | |
parent | 04b42dbd23910fae1fbc4681a6be112b34fb765b (diff) | |
download | chrome-ec-26a2ff77d09d6c8846267d9f908a913aaf63f737.tar.gz |
Basking: Add CPT battery config
update CPT's config
BUG=chrome-os-partner:60899
BRANCH=firmware-reef-9042.B
TEST=`make -j BOARD=reef`
Change-Id: I1f5f46af6ebf6c53a257f1508756414471f58368
Signed-off-by: Ryan Zhang <Ryan.Zhang@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/443715
Tested-by: David Huang <David.Huang@quantatw.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: David Huang <David.Huang@quantatw.com>
-rw-r--r-- | board/reef/battery.c | 42 |
1 files changed, 33 insertions, 9 deletions
diff --git a/board/reef/battery.c b/board/reef/battery.c index cbf3f7b687..b42f8c1132 100644 --- a/board/reef/battery.c +++ b/board/reef/battery.c @@ -313,40 +313,64 @@ static const struct fast_charge_params fast_chg_params_smp_c22n1626 = { }; static const struct fast_charge_profile fast_charge_cpt_c22n1626_info[] = { - /* < 0C */ + /* < 1C */ [TEMP_RANGE_0] = { - .temp_c = TEMPC_TENTHS_OF_DEG(-1), + .temp_c = TEMPC_TENTHS_OF_DEG(0), .current_mA = { [VOLTAGE_RANGE_0] = 0, [VOLTAGE_RANGE_1] = 0, + [VOLTAGE_RANGE_2] = 0, }, }, - /* >=0C && <=60C */ + /* >=1C && <=10C */ [TEMP_RANGE_1] = { + .temp_c = TEMPC_TENTHS_OF_DEG(10), + .current_mA = { + [VOLTAGE_RANGE_0] = 1752, + [VOLTAGE_RANGE_1] = 1752, + [VOLTAGE_RANGE_2] = 1752, + }, + }, + + /* 10C > && <=45C */ + [TEMP_RANGE_2] = { + .temp_c = TEMPC_TENTHS_OF_DEG(45), + .current_mA = { + [VOLTAGE_RANGE_0] = 4600, + [VOLTAGE_RANGE_1] = 4600, + [VOLTAGE_RANGE_2] = 2920, + }, + }, + + /* 45C > && <=60C */ + [TEMP_RANGE_3] = { .temp_c = TEMPC_TENTHS_OF_DEG(60), .current_mA = { - [VOLTAGE_RANGE_0] = 5200, - [VOLTAGE_RANGE_1] = 5200, + [VOLTAGE_RANGE_0] = 2920, + [VOLTAGE_RANGE_1] = 0, + [VOLTAGE_RANGE_2] = 0, }, }, /* >60C */ - [TEMP_RANGE_2] = { + [TEMP_RANGE_4] = { .temp_c = TEMPC_TENTHS_OF_DEG(CHARGER_PROF_TEMP_C_LAST_RANGE), .current_mA = { [VOLTAGE_RANGE_0] = 0, [VOLTAGE_RANGE_1] = 0, + [VOLTAGE_RANGE_2] = 0, }, }, }; static const struct fast_charge_params fast_chg_params_cpt_c22n1626 = { .total_temp_ranges = ARRAY_SIZE(fast_charge_cpt_c22n1626_info), - .default_temp_range_profile = TEMP_RANGE_1, + .default_temp_range_profile = TEMP_RANGE_2, .voltage_mV = { - [VOLTAGE_RANGE_0] = 8000, - [VOLTAGE_RANGE_1] = CHARGER_PROF_VOLTAGE_MV_LAST_RANGE, + [VOLTAGE_RANGE_0] = 8200, + [VOLTAGE_RANGE_1] = 8500, + [VOLTAGE_RANGE_2] = CHARGER_PROF_VOLTAGE_MV_LAST_RANGE, }, .chg_profile_info = &fast_charge_cpt_c22n1626_info[0], }; |