Addw2 support (#67)
* Add addw2 board * Set charge params and update gpio.h * Set VGA fan to 100% when entering scratch rom * Implement keyboard LEDs * Turn off keyboard LEDs in gpio defaults * Default airplane mode LED to off * Enable GPU power and fan control * Add NVIDIA GPU power and temp to power.csv * Add NVIDIA GPU fan value to power.sh * Move GPU init back to coreboot * Do not turn on GPU fan if GPU is off * Show POST codes * Add timestamps to console_external * Accept port 81 cycles * Move setting RSTS into ec_init * Move post code debugging to system76/common * Move some GPIO init from system76/common to boards * Make some power signals optional * Remove POST code support - it only works on IT5570
This commit is contained in:
@@ -1,12 +1,26 @@
|
||||
#include <board/board.h>
|
||||
#include <board/gctrl.h>
|
||||
#include <board/gpio.h>
|
||||
#include <board/power.h>
|
||||
|
||||
extern uint8_t main_cycle;
|
||||
|
||||
void board_init(void) {
|
||||
RSTS = 0x44;
|
||||
// Allow CPU to boot
|
||||
gpio_set(&SB_KBCRST_N, true);
|
||||
// Allow backlight to be turned on
|
||||
gpio_set(&BKL_EN, true);
|
||||
// Enable camera
|
||||
gpio_set(&CCD_EN, true);
|
||||
// Enable wireless
|
||||
gpio_set(&BT_EN, true);
|
||||
gpio_set(&WLAN_EN, true);
|
||||
gpio_set(&WLAN_PWR_EN, true);
|
||||
// Enable right USB port
|
||||
gpio_set(&USB_PWR_EN_N, false);
|
||||
// Assert SMI#, SCI#, and SWI#
|
||||
gpio_set(&SCI_N, true);
|
||||
gpio_set(&SMI_N, true);
|
||||
gpio_set(&SWI_N, true);
|
||||
}
|
||||
|
||||
void board_event(void) {
|
||||
|
Reference in New Issue
Block a user