Repository navigation
Commit f013fd1
platform: spacemit: add K3 eSPI bus and EC transport
The FML13V05 internal keyboard is scanned by a ChromeOS EC connected over
eSPI. DC Linux lacks both the K3 controller and its EC transport, and the
Chrome platform menu currently excludes RISC-V.
Port the controller and protocol v2/v3 transport from the vendor 6.18.3
kernel. Expose shared-memory access and link recovery, serialize host
commands, and enable the EC menu on RISC-V.
Keep interrupt ownership in the new transport: register the EC without a
core IRQ, then request the DT-configured interrupt and reuse the exported
EC event thread. Release it before unregistering the EC and unwind EC
registration if the IRQ request fails. This preserves the board's rising
edge without changing the shared EC core's fixed low-level IRQ handling.
Validate full Image/modules builds, EC communication, lifecycle recovery
and cold-boot module autoload on FML13V05. The port, IRQ adaptation and
validation were developed with Codex assistance using the vendor source.
Signed-off-by: Wang Yang <yang.wang@deepcomputing.io>1 parent 53a012e commit f013fd1
7 files changed
Lines changed: 1740 additions & 1 deletion
File tree
- drivers
- bus
- platform/chrome
- include/linux
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
152 | 162 | | |
153 | 163 | | |
154 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
0 commit comments