Skip to content

Commit

Permalink
Patch TDR/RDR/TFR/RFR registers for SAI
Browse files Browse the repository at this point in the history
Makes them always act as arrays making the usage patterns simpler.
  • Loading branch information
SpinFast committed Dec 19, 2023
1 parent 35e34ce commit 9da81f6
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions devices/imxrt1176_cm4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,21 @@ PWM?:
- PWMBFS
- PWMAFS

# Always make TDR/TFR/RDR/RFR registers arrays
"SAI[234]":
_array:
TDR*:
name: "TDR[%s]"
_array:
TFR*:
name: "TFR[%s]"
_array:
RDR*:
name: "RDR[%s]"
_array:
RFR*:
name: "RFR[%s]"

# End directives to remove duplicated enumeratedValues.

# Add extra enums to LPSPI so it easily combines with the 10xx peripherals.
Expand Down
15 changes: 15 additions & 0 deletions devices/imxrt1176_cm7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,21 @@ PWM?:
- PWMBFS
- PWMAFS

# Always make TDR/TFR/RDR/RFR registers arrays
"SAI[234]":
_array:
TDR*:
name: "TDR[%s]"
_array:
TFR*:
name: "TFR[%s]"
_array:
RDR*:
name: "RDR[%s]"
_array:
RFR*:
name: "RFR[%s]"

# End directives to remove duplicated enumeratedValues.

# Add extra enums to LPSPI so it easily combines with the 10xx peripherals.
Expand Down

0 comments on commit 9da81f6

Please sign in to comment.