system76/*: Call EC function to read POST codes

Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
Tim Crawford
2021-06-09 09:43:52 -06:00
committed by Jeremy Soller
parent f8d81a1e1b
commit d1db553e8c
8 changed files with 16 additions and 64 deletions

View File

@@ -9,6 +9,7 @@
#include <board/kbc.h>
#include <board/power.h>
#include <common/debug.h>
#include <ec/ec.h>
extern uint8_t main_cycle;
@@ -37,12 +38,5 @@ void board_init(void) {
void board_event(void) {
power_set_limit();
// Read POST codes
while (P80H81HS & 1) {
uint8_t p80h = P80HD;
uint8_t p81h = P81HD;
P80H81HS |= 1;
DEBUG("POST %02X%02X\n", p81h, p80h);
}
ec_read_post_codes();
}