projects
/
pinmux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b75c9e
)
fix litex name map
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 13 Apr 2021 16:29:56 +0000
(17:29 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 13 Apr 2021 16:29:56 +0000
(17:29 +0100)
src/spec/ls180.py
patch
|
blob
|
history
diff --git
a/src/spec/ls180.py
b/src/spec/ls180.py
index 3eea891e9df021e4ef8942ace24eda988d216e79..c1b004bcfc945eeebb7ba2f8832743e429e5dae8 100644
(file)
--- 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'