12 Commits

Author SHA1 Message Date
Jeremy Soller
00043ebfaf Only send hotkey SCI if ACPI OS is loaded 2020-09-29 19:42:05 -06:00
Tim Crawford
5fd9df0ed0 Add SPDX license identifiers
Add license information to files. Mostly automated with:

    find src/ -name '*.[c,h]' | xargs sed -i '1s,^,// SPDX-License-Identifier: GPL-3.0-only\n\n,'
    find src/ -name '*.mk' | xargs sed -i '1s,^,# SPDX-License-Identifier: GPL-3.0-only\n\n,'
2020-09-17 09:17:08 -06:00
Tim Crawford
fd6f9a0a05 battery: Implement charging thresholds
Battery Charging Start Threshold:
- Valid values are [0, 100]
- A value of 0 disables the feature, leaving the charger enabled on AC

Battery Charging End Threshold:
- Valid values are [0,100]
- A value of 100 disabled the feature, leaving the charger enabled on AC

The stop threshold must be configured for the start threshold to work.
2020-09-04 10:17:21 -06:00
Tim Crawford
83c219589a Add battery detection
Don't turn on battery LEDs or report it connected if not initialized.
2020-09-04 07:21:08 -06:00
Jeremy Soller
ee404071fb Add acpi_reset function, to reset registers set by the OS 2020-09-02 08:41:30 -06:00
Tim Crawford
70e6476208 power: Enable Wake-on-LAN 2020-08-28 13:23:54 -06:00
Jeremy Soller
ab8546a7b7
Alternative detection of battery charged 2020-06-30 08:06:05 -06:00
Jeremy Soller
42e88d03b3 Move most code in system76 boards into system76/common 2020-06-24 17:43:39 -06:00
Jeremy Soller
f8e984f8c1 Debug power signals 2020-06-11 12:57:54 -06:00
Jeremy Soller
9ec6122153 Add gaze15 and oryp6 2020-06-11 12:57:54 -06:00
Jeremy Soller
39cd014f7b
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
2020-06-04 13:22:59 -06:00
Jeremy Soller
357fae86fc
System76 common board directory (#53)
* Move configuration for battery into board.mk

* lemp9: remove tcpm code

* Move touchpad to its own module

* Add kbled_reset to all platforms, move items to run on CPU reset to a function

* Add defines for battery and charger address

* Add I2C_0 export to it5570e

* Move common system76 board functions into src/board/system76/common
2020-04-14 17:23:29 -06:00