Jeremy Soller
86f281b410
Add ME_WE gpio for all boards
2023-04-03 13:06:16 -06:00
Tim Crawford
59c386ec12
Move gpio_debug from board to EC code
...
The gpio_debug() functionality depends on the ITE registers and not
anything board-specific.
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2023-01-23 14:26:30 -07:00
Tim Crawford
b70a09e205
Disable clang-format for sensitive blocks
...
Things like macro blocks should not be auto-formatted.
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2022-03-22 12:52:47 -06:00
Jeremy Soller
df469a9eea
Reduce copying of keyboard layouts
2021-06-04 16:22:10 -06:00
Tim Crawford
b3b2a312b7
Define GPCRn values in EC header
2021-06-03 09:48:55 -06:00
Fabian Topfstedt
6a081cc1b8
lemp9: Added ISO keyboard layouts ( #117 )
...
* LAYOUT_ISO: Conversion of physical ISO layout to keyboard matrix
* fixing interchanged backslash and enter
* default_iso layout added for Clevo L141CU
* fabian layout (ISO, colemak, fn<->ctrl, wide left shift)
* Caps is control
* hardware side: qwerty instead of colemak
* lemp9 fabian: FN+PgUp=Home, FN+PgDn=Eend, FN+LeftShift=KBD_BKL
* lemp9 default_iso: FN+PgUp=Home, FN+PgDn=End
* clevo_l141cu_us_iso.c
* merged
* FN+1=K_FAN_TOGGLE
2020-10-05 14:53:15 -06:00
Jeremy Soller
fc2c3511d2
Move KEYMAP definition to common
2020-10-05 09:54:28 -07:00
Tim Crawford
39e2586c50
Use physical position of keys for config reset
2020-10-01 14:50:26 -07:00
Jeremy Soller
432c4f64d2
Remove unnecessary keymap function
2020-09-29 19:42:05 -06:00
Jeremy Soller
f36b38a7b2
Make KEYMAP's __xdata so they can be edited at runtime
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
70e6476208
power: Enable Wake-on-LAN
2020-08-28 13:23:54 -06:00
Jeremy Soller
42e88d03b3
Move most code in system76 boards into system76/common
2020-06-24 17:43:39 -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
Jeremy Soller
dc246237c6
Add a watchdog timer of 10 seconds when using scratch ROM
2020-04-06 14:11:57 -06:00
Jeremy Soller
825677bfb5
Turn off VDD3 when CPU is off and AC is not connected
2020-04-04 19:36:01 -06:00
Jeremy Soller
d96147688d
Fix calculation of S3 power state, remove S4 power state
2020-03-17 12:49:11 -06:00
Jeremy Soller
7fbad82088
Improve power handling to eliminate lockups
2020-03-17 11:12:59 -06:00
Tim Crawford
a176da0ebe
kbc: Handle setting typematic rate/delay
...
Per [1], use a default delay of 500ms and a rate of 10.9 CPS. When the
Linux kernel starts, this will be updated by atkbd to the fastest
settings possible [2]: 250ms delay and 30 CPS.
Modifying these values with kbdrate to test settings will cause two
spurious ACKs in the kernel. This behavior is also present in the
proprietary firmware.
[1]: https://web.archive.org/web/20180217074705/http://computer-engineering.org/ps2keyboard/
[2]: c5f8689118/drivers/input/keyboard/atkbd.c (L863-L868)
2020-02-25 14:21:10 -07:00
Tim Crawford
3f5c3ead01
power: Make power state global
2020-02-24 06:51:27 -07:00
Jeremy Soller
35462cb7a0
Add SMFI console
2020-02-17 13:35:06 -07:00
Jeremy Soller
cca405ae20
Set up DMA using SMFI
2020-02-17 10:05:26 -07:00
Jeremy Soller
17cce5687f
Add TCPM I2C bus and initialize it
2020-02-13 10:34:28 -07:00
Jeremy Soller
7dde9dd45e
Move SCI extra definitions, add combo definitions
2020-02-12 13:52:47 -07:00
Jeremy Soller
d2591be256
Refactor lid switch, disable power button when lid closed and AC disconnected
2020-02-04 13:33:39 -07:00
Jeremy Soller
2388892649
Sync changes between boards
2020-02-04 13:08:50 -07:00
Jeremy Soller
2795491374
Refactor of keyboard LED
2020-01-30 13:54:52 -07:00
Jeremy Soller
6ee5612a4a
Refactor of smbus
2020-01-30 13:54:26 -07:00
Jeremy Soller
2b8b1a3d20
Add kbled control
2020-01-29 14:50:46 -07:00
Jeremy Soller
933b67a841
Sync changes from galp3-c to darp5 and lemp9
2020-01-29 12:32:25 -07:00
Jeremy Soller
bb985e265c
Implement charging light
2020-01-21 16:04:03 -07:00
Jeremy Soller
efa9fb7fb4
Refactor to minimize differences between galp3-c and lemp9 code
2020-01-15 15:54:43 -07:00
Jeremy Soller
98467ac449
Cleanup
2020-01-12 20:19:20 -07:00
Jeremy Soller
cb1f7df142
Cleanup of keymap definition
2020-01-12 10:37:56 -07:00
Jeremy Soller
6d7f2807d5
Add lemp9
2020-01-09 20:16:05 -07:00