From: Luke Kenneth Casson Leighton Date: Tue, 13 Apr 2021 16:33:12 +0000 (+0100) Subject: fix litex name map X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=46c455001776bbf173df113ddb673232ad8fec78;p=pinmux.git fix litex name map --- diff --git a/src/spec/ls180.py b/src/spec/ls180.py index c1b004b..5c0783c 100644 --- a/src/spec/ls180.py +++ b/src/spec/ls180.py @@ -299,7 +299,9 @@ def pinparse(psp, pinspec): # I2C master-only elif name.startswith('mtwi'): domain = 'MTWI' - name = 'i2c' + name[4:] + suffix = name[4:] + litex_name = 'mtwi' + suffix + name = 'i2c' + suffix if name.startswith('i2c_sda'): name2 = 'i2c_sda_%s' pad = ['p_'+name, name, name2 % 'o', name2 % 'i', name2 % 'oe']