diff --git a/iodelay-autogen.py b/iodelay-autogen.py
index f345702c7b6ca6c0c498646094e9ff1f5500c683..d7720716f74df70560d76f57ccd830c90b010576 100755 (executable)
--- a/iodelay-autogen.py
+++ b/iodelay-autogen.py
# 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
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"