]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/iodelay-config.git/blobdiff - iodelay-autogen.py
script: Add generate all modes helper
[glsdk/iodelay-config.git] / iodelay-autogen.py
index f345702c7b6ca6c0c498646094e9ff1f5500c683..d684602bb720ec52462c7451fb85fda5311ec92a 100755 (executable)
@@ -79,7 +79,7 @@ if (args.part == "dra74x" or args.part == "dra75x"):
 elif (args.part == "dra72x"):
        XML_PATH = "XMLFiles/DRA72x"
        PART = "DRA72x"
-       PCT_VERSION = "v1.0.6"
+       PCT_VERSION = "v1.0.7"
 
 pad_data_xml   = XML_PATH + "/CTRL_MODULE_CORE.xml"
 iod_data_xml   = XML_PATH + "/IODELAYCONFIG.xml"
@@ -385,11 +385,10 @@ def select_mode(pad, pin, module, virt, man, modehelp, sel):
 # It's possible to read the pad data using gpio datain registers
 # Dump the linux commands to read the gpio registers and read the pad data
 def pad_dump_gpio(padconf, per_padconf):
-       if(args.gpio == False):
-               return
-
-       print "# Read pad signals using GPIO DATA-IN registers"
+       print "###########################################"
+       print "# Read %s signals using GPIO DATA-IN registers" % args.module
        print "# Works only for the input signals"
+       print "###########################################"
        gpio_data_addrs = (0, 0x4ae10138, 0x48055138, 0x48057138, 0x48059138, 0x4805b138, 0x4805d138, 0x48051138, 0x48053138)
        for i in padconf:
                (pad_name, pin_name, addr, val, mode, delayinfo) = i
@@ -743,9 +742,12 @@ print "Total PAD registers: %d" % len(padconf)
 print "Total DELAY registers: %d" % len(delayconf)
 print ""
 
+if(args.gpio == True):
+       pad_dump_gpio(padconf, per_padconf)
+       exit()
+
 format_pad_regs(padconf, per_padconf)
 format_delay_regs(delayconf, per_delayconf)
-pad_dump_gpio(padconf, per_padconf)
 
 # Dump the final selection for reuse
 print "Selected modes for each peripheral module\n"