321 Commits

Author SHA1 Message Date
Jeremy Soller
a24f9ed3ae
Cleanup use of scratch rom for SPI flashing, prepare to implement no-reset flashing process 2020-02-27 13:21:04 -07:00
Jeremy Soller
14bb3af80b
Fix lemp9 menu key #29 2020-02-26 15:14:43 -07:00
Jeremy Soller
68b9acd249
Add ability to flash backup rom 2020-02-26 13:43:31 -07:00
Jeremy Soller
1e1c626d71
Port changes from galp3-c to darp5 and lemp9 2020-02-26 13:11:50 -07:00
Jeremy Soller
657437e1ce
Faster flashing with SMFI (#32)
* WIP: support for new flashing API

* Add SPI flashing support to tool

* Add timeouts when flashing with ectool

* Test SPI reading

* Use chunks for SPI commands

* Sanity test of flash size

* Read rom in sectors

* Relocate memmap region, remove PMC3

* Use ectool to flash

* Remove debugging of spi command

* Fix flashing over smfi
2020-02-26 09:04:40 -07: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
a8f921fcab kbscan: Implement key repeat 2020-02-25 13:28:09 -07:00
Jeremy Soller
316895bdea
Use ectool for console 2020-02-24 14:10:52 -07:00
Jeremy Soller
f1cf00bdb8
Do not spin in scratch PMC handling 2020-02-24 14:08:16 -07:00
Jeremy Soller
83c224c229
Decrease pmc latency 2020-02-24 09:45:10 -07:00
Jeremy Soller
130ab9d61f
Add power_on_s5 for DEEP_SX to darp5 and galp3-c 2020-02-24 09:07:35 -07:00
Jeremy Soller
aa065f0a05
Fix double setting of low keyboard outputs 2020-02-24 09:07:02 -07:00
Jeremy Soller
ce3a097b9b
Merge pull request #27 from system76/wip/wake-s3
Wake from S3 using any key
2020-02-24 09:00:43 -07:00
Jeremy Soller
e7779065bb
Switch back to default keymap 2020-02-24 07:44:09 -07:00
Tim Crawford
3014fb3a41 Wake from S3 using any key 2020-02-24 07:04:19 -07:00
Tim Crawford
0379c6ed35 power: Add more state transitions 2020-02-24 06:51:27 -07:00
Tim Crawford
3f5c3ead01 power: Make power state global 2020-02-24 06:51:27 -07:00
Tim Crawford
d08bfc8fdd pmc: Reduce logs from DEBUG to TRACE 2020-02-24 06:51:27 -07:00
Jeremy Soller
2ab49f46b9
Add power_on_s5 for DEEP_SX 2020-02-23 12:51:37 -07:00
Jeremy Soller
277ad664a2
Make PMC handling slightly faster 2020-02-21 20:34:29 -07:00
Jeremy Soller
d16ecc6129
Fix test for when to update battery and fan state, hold SCI_N for longer 2020-02-21 20:30:10 -07:00
Jeremy Soller
11c15c2291
Implement keyboard backlight on darp5/6 2020-02-21 19:29:59 -07:00
Jeremy Soller
7a30eadebe
Set ledout and mode registers 2020-02-21 16:02:32 -07:00
Jeremy Soller
a90b2a8c67
WIP: kbled control for darp5 2020-02-21 15:38:44 -07:00
Jeremy Soller
0d72e63b31
Add jeremy keymap for darp5 2020-02-21 15:18:31 -07:00
Jeremy Soller
f7453df299
Fix compilation on AVR 2020-02-18 15:35:41 -07:00
Carl Richell
ff9f3fe710 Carl layout 2020-02-18 14:54:00 -07:00
Jeremy Soller
db698ee6d9
Lower fan frequency, simplify fan curve 2020-02-17 20:50:34 -07:00
Jeremy Soller
fa8447cd4d
Remove unnecessary PMC burst loop 2020-02-17 14:38:01 -07:00
Jeremy Soller
ebcb6af3f5
Merge branch 'master' of https://github.com/system76/ec 2020-02-17 14:19:12 -07:00
Jeremy Soller
ac4d15b395
Use state machine instead of timeout in PMC code 2020-02-17 14:19:05 -07:00
Jeremy Soller
1e20303851
Fix battery indicator when charged 2020-02-17 13:46:39 -07:00
Jeremy Soller
35462cb7a0
Add SMFI console 2020-02-17 13:35:06 -07:00
Jeremy Soller
7c1e0508a9
Include smfi header 2020-02-17 12:56:28 -07:00
Jeremy Soller
177c7c0627
Sync SMFI changes to other boards 2020-02-17 12:36:37 -07:00
Jeremy Soller
493e61dfbc
Add initial commands 2020-02-17 11:02:39 -07:00
Jeremy Soller
4bfe981455
Clear SMFI regions and fix size of H2RAM window 1 2020-02-17 10:16:48 -07:00
Jeremy Soller
cca405ae20
Set up DMA using SMFI 2020-02-17 10:05:26 -07:00
Jeremy Soller
81ffcf5ae1
Add version to firmware image 2020-02-16 12:24:02 -07:00
Jeremy Soller
17cce5687f
Add TCPM I2C bus and initialize it 2020-02-13 10:34:28 -07:00
Jeremy Soller
fc7fa1f11c
Sync acpi changes between boards 2020-02-12 21:43:33 +00:00
Jeremy Soller
b830386e80
Add ECOS 2020-02-12 14:36:56 -07:00
Jeremy Soller
2a4255ce15
Do not hold super-p when using display mode hotkey 2020-02-12 14:25:18 -07:00
Jeremy Soller
d5f1fb0d5b
Implement display switch combo 2020-02-12 14:04:44 -07:00
Jeremy Soller
aa6f838f53
Add printscreen support as a combo 2020-02-12 13:53:14 -07:00
Jeremy Soller
7dde9dd45e
Move SCI extra definitions, add combo definitions 2020-02-12 13:52:47 -07:00
Jeremy Soller
79a9722c90
Remove use of timer 2 2020-02-12 12:23:06 -07:00
Jeremy Soller
b3801ccf98
Debounce on release (darp5, galp3-c) 2020-02-10 15:54:32 -07:00
Jeremy Soller
4ca434c6d1
Debounce on release 2020-02-10 15:53:32 -07:00
Carl Richell
c23a5cb0e0 Add missing lid file 2020-02-05 15:57:16 -07:00