This is already handled by power_event. Signed-off-by: Tim Crawford <tcrawford@system76.com>
28 lines
540 B
C
28 lines
540 B
C
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#include <board/battery.h>
|
|
#include <board/board.h>
|
|
#include <board/espi.h>
|
|
#include <board/gctrl.h>
|
|
#include <board/gpio.h>
|
|
#include <common/debug.h>
|
|
#include <ec/ec.h>
|
|
|
|
void board_init(void) {
|
|
espi_init();
|
|
|
|
// Make sure charger is in off state, also enables PSYS
|
|
battery_charger_disable();
|
|
|
|
// Allow backlight to be turned on
|
|
gpio_set(&BKL_EN, true);
|
|
// Enable camera
|
|
gpio_set(&CCD_EN, true);
|
|
}
|
|
|
|
void board_event(void) {
|
|
espi_event();
|
|
|
|
ec_read_post_codes();
|
|
}
|