From: Luke Kenneth Casson Leighton Date: Tue, 31 Jul 2018 06:08:24 +0000 (+0100) Subject: make mux cells possible to be 1 wide X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=febcb1bce0ee80ab7e5f4c496e92009e02e3ef43;p=pinmux.git make mux cells possible to be 1 wide --- diff --git a/src/parse.py b/src/parse.py index 2569dcc..16927ef 100644 --- a/src/parse.py +++ b/src/parse.py @@ -50,14 +50,15 @@ class Parse(object): if len(line1) <= 1: continue self.pinnumbers.append(int(line1[0])) - if len(line1) == 2: # dedicated - self.dedicated_cells.append(line1) - else: - for i in range(1, len(line1)): - # XXX HORRIBLE HACK!! - if line1[i].startswith('pwm'): - line1[i] = 'pwm%s_out' % line1[i][4:] - self.muxed_cells.append(line1) + # XXX TODO: dedicated pins in separate file + #if len(line1) == 2: # dedicated + # self.dedicated_cells.append(line1) + #else: + for i in range(1, len(line1)): + # XXX HORRIBLE HACK!! + if line1[i].startswith('pwm'): + line1[i] = 'pwm%s_out' % line1[i][4:] + self.muxed_cells.append(line1) self.pinnumbers = sorted(self.pinnumbers) self.upper_offset = self.lower_offset + \