script: Correct MMC related warnings in u-boot and kernel
authorNikhil Devshatwar <nikhil.nd@ti.com>
Thu, 11 Feb 2016 11:05:33 +0000 (16:35 +0530)
committerNikhil Devshatwar <nikhil.nd@ti.com>
Thu, 11 Feb 2016 11:05:35 +0000 (16:35 +0530)
Even though MMC padconf is allowed and recommended in kernel DTS, we still
might need to program the pad and delays in the u-boot.
Remove the un-nececessary warnings for MMC module.
Only warn if non MMC module is enabled in kernel, but skip nothing.

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
iodelay-autogen.py

index 29f6f6ae1f8bde2ce4a61b887b6acbf08fdfdaf2..21bec3a993b386739d1da39e56fe3b36ba24b52b 100755 (executable)
@@ -446,9 +446,6 @@ def uboot_format_pad_regs(padconf, per_padconf):
        for i in padconf:
                (pad_name, pin_name, addr, val, mode, delayinfo) = i
 
-               if (re.match("MMC.*", pin_name) != None):
-                       print "WARN: Skipping MMC padconf in uboot"
-
                muxmode = val & 0xf
                (method, data) = delayinfo
                if (method == "LEGACY"):
@@ -473,10 +470,6 @@ def uboot_format_delay_regs(delayconf, per_delayconf):
        for i in delayconf:
                (pad_name, pin_name, regname, del_offset, man_name, adel, gdel) = i
 
-               if (re.match("MMC.*", pin_name) != None):
-                       print "WARN: Skipping MMC delayconf in uboot"
-                       continue
-
                entry = (del_offset, adel, gdel, regname, pin_name, man_name)
                manual_del.append(entry)
 
@@ -494,8 +487,7 @@ def linux_format_pad_regs(padconf, per_padconf):
        for per in per_padconf:
 
                if (re.match("MMC.*", per) == None):
-                       print "ERR: Only MMC padconf is recommended in kernel"
-                       continue
+                       print "WARN: Only MMC padconf is recommended in kernel"
 
                # Get the mode from the first entry
                (pad_name, pin_name, addr, val, mode, delayinfo) = per_padconf[per][0]
@@ -535,8 +527,7 @@ def linux_format_delay_regs(delayconf, per_delayconf):
        for per in per_delayconf.keys():
 
                if (re.match("MMC.*", per) == None):
-                       print "ERR: Only MMC delayconf is recommended in kernel"
-                       continue
+                       print "WARN: Only MMC delayconf is recommended in kernel"
 
                # Get the mode from the first entry
                (pad_name, pin_name, regname, del_offset, mode, adel, gdel) = per_delayconf[per][0]