368 Commits

Author SHA1 Message Date
Jeremy Soller
85cd16ca30
WIP: Support parallel port logging with Arduino Uno 2020-03-12 14:19:55 -06:00
Tim Crawford
abf5c3f20b mega2560: Add pin configuration for IT5570 2020-03-06 11:16:09 -07:00
Tim Crawford
f9a775e71b docs: Add info for logging through parport 2020-03-06 11:16:04 -07:00
Tim Crawford
e5afb927b8 system76/*: Add parport logging
Add a build-time option to configure the parallel port for logging
instead of using it as a keyboard.
2020-03-06 11:15:58 -07:00
Tim Crawford
72b453ebd3 it8587e, it5570e: Implement logging to parport
Implement configuring the keyboard controller as a parallel host device
and writing to the parallel port. This allows the EC to send log
messages over the port.
2020-03-06 11:15:51 -07:00
Tim Crawford
0f666abb25 mega2560: Implement debug console command
Reconfigure the Mega 2560 as a parallel peripheral device to receive
logs from the EC over the keyboard port and output them to the serial
console.
2020-03-06 11:15:45 -07:00
Tim Crawford
2d86bd1f0c readme: Update flash commands 2020-03-06 11:15:40 -07:00
Jeremy Soller
364b7c3af8
Rename flash targets 2020-03-02 14:11:57 -07:00
Jeremy Soller
e2c6fd7b82
ectool 0.1.1 2020-02-27 15:07:16 -07:00
Jeremy Soller
ff01da5f12
Write and erase at the same time to improve speed 2020-02-27 15:05:28 -07:00
Jeremy Soller
d1468da590
Use 1024 byte erase 2020-02-27 14:48:24 -07:00
Jeremy Soller
33cc2a2a76
Better output when flashing EC 2020-02-27 14:46:32 -07:00
Jeremy Soller
6ac21ace9c
Set spi target to main 2020-02-27 13:30:33 -07:00
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