* 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
25 lines
854 B
Makefile
25 lines
854 B
Makefile
# Include system76 common source
|
|
SYSTEM76_COMMON_DIR=src/board/system76/common
|
|
SRC+=$(wildcard $(SYSTEM76_COMMON_DIR)/*.c)
|
|
INCLUDE+=$(wildcard $(SYSTEM76_COMMON_DIR)/include/common/*.h) $(SYSTEM76_COMMON_DIR)/common.mk
|
|
CFLAGS+=-I$(SYSTEM76_COMMON_DIR)/include
|
|
|
|
# Add scratch ROM
|
|
include $(SYSTEM76_COMMON_DIR)/scratch/scratch.mk
|
|
|
|
console_internal:
|
|
cargo build --manifest-path tool/Cargo.toml --release
|
|
sudo tool/target/release/system76_ectool console
|
|
|
|
console_external:
|
|
sleep 1 && echo C | sudo tee /dev/ttyACM* &
|
|
sudo tio -b 1000000 -m INLCRNL -t /dev/ttyACM*
|
|
|
|
flash_internal: $(BUILD)/ec.rom
|
|
cargo build --manifest-path tool/Cargo.toml --release
|
|
sudo tool/target/release/system76_ectool flash $<
|
|
|
|
flash_external: $(BUILD)/ec.rom
|
|
cargo build --manifest-path ecflash/Cargo.toml --example isp --release
|
|
sudo ecflash/target/release/examples/isp $<
|