From b1aba22cd4289908ccf90d0ae0ad49993ade1d75 Mon Sep 17 00:00:00 2001 From: robert-hh Date: Thu, 8 Jan 2026 16:56:40 +0100 Subject: [PATCH] mimxrt/boards/make-pins.py: Add the XBAR tag to the AF names. Signed-off-by: robert-hh --- ports/mimxrt/boards/make-pins.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ports/mimxrt/boards/make-pins.py b/ports/mimxrt/boards/make-pins.py index 6ad60f0545..82caf0fa64 100644 --- a/ports/mimxrt/boards/make-pins.py +++ b/ports/mimxrt/boards/make-pins.py @@ -26,7 +26,7 @@ IOMUX_REGEXS = [ r"IOMUXC_(?PGPIO_SNVS_\d\d_DIG)_(?P\w+) (?P\w+), (?P\w+), (?P\w+), (?P\w+), (?P\w+)", ] -SUPPORTED_AF_FNS = {"GPIO", "USDHC", "FLEXPWM", "TMR"} +SUPPORTED_AF_FNS = {"GPIO", "USDHC", "FLEXPWM", "TMR", "XBAR"} class MimxrtPin(boardgen.Pin): @@ -190,7 +190,7 @@ class MimxrtPinGenerator(boardgen.PinGenerator): # the CMD pin of the USDHC1 function on the GPIO_SD_B0_00 pin. def print_module_instances(self, out_header): print(file=out_header) - for match_fn in ("USDHC", "FLEXPWM", "TMR"): + for match_fn in ("USDHC", "FLEXPWM", "TMR", "XBAR"): module_instances = defaultdict(list) for pin in self.available_pins(): for i, (_af_idx, _input_reg, _input_daisy, instance, fn, af) in enumerate( @@ -207,6 +207,8 @@ class MimxrtPinGenerator(boardgen.PinGenerator): print("#define {:s}_AVAIL (1)".format(k), file=out_header) if match_fn == "FLEXPWM": print("#define {:s} {:s}".format(k, k[-4:]), file=out_header) + if match_fn == "XBAR": + print("#define {:s} {:s}A1".format(k, k[:4]), file=out_header) for i in v: print(i, file=out_header)