power: Reset KBC on CPU reset

Ensure the keyboard controller is not left locked/disabled.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
Tim Crawford
2023-07-17 11:13:10 -06:00
committed by Jeremy Soller
parent de546fa761
commit 45520646aa

View File

@ -8,6 +8,7 @@
#include <board/config.h>
#include <board/fan.h>
#include <board/gpio.h>
#include <board/kbc.h>
#include <board/kbled.h>
#include <board/lid.h>
#include <board/peci.h>
@ -341,7 +342,8 @@ void power_cpu_reset(void) {
acpi_reset();
// Reset fans
fan_reset();
//TODO: reset KBC and touchpad states
//TODO: reset touchpad states
kbc_reset();
kbled_reset();
// Set PL4
//TODO: if this returns false, retry?