Enable POST codes in EC init instead of per-board

Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
Tim Crawford
2021-06-10 09:43:54 -06:00
committed by Jeremy Soller
parent d1db553e8c
commit 1fc832ca94
10 changed files with 7 additions and 25 deletions

View File

@@ -3,9 +3,13 @@
#include <ec/ec.h>
#include <ec/gctrl.h>
#include <common/debug.h>
#include <common/macro.h>
void ec_init(void) {
RSTS = 0x44;
// Enable POST codes
SPCTRL1 |= BIT(7) | BIT(6) | BIT(3);
}
void ec_read_post_codes(void) {