script: Fix the gpio script for bit > 9
[glsdk/iodelay-config.git] / iodelay-autogen.py
index 6a94b324676d35ed96ffdfcb45623167bf41ef9f..d6a8701f91a3a63ae3dd1b2be4c767ed6be36aba 100755 (executable)
@@ -336,7 +336,7 @@ def pad_dump_gpio(padconf, per_padconf):
 
                offset = addr - 0x4a002000
                gpio_name = xml_pad_get_pin(offset, 14)
-               matchlist = re.match("GPIO(.)_(.)", gpio_name)
+               matchlist = re.match("GPIO(.)_(.*)", gpio_name)
                if (matchlist == None):
                        print "ERR: No GPIO for pad %s" % pad_name
                        continue