* Joachim Eastwood <manabian@xxxxxxxxx> [140418 11:04]: > > > I did a check script when we split omap3 pinctrl core instance into > > two separate instance to deal with the large hole in the register > > space. Some parts of that might be usable for a generic conversion > > script too. The script I used is below for reference. > > I hacked up a short awk-script for the job. So I'll change to IOPAD > macro's in the next version. > > My script for reference :) > #!/bin/gawk -f > /omap4_pmx_core/ { pmx = "CORE" } > /omap4_pmx_wkup/ { pmx = "WKUP" } > /0x[0-9a-f]{1,3} \(PIN/ { > offset = sprintf("OMAP4_%s_IOPAD(0x%03x, ", pmx, strtonum($1) + 64) > sub(/0x[0-9a-f]{1,3} \(/, offset, $0) > print $0 > next > } > { print $0 } Cool script :) Tony -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html