From: Luke Kenneth Casson Leighton Date: Tue, 13 Apr 2021 16:29:56 +0000 (+0100) Subject: fix litex name map X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f371a279c27af9ba26bf1cb5eb4135e53d98cb62;p=pinmux.git fix litex name map --- diff --git a/src/spec/ls180.py b/src/spec/ls180.py index 3eea891..c1b004b 100644 --- a/src/spec/ls180.py +++ b/src/spec/ls180.py @@ -288,12 +288,14 @@ def pinparse(psp, pinspec): pad = ['p_' + name, name, name] # GPIO elif name.startswith('gpio'): + gbank = name[4] domain = 'GPIO' i = name[7:] name = 'gpio_' + i name2 = 'gpio_%%s(%s)' % i pad = ['p_' + name, name, name2 % 'o', name2 % 'i', name2 % 'oe'] print ("GPIO pad", name, pad) + litex_name = "gpio_%s" % gbank + "_".join(name.split("_")[1:]) # I2C master-only elif name.startswith('mtwi'): domain = 'MTWI'