Remove power_set_limit from board_event
This is already handled by power_event. Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
committed by
Jeremy Soller
parent
b1bd244d49
commit
a198289695
@ -3,7 +3,6 @@
|
||||
#include <board/board.h>
|
||||
#include <board/gpio.h>
|
||||
#include <board/kbc.h>
|
||||
#include <board/power.h>
|
||||
#include <common/debug.h>
|
||||
|
||||
extern uint8_t main_cycle;
|
||||
@ -24,8 +23,6 @@ void board_init(void) {
|
||||
}
|
||||
|
||||
void board_event(void) {
|
||||
power_set_limit();
|
||||
|
||||
if (main_cycle == 0) {
|
||||
// Set keyboard LEDs
|
||||
static uint8_t last_kbc_leds = 0;
|
||||
|
@ -4,7 +4,6 @@
|
||||
#include <board/gctrl.h>
|
||||
#include <board/gpio.h>
|
||||
#include <board/kbc.h>
|
||||
#include <board/power.h>
|
||||
#include <common/debug.h>
|
||||
#include <ec/ec.h>
|
||||
|
||||
@ -22,8 +21,6 @@ void board_init(void) {
|
||||
}
|
||||
|
||||
void board_event(void) {
|
||||
power_set_limit();
|
||||
|
||||
ec_read_post_codes();
|
||||
|
||||
if (main_cycle == 0) {
|
||||
|
@ -5,7 +5,6 @@
|
||||
#include <board/espi.h>
|
||||
#include <board/gctrl.h>
|
||||
#include <board/gpio.h>
|
||||
#include <board/power.h>
|
||||
#include <common/debug.h>
|
||||
#include <ec/ec.h>
|
||||
|
||||
@ -22,8 +21,6 @@ void board_init(void) {
|
||||
}
|
||||
|
||||
void board_event(void) {
|
||||
power_set_limit();
|
||||
|
||||
espi_event();
|
||||
|
||||
ec_read_post_codes();
|
||||
|
@ -3,7 +3,6 @@
|
||||
#include <board/board.h>
|
||||
#include <board/gctrl.h>
|
||||
#include <board/gpio.h>
|
||||
#include <board/power.h>
|
||||
#include <common/debug.h>
|
||||
#include <ec/ec.h>
|
||||
|
||||
@ -23,7 +22,5 @@ void board_init(void) {
|
||||
}
|
||||
|
||||
void board_event(void) {
|
||||
power_set_limit();
|
||||
|
||||
ec_read_post_codes();
|
||||
}
|
||||
|
@ -5,7 +5,6 @@
|
||||
#include <board/espi.h>
|
||||
#include <board/gctrl.h>
|
||||
#include <board/gpio.h>
|
||||
#include <board/power.h>
|
||||
#include <common/debug.h>
|
||||
#include <ec/ec.h>
|
||||
|
||||
@ -29,10 +28,6 @@ void board_init(void) {
|
||||
}
|
||||
|
||||
void board_event(void) {
|
||||
#if HAVE_DGPU
|
||||
power_set_limit();
|
||||
#endif // HAVE_DGPU
|
||||
|
||||
espi_event();
|
||||
|
||||
ec_read_post_codes();
|
||||
|
@ -3,7 +3,6 @@
|
||||
#include <board/board.h>
|
||||
#include <board/gctrl.h>
|
||||
#include <board/gpio.h>
|
||||
#include <board/power.h>
|
||||
#include <common/debug.h>
|
||||
#include <ec/ec.h>
|
||||
|
||||
@ -19,7 +18,5 @@ void board_init(void) {
|
||||
}
|
||||
|
||||
void board_event(void) {
|
||||
power_set_limit();
|
||||
|
||||
ec_read_post_codes();
|
||||
}
|
||||
|
@ -5,7 +5,6 @@
|
||||
#include <board/espi.h>
|
||||
#include <board/gctrl.h>
|
||||
#include <board/gpio.h>
|
||||
#include <board/power.h>
|
||||
#include <common/debug.h>
|
||||
#include <ec/ec.h>
|
||||
|
||||
@ -22,8 +21,6 @@ void board_init(void) {
|
||||
}
|
||||
|
||||
void board_event(void) {
|
||||
power_set_limit();
|
||||
|
||||
espi_event();
|
||||
|
||||
ec_read_post_codes();
|
||||
|
@ -5,7 +5,6 @@
|
||||
#include <board/espi.h>
|
||||
#include <board/gctrl.h>
|
||||
#include <board/gpio.h>
|
||||
#include <board/power.h>
|
||||
#include <common/debug.h>
|
||||
#include <ec/ec.h>
|
||||
|
||||
@ -22,8 +21,6 @@ void board_init(void) {
|
||||
}
|
||||
|
||||
void board_event(void) {
|
||||
power_set_limit();
|
||||
|
||||
espi_event();
|
||||
|
||||
ec_read_post_codes();
|
||||
|
@ -5,7 +5,6 @@
|
||||
#include <board/espi.h>
|
||||
#include <board/gctrl.h>
|
||||
#include <board/gpio.h>
|
||||
#include <board/power.h>
|
||||
#include <common/debug.h>
|
||||
#include <ec/ec.h>
|
||||
|
||||
@ -22,8 +21,6 @@ void board_init(void) {
|
||||
}
|
||||
|
||||
void board_event(void) {
|
||||
power_set_limit();
|
||||
|
||||
espi_event();
|
||||
|
||||
ec_read_post_codes();
|
||||
|
@ -5,7 +5,6 @@
|
||||
#include <board/espi.h>
|
||||
#include <board/gctrl.h>
|
||||
#include <board/gpio.h>
|
||||
#include <board/power.h>
|
||||
#include <common/debug.h>
|
||||
#include <ec/ec.h>
|
||||
|
||||
@ -22,8 +21,6 @@ void board_init(void) {
|
||||
}
|
||||
|
||||
void board_event(void) {
|
||||
power_set_limit();
|
||||
|
||||
espi_event();
|
||||
|
||||
ec_read_post_codes();
|
||||
|
@ -4,7 +4,6 @@
|
||||
#include <board/board.h>
|
||||
#include <board/espi.h>
|
||||
#include <board/gpio.h>
|
||||
#include <board/power.h>
|
||||
#include <ec/ec.h>
|
||||
|
||||
void board_init(void) {
|
||||
@ -20,8 +19,6 @@ void board_init(void) {
|
||||
}
|
||||
|
||||
void board_event(void) {
|
||||
power_set_limit();
|
||||
|
||||
espi_event();
|
||||
|
||||
ec_read_post_codes();
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
#include <board/board.h>
|
||||
#include <board/gpio.h>
|
||||
#include <board/power.h>
|
||||
#include <common/debug.h>
|
||||
|
||||
void board_init(void) {
|
||||
@ -20,6 +19,4 @@ void board_init(void) {
|
||||
gpio_set(&SWI_N, true);
|
||||
}
|
||||
|
||||
void board_event(void) {
|
||||
power_set_limit();
|
||||
}
|
||||
void board_event(void) {}
|
||||
|
@ -3,7 +3,6 @@
|
||||
#include <board/board.h>
|
||||
#include <board/gctrl.h>
|
||||
#include <board/gpio.h>
|
||||
#include <board/power.h>
|
||||
#include <common/debug.h>
|
||||
#include <ec/ec.h>
|
||||
|
||||
@ -23,7 +22,5 @@ void board_init(void) {
|
||||
}
|
||||
|
||||
void board_event(void) {
|
||||
power_set_limit();
|
||||
|
||||
ec_read_post_codes();
|
||||
}
|
||||
|
@ -3,7 +3,6 @@
|
||||
#include <board/board.h>
|
||||
#include <board/gctrl.h>
|
||||
#include <board/gpio.h>
|
||||
#include <board/power.h>
|
||||
#include <common/debug.h>
|
||||
#include <ec/ec.h>
|
||||
|
||||
@ -23,7 +22,5 @@ void board_init(void) {
|
||||
}
|
||||
|
||||
void board_event(void) {
|
||||
power_set_limit();
|
||||
|
||||
ec_read_post_codes();
|
||||
}
|
||||
|
@ -4,7 +4,6 @@
|
||||
#include <board/espi.h>
|
||||
#include <board/gctrl.h>
|
||||
#include <board/gpio.h>
|
||||
#include <board/power.h>
|
||||
#include <common/debug.h>
|
||||
#include <ec/ec.h>
|
||||
|
||||
@ -18,8 +17,6 @@ void board_init(void) {
|
||||
}
|
||||
|
||||
void board_event(void) {
|
||||
power_set_limit();
|
||||
|
||||
espi_event();
|
||||
|
||||
ec_read_post_codes();
|
||||
|
Reference in New Issue
Block a user