Skip to content

Commit

Permalink
Add espi patch to make it easier to use
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Balbi <[email protected]>
  • Loading branch information
Felipe Balbi authored and felipebalbi committed Dec 4, 2024
1 parent df2cbc2 commit ede3dfa
Show file tree
Hide file tree
Showing 40 changed files with 1,130 additions and 2,194 deletions.
1 change: 1 addition & 0 deletions patch/MIMXRT633S.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ _include:
- "adc.yaml"
- "crc.yaml"
- "dma.yaml"
- "espi.yaml"
- "i2s.yaml"
- "inputmux.yaml"
- "usart.yaml"
Expand Down
44 changes: 44 additions & 0 deletions patch/espi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
ESPI:
# Rename OFFSET variant to avoid name collision
STATADDR:
BASE:
_replace_enum:
OFFSET_FROM_0: [0, Is offset from 0 in host memory or I/O space]
BASE1: [1, Uses BASE1 offset in host memory (see MAPBASE reg)]
BASE2: [2, Uses BASE2 offset in host memory (see MAPBASE reg)]

# Create Port Clusters
_cluster:
PORT%s:
description: "Port 0-4"
P[01234]CFG:
description: Port Configuration and Control
name: CFG

P[01234]STAT:
description: Port Status
name: STAT

P[01234]IRuleStat:
description: Port set interrupt rules and user status
name: IRULESTAT

P[01234]ADDR:
description: Port Address offset to host
name: ADDR

P[01234]OMFLEN:
description: Port OOB, Mastering and Flash Length (for OOB, Bus Mastering, and Flash)
name: OMFLEN

P[01234]DataIn:
description: Port Data from Host
name: DATAIN

P[01243]DataOut:
description: Port Data to Host (for Endpoint and Index/Data)
name: DATAOUT

P[01234]RAMUse:
description: Port RAM base and size (for Mailbox and Bus Master)
name: RAMUSE
503 changes: 30 additions & 473 deletions src/espi.rs

Large diffs are not rendered by default.

47 changes: 0 additions & 47 deletions src/espi/p1data_out.rs

This file was deleted.

121 changes: 0 additions & 121 deletions src/espi/p1irule_stat.rs

This file was deleted.

62 changes: 0 additions & 62 deletions src/espi/p1ramuse.rs

This file was deleted.

Loading

0 comments on commit ede3dfa

Please sign in to comment.