Jeremy Soller
fb7acd7c3c
Add ectool script
2020-02-27 13:22:10 -07:00
Jeremy Soller
e8dd295daa
Parameterize flash_inner
2020-02-27 13:21:59 -07:00
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
Jeremy Soller
a7e47d8d58
Merge pull request #30 from system76/wip/key-repeat
...
Implement key repeat
2020-02-26 09:03:35 -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
8d0bab01f7
Add more subcommands to tool
2020-02-24 13:42:00 -07:00
Jeremy Soller
d511a57bff
Add firmware struct to tool
2020-02-24 10:23:36 -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
5ada277ed4
Merge pull request #25 from system76/docs-debugging
...
docs: Add documentation for debugging
2020-02-21 13:02:11 -07:00
Tim Crawford
f61e44dc21
docs: Add documentation for debugging
...
Add the steps required to wire a supported laptop for EC debugging,
along with setting up an environment to receive EC logs.
2020-02-21 12:47:53 -07:00
Jeremy Soller
369a695bd9
Add timeout macro to simplify timeout logic
2020-02-20 21:09:10 -07:00
Jeremy Soller
85e7225e95
License tool as MIT to allow use in firmware-update
2020-02-20 15:26:59 -07:00
Jeremy Soller
346775b941
Fix ectool command_finish
2020-02-20 15:01:40 -07:00
Jeremy Soller
08490002b9
Add tool (WIP)
2020-02-20 14:20:16 -07:00
Jeremy Soller
b0cd6f50e4
Add ecspy submodule
2020-02-20 09:11:47 -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
ce2318c4f0
Update ecflash
2020-02-17 12:28:44 -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