galp6: Add Galago Pro 6
Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
committed by
Tim Crawford
parent
6295f60172
commit
371f6d3047
33
src/board/system76/galp6/board.c
Normal file
33
src/board/system76/galp6/board.c
Normal file
@@ -0,0 +1,33 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
#include <board/battery.h>
|
||||
#include <board/board.h>
|
||||
#include <board/espi.h>
|
||||
#include <board/gpio.h>
|
||||
#include <ec/ec.h>
|
||||
|
||||
void board_init(void) {
|
||||
espi_init();
|
||||
|
||||
// Allow backlight to be turned on
|
||||
gpio_set(&BKL_EN, true);
|
||||
// Enable camera
|
||||
gpio_set(&CCD_EN, true);
|
||||
// Enable wireless
|
||||
gpio_set(&WLAN_EN, true);
|
||||
gpio_set(&WLAN_PWR_EN, true);
|
||||
// Enable USB power
|
||||
gpio_set(&USB_PWR_EN_N, false);
|
||||
// Assert SMI# and SWI#
|
||||
gpio_set(&SMI_N, true);
|
||||
gpio_set(&SWI_N, true);
|
||||
|
||||
// Make sure charger is in off state, also enables PSYS
|
||||
battery_charger_disable();
|
||||
}
|
||||
|
||||
void board_event(void) {
|
||||
espi_event();
|
||||
|
||||
ec_read_post_codes();
|
||||
}
|
Reference in New Issue
Block a user