diff options
author | YongBeum.Ha <ybha@samsung.corp-partner.google.com> | 2023-01-30 10:09:17 +0900 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-02-08 19:11:16 +0000 |
commit | 663331c8c082d21efd8b277d0357282cf99e0847 (patch) | |
tree | 3936f6bcbe3bb669236bb8083c0694d56682b341 /board/nautilus/battery.c | |
parent | 55ce71eff517a056f0770a18b7f0310487acfe5f (diff) | |
download | chrome-ec-firmware-poppy-10431.B.tar.gz |
Nautilus : Change charging voltage and currentfirmware-poppy-10431.B
Change charging voltage(8600mV) and current(3200mA).
BUG=b:266123223
BRANCH=firmware-octopus-11297.B
TEST=build, update and check charging voltage and current
Change-Id: I589692ae43231b2af61a7ced129b5340a5cbd041
Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4199247
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Henry Sun <henrysun@google.com>
(cherry picked from commit e4d60e249544547da843904c737c040d123834b3)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4230852
Commit-Queue: Henry Sun <henrysun@google.com>
Diffstat (limited to 'board/nautilus/battery.c')
-rw-r--r-- | board/nautilus/battery.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/board/nautilus/battery.c b/board/nautilus/battery.c index 54e48404da..6ccedf1378 100644 --- a/board/nautilus/battery.c +++ b/board/nautilus/battery.c @@ -28,8 +28,10 @@ static enum battery_present batt_pres_prev = BP_NOT_SURE; #define BATFETS_MASK (0x3) #define BATFETS_DISABLED (0x2) -#define CHARGING_VOLTAGE_MV_SAFE 8400 -#define CHARGING_CURRENT_MA_SAFE 1500 +#define CHARGING_VOLTAGE_MV_SAFE 8400 +#define CHARGING_CURRENT_MA_SAFE 1500 +#define CHARGING_VOLTAGE_MV_ADJUST 8600 +#define CHARGING_CURRENT_MA_ADJUST 3200 static const struct battery_info info = { .voltage_max = 8600, @@ -95,7 +97,11 @@ int charger_profile_override(struct charge_state_data *curr) return 0; current = curr->requested_current; + if (current > CHARGING_CURRENT_MA_ADJUST) + current = CHARGING_CURRENT_MA_ADJUST; voltage = curr->requested_voltage; + if (voltage > CHARGING_VOLTAGE_MV_ADJUST) + voltage = CHARGING_VOLTAGE_MV_ADJUST; bat_temp_c = curr->batt.temperature - 2731; /* |