387 Commits

Author SHA1 Message Date
Jeremy Soller
82b7079f73
Add tool for collecting power/temp information 2020-04-04 08:23:52 -06:00
Jeremy Soller
62a909ee81
Improve fan curve
- Implement fan cooldown and heatup periods
- Add fan get/set commands
- Fix compilation with logging level lower than debug
2020-04-04 07:30:05 -06:00
Jeremy Soller
4fdb9ecbdc
Fix fan turning on when powering on or resuming from suspend 2020-04-01 20:03:09 -06:00
Jeremy Soller
d2ae447f4c
Merge pull request #40 from system76/wip/ghost
Ignore key presses that trigger ghost keys
2020-03-31 16:29:42 -06:00
Tim Crawford
9bf09e211c kbscan: Ignore key presses with ghost keys 2020-03-31 13:40:56 -06:00
Tim Crawford
ebcd545746 kbscan: Add function to read row from matrix 2020-03-31 13:40:56 -06:00
Jeremy Soller
6bfe5bb99a
Update Cargo.lock 2020-03-31 12:08:18 -06:00
Jeremy Soller
b0f6d7314a
ectool 0.1.2 - support building on rust stable 2020-03-31 12:07:32 -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
Jeremy Soller
f179052dcb
Orientation for use with new adapter 2020-03-16 15:38:23 -06:00
Jeremy Soller
25a60568d0
Add print command 2020-03-14 21:13:07 -06:00
Jeremy Soller
8a8ab165a7
Improve print command 2020-03-14 21:06:18 -06:00
Jeremy Soller
d800af5ed6
Fix unflipped pin mapping 2020-03-14 20:41:40 -06:00
Jeremy Soller
606421abd1
Add console_external target 2020-03-14 20:40:44 -06:00
Jeremy Soller
6cbc7b3ea1
Remove delays from parport_write 2020-03-14 20:39:47 -06:00
Jeremy Soller
abcc8c00e0
Remove unnecessary sleeps from parallel_transaction 2020-03-14 20:38:52 -06:00
Jeremy Soller
8f3588ef6b
Leave parallel pins in HiZ until a command is issued. 2020-03-14 20:05:35 -06:00
Jeremy Soller
61c5ab1b3e
Merge pull request #35 from system76/wip/parport-logging
Debug logging over parallel port
2020-03-13 07:41:04 -06:00
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