fix(iomux): Fix port signal length (given mux size non-power of 2)
[pinmux.git] / src / spec / base.py
index 372099c49d5b952cd072afb2037b8a97f2be31d3..c8fa2b09d650b1b7cfdb499bfe711a3ebaf5848b 100644 (file)
@@ -18,7 +18,7 @@ class PinSpec(Pinouts):
         bankspec = OrderedDict()
         self.offs = 0
         pkeys = self.pinbanks.keys()
-        print self.pinbanks
+        print (self.pinbanks)
         for kn in pkeys:
             bankspec[kn] = self.offs
             self.offs += self.pinbanks[kn]
@@ -37,9 +37,10 @@ class PinSpec(Pinouts):
 
         self.scenarios.append((name, needed, eint, pwm, descriptions))
 
-    def write(self, pyf, of, pinmap):
+    def pywrite(self, pyf, pinmap):
+        return python_dict_fns(pyf, pinmap, self, self.function_names)
 
-        fns = python_dict_fns(pyf, pinmap, self, self.function_names)
+    def write(self, of):
 
         of.write("""# Pinouts (PinMux)
 auto-generated by [[pinouts.py]]
@@ -75,6 +76,9 @@ auto-generated by [[pinouts.py]]
         of.write("""# Reference Datasheets
 
 datasheets and pinout links
+* <https://ftp.libre-soc.org/STULPI01BTBR.en.CD00201527.pdf>
+* <https://ftp.libre-soc.org/3300db.pdf>
+* <https://ftp.libre-soc.org/1912111437_Realtek-Semicon-RTL8211F-CG_C187932.pdf>
 
 * <http://datasheets.chipdb.org/AMD/8018x/80186/amd-80186.pdf>
 * <http://hands.com/~lkcl/eoma/shenzen/frida/FRD144A2701.pdf>