system76/*: Call EC function to read POST codes
Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
parent
f8d81a1e1b
commit
d1db553e8c
@ -10,6 +10,7 @@
|
||||
#include <board/peci.h>
|
||||
#include <board/power.h>
|
||||
#include <common/debug.h>
|
||||
#include <ec/ec.h>
|
||||
|
||||
extern uint8_t main_cycle;
|
||||
|
||||
@ -33,14 +34,7 @@ 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();
|
||||
|
||||
if (main_cycle == 0) {
|
||||
// Set keyboard LEDs
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -6,6 +6,7 @@
|
||||
#include <board/gpio.h>
|
||||
#include <board/power.h>
|
||||
#include <common/debug.h>
|
||||
#include <ec/ec.h>
|
||||
|
||||
extern uint8_t main_cycle;
|
||||
|
||||
@ -34,12 +35,5 @@ void board_init(void) {
|
||||
void board_event(void) {
|
||||
espi_event();
|
||||
|
||||
// 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();
|
||||
}
|
||||
|
@ -8,6 +8,7 @@
|
||||
#include <board/gpio.h>
|
||||
#include <board/power.h>
|
||||
#include <common/debug.h>
|
||||
#include <ec/ec.h>
|
||||
|
||||
extern uint8_t main_cycle;
|
||||
|
||||
@ -44,12 +45,5 @@ void board_event(void) {
|
||||
|
||||
espi_event();
|
||||
|
||||
// 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();
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
@ -33,12 +34,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();
|
||||
}
|
||||
|
@ -6,6 +6,7 @@
|
||||
#include <board/gpio.h>
|
||||
#include <board/power.h>
|
||||
#include <common/debug.h>
|
||||
#include <ec/ec.h>
|
||||
|
||||
extern uint8_t main_cycle;
|
||||
|
||||
@ -36,12 +37,5 @@ void board_init(void) {
|
||||
void board_event(void) {
|
||||
espi_event();
|
||||
|
||||
// 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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
@ -36,12 +37,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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user