From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH 1/4] ARM: dts: Add support for OMAP4 Variscite OM44 family Date: Fri, 18 Apr 2014 15:44:23 -0700 Message-ID: <20140418224423.GN21823@atomide.com> References: <1397833849-22396-1-git-send-email-manabian@gmail.com> <1397833849-22396-2-git-send-email-manabian@gmail.com> <20140418155721.GC5354@atomide.com> <20140418172907.GK5354@atomide.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mho-03-ewr.mailhop.org ([204.13.248.66]:26718 "EHLO mho-01-ewr.mailhop.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751841AbaDRWo3 (ORCPT ); Fri, 18 Apr 2014 18:44:29 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Joachim Eastwood Cc: Benoit Cousson , "linux-arm-kernel@lists.infradead.org" , Tomi Valkeinen , linux-omap@vger.kernel.org * Joachim Eastwood [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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: tony@atomide.com (Tony Lindgren) Date: Fri, 18 Apr 2014 15:44:23 -0700 Subject: [PATCH 1/4] ARM: dts: Add support for OMAP4 Variscite OM44 family In-Reply-To: References: <1397833849-22396-1-git-send-email-manabian@gmail.com> <1397833849-22396-2-git-send-email-manabian@gmail.com> <20140418155721.GC5354@atomide.com> <20140418172907.GK5354@atomide.com> Message-ID: <20140418224423.GN21823@atomide.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org * Joachim Eastwood [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