Skip to content

Commit b1aba22

Browse files
robert-hhdpgeorge
authored andcommitted
mimxrt/boards/make-pins.py: Add the XBAR tag to the AF names.
Signed-off-by: robert-hh <robert@hammelrath.com>
1 parent 61bbd78 commit b1aba22

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

ports/mimxrt/boards/make-pins.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
r"IOMUXC_(?P<pin>GPIO_SNVS_\d\d_DIG)_(?P<function>\w+) (?P<muxRegister>\w+), (?P<muxMode>\w+), (?P<inputRegister>\w+), (?P<inputDaisy>\w+), (?P<configRegister>\w+)",
2727
]
2828

29-
SUPPORTED_AF_FNS = {"GPIO", "USDHC", "FLEXPWM", "TMR"}
29+
SUPPORTED_AF_FNS = {"GPIO", "USDHC", "FLEXPWM", "TMR", "XBAR"}
3030

3131

3232
class MimxrtPin(boardgen.Pin):
@@ -190,7 +190,7 @@ def load_inputs(self, out_source):
190190
# the CMD pin of the USDHC1 function on the GPIO_SD_B0_00 pin.
191191
def print_module_instances(self, out_header):
192192
print(file=out_header)
193-
for match_fn in ("USDHC", "FLEXPWM", "TMR"):
193+
for match_fn in ("USDHC", "FLEXPWM", "TMR", "XBAR"):
194194
module_instances = defaultdict(list)
195195
for pin in self.available_pins():
196196
for i, (_af_idx, _input_reg, _input_daisy, instance, fn, af) in enumerate(
@@ -207,6 +207,8 @@ def print_module_instances(self, out_header):
207207
print("#define {:s}_AVAIL (1)".format(k), file=out_header)
208208
if match_fn == "FLEXPWM":
209209
print("#define {:s} {:s}".format(k, k[-4:]), file=out_header)
210+
if match_fn == "XBAR":
211+
print("#define {:s} {:s}A1".format(k, k[:4]), file=out_header)
210212
for i in v:
211213
print(i, file=out_header)
212214

0 commit comments

Comments
 (0)