summaryrefslogtreecommitdiff
path: root/board/nocturne/battery.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/nocturne/battery.c')
-rw-r--r--board/nocturne/battery.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/board/nocturne/battery.c b/board/nocturne/battery.c
index 67c5346063..ff3f16fa33 100644
--- a/board/nocturne/battery.c
+++ b/board/nocturne/battery.c
@@ -99,32 +99,6 @@ enum battery_disconnect_state battery_get_disconnect_state(void)
return BATTERY_DISCONNECTED;
}
-static void reduce_input_voltage_when_full(void)
-{
- struct batt_params batt;
- int max_pd_voltage_mv;
- int active_chg_port;
-
- active_chg_port = charge_manager_get_active_charge_port();
- if (active_chg_port == CHARGE_PORT_NONE)
- return;
-
- battery_get_params(&batt);
- if (!(batt.flags & BATT_FLAG_BAD_STATUS)) {
- /* Lower our input voltage to 9V when battery is full. */
- if ((batt.status & STATUS_FULLY_CHARGED) &&
- chipset_in_state(CHIPSET_STATE_ANY_OFF))
- max_pd_voltage_mv = 9000;
- else
- max_pd_voltage_mv = PD_MAX_VOLTAGE_MV;
-
- if (pd_get_max_voltage() != max_pd_voltage_mv)
- pd_set_external_voltage_limit(active_chg_port,
- max_pd_voltage_mv);
- }
-}
-DECLARE_HOOK(HOOK_SECOND, reduce_input_voltage_when_full, HOOK_PRIO_DEFAULT);
-
enum ec_status charger_profile_override_get_param(uint32_t param,
uint32_t *value)
{