summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c760290)
raw | patch | inline | side by side (parent: c760290)
author | Nikhil Devshatwar <nikhil.nd@ti.com> | |
Thu, 19 Nov 2015 13:26:27 +0000 (18:56 +0530) | ||
committer | Nikhil Devshatwar <nikhil.nd@ti.com> | |
Thu, 19 Nov 2015 13:26:30 +0000 (18:56 +0530) |
If the module has virtual/manual modes availble, user is presented
with the menu and a mode needs to be selected.
For some of the modules, Data manual suggests to use LEGACY mode.
This is valid even if some virtual/manual modes are available.
Fix this with LEGACY option in menu, upon selection of which would
configure the pads without any virtual/manual delays.
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
with the menu and a mode needs to be selected.
For some of the modules, Data manual suggests to use LEGACY mode.
This is valid even if some virtual/manual modes are available.
Fix this with LEGACY option in menu, upon selection of which would
configure the pads without any virtual/manual delays.
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
iodelay-autogen.py | patch | blob | history |
diff --git a/iodelay-autogen.py b/iodelay-autogen.py
index 7f50fed8f5e69d074474b7a7d011d6e11cf102fa..bd477e2109c2acc495752e689ab2b958f810230d 100755 (executable)
--- a/iodelay-autogen.py
+++ b/iodelay-autogen.py
if (module in sel.keys()):
mode = sel[module]
- if (mode == "SKIP" or mode in modelist):
+ if (mode == "SKIP" or mode == "LEGACY" or mode in modelist):
return mode
else:
print("ERR: Invalid delaymode '%s' for module '%s'" % (mode, module))
print "MENU: Select delay mode for %s -> %s" % (pad, pin)
i = 0
print "MENU: %d: %s \t\t\t%s" % (i, "SKIP", "Skips this module for now")
+ i = 1
+ print "MENU: %d: %s \t\t%s" % (i, "LEGACY", "No external delay config (No virtual/manual needed)")
for mode in modelist:
i += 1
if (mode in modehelp):
if (choice == 0):
mode = "SKIP"
break
- elif (choice >=0 and choice <= len(modelist)):
- mode = modelist[choice - 1]
+ elif (choice == 1):
+ mode = "LEGACY"
+ break
+ elif (choice >=2 and choice <= len(modelist)):
+ mode = modelist[choice - 2]
break
print "ERROR: Invalid choice"
except ValueError: