From: Luke Kenneth Casson Leighton Date: Tue, 13 Apr 2021 16:25:41 +0000 (+0100) Subject: add litex name map X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8b75c9e8a8d46360c00bd931b11b443cae97fb0c;p=pinmux.git add litex name map --- diff --git a/src/spec/ls180.py b/src/spec/ls180.py index e78367e..3eea891 100644 --- a/src/spec/ls180.py +++ b/src/spec/ls180.py @@ -226,9 +226,9 @@ def pinparse(psp, pinspec): prefix = 'spimaster_' else: prefix = 'spisdcard_' + litex_name = name[:6] + suffix name = prefix + suffix pad = ['p_' + name, name, name] - litex_name = name[:6] + suffix # SD/MMC elif name.startswith('sd0'): domain = 'SD' @@ -244,7 +244,7 @@ def pinparse(psp, pinspec): else: name = 'sdcard_' + name[4:] pad = ['p_' + name, name, name] - litex_name = name[:6] + "_".join(name.split("_")[1:]) + litex_name = orig_name[:4] + "_".join(name.split("_")[1:]) # SDRAM elif name.startswith('sdr'): domain = 'SDR' @@ -280,7 +280,7 @@ def pinparse(psp, pinspec): else: name = 'sdram_' + name[4:] pad = ['p_' + name, name, name] - litex_name = name[:5] + "_".join(name.split("_")[1:]) + litex_name = orig_name[:4] + "_".join(name.split("_")[1:]) # UART elif name.startswith('uart'): domain = 'UART'