From: Luke Kenneth Casson Leighton Date: Wed, 25 Jul 2018 11:52:12 +0000 (+0100) Subject: flexbus merging of ganged bus group X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02d6547ee9b3bb983bc2735d6332d89bf2f11c8c;p=pinmux.git flexbus merging of ganged bus group --- diff --git a/src/spec/i_class.py b/src/spec/i_class.py index 966d843..35cf8c6 100644 --- a/src/spec/i_class.py +++ b/src/spec/i_class.py @@ -10,7 +10,7 @@ def pinspec(): pinbanks = { 'A': 28, 'B': 32, - 'C': 32, + 'C': 24, } fixedpins = { 'CTRL_SYS': [ diff --git a/src/spec/interfaces.py b/src/spec/interfaces.py index e2cddba..b35e935 100644 --- a/src/spec/interfaces.py +++ b/src/spec/interfaces.py @@ -97,7 +97,10 @@ class Pinouts(object): setattr(self, name, PinGen(self, fname, pinfn, self.bankspec)) def setganged(self, fname, grp): - self.ganged[fname] = map(lambda x: x[:-1], grp) + grp = map(lambda x: x[:-1], grp) + if not self.ganged.has_key(fname): + self.ganged[fname] = [] + self.ganged[fname] += grp def __contains__(self, k): return k in self.pins