power: Set PL4 after CPU reset

Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
Tim Crawford
2023-03-10 08:35:03 -07:00
committed by Jeremy Soller
parent 568fae6aba
commit c1c082d2cc
2 changed files with 4 additions and 2 deletions

View File

@ -145,10 +145,10 @@ void espi_event(void) {
VW_SET_DEBUG(VW_SMI_N, VWS_HIGH); VW_SET_DEBUG(VW_SMI_N, VWS_HIGH);
VW_SET_DEBUG(VW_RCIN_N, VWS_HIGH); VW_SET_DEBUG(VW_RCIN_N, VWS_HIGH);
power_cpu_reset();
// Host reset complete // Host reset complete
espi_host_reset = false; espi_host_reset = false;
power_cpu_reset();
} }
last_pltrst_n = wire; last_pltrst_n = wire;
} }

View File

@ -346,6 +346,8 @@ void power_cpu_reset(void) {
fan_reset(); fan_reset();
//TODO: reset KBC and touchpad states //TODO: reset KBC and touchpad states
kbled_reset(); kbled_reset();
// Set PL4
power_set_limit();
} }
static bool power_button_disabled(void) { static bool power_button_disabled(void) {