forked from AsahiLinux/m1n1
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generalizes the HPM driver over different transports, implements the SPMI transport, and takes care of waking up the device upon initialization so that commands can be sent to it. then, reverts AsahiLinux#365 and makes the necessary changes to the usb driver to use the appropriate transport as necessary. the SPMI transport is pretty much a C translation of the hpm_spmi experiment, but has more retry loops for robustness, since in my experience the device sometimes doesn't actually perform the read / write to the logical register even if it ACKs the SPMI transactions.
- Loading branch information
1 parent
c12fbb7
commit 5e2cb1e
Showing
3 changed files
with
179 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters