Tim Crawford
1fc832ca94
Enable POST codes in EC init instead of per-board
...
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2021-07-09 07:37:40 -06:00
Tim Crawford
d1db553e8c
system76/*: Call EC function to read POST codes
...
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2021-07-09 07:37:40 -06:00
Tim Crawford
a8229d9e62
Move power limit functions to common board code
...
Logic for changing power limit is the same for all boards with GPUs. It
is still called from board_event() instead of in power_event() to
maintain the current behavior of checking every main cycle.
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2021-07-09 07:35:52 -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
Jeremy Soller
849ce36c6f
Support postcode debug on oryp6
2020-06-29 14:44:42 -06:00
Jeremy Soller
8009208760
Only consider 0x40 response as valid
2020-06-25 11:37:48 -06:00
Jeremy Soller
72755c81e4
Use BUF_PLT_RST_N to trigger setting power limits again
2020-06-25 11:34:41 -06:00
Jeremy Soller
42e88d03b3
Move most code in system76 boards into system76/common
2020-06-24 17:43:39 -06:00
Jeremy Soller
0ba1276f96
oryp6: fix battery LEDs
2020-06-24 09:16:14 -06:00
Jeremy Soller
4a291fb3a3
oryp6: retry setting power limit on failure
2020-06-24 09:15:48 -06:00
Jeremy Soller
fc990f8043
oryp6: Use a battery current of 0 to determine that battery is fully charged
2020-06-24 08:17:15 -06:00
Jeremy Soller
c9a602c5af
oryp6: Do not invert full battery light
2020-06-23 09:14:44 -06:00
Jeremy Soller
1c04c6aa39
oryp6: Invert battery leds
2020-06-23 09:09:54 -06:00
Jeremy Soller
a05cae6e52
oryp6: set USB port power
2020-06-18 16:10:58 -06:00
Jeremy Soller
90bdcb3818
Set power limits on AC plug event
2020-06-17 11:51:08 -06:00
Jeremy Soller
9ec6122153
Add gaze15 and oryp6
2020-06-11 12:57:54 -06:00