[PATCH 1/4] ARM: dts: Add support for OMAP4 Variscite OM44 family

Tony Lindgren tony at atomide.com
Fri Apr 18 15:44:23 PDT 2014


* Joachim Eastwood <manabian at gmail.com> [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



More information about the linux-arm-kernel mailing list