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:
6
src/ec/it5570e/ec.c
Normal file
6
src/ec/it5570e/ec.c
Normal file
@ -0,0 +1,6 @@
|
||||
#include <ec/ec.h>
|
||||
#include <ec/gctrl.h>
|
||||
|
||||
void ec_init(void) {
|
||||
RSTS = 0x44;
|
||||
}
|
6
src/ec/it5570e/include/ec/ec.h
Normal file
6
src/ec/it5570e/include/ec/ec.h
Normal file
@ -0,0 +1,6 @@
|
||||
#ifndef _EC_EC_H
|
||||
#define _EC_EC_H
|
||||
|
||||
void ec_init(void);
|
||||
|
||||
#endif // _EC_EC_H
|
@ -6,5 +6,8 @@
|
||||
volatile uint8_t __xdata __at(0x2006) RSTS;
|
||||
volatile uint8_t __xdata __at(0x200A) BADRSEL;
|
||||
volatile uint8_t __xdata __at(0x200D) SPCTRL1;
|
||||
volatile uint8_t __xdata __at(0x2030) P80H81HS;
|
||||
volatile uint8_t __xdata __at(0x2031) P80HD;
|
||||
volatile uint8_t __xdata __at(0x2032) P81HD;
|
||||
|
||||
#endif // _EC_GCTRL_H
|
||||
|
6
src/ec/it8587e/ec.c
Normal file
6
src/ec/it8587e/ec.c
Normal file
@ -0,0 +1,6 @@
|
||||
#include <ec/ec.h>
|
||||
#include <ec/gctrl.h>
|
||||
|
||||
void ec_init(void) {
|
||||
RSTS = 0x84;
|
||||
}
|
6
src/ec/it8587e/include/ec/ec.h
Normal file
6
src/ec/it8587e/include/ec/ec.h
Normal file
@ -0,0 +1,6 @@
|
||||
#ifndef _EC_EC_H
|
||||
#define _EC_EC_H
|
||||
|
||||
void ec_init(void);
|
||||
|
||||
#endif // _EC_EC_H
|
Reference in New Issue
Block a user