From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Sun, 19 Aug 2012 01:01:05 +0200 Subject: [U-Boot] [PATCH] MX: Set a common gpio.h for all i.MX In-Reply-To: References: <1345303610-3964-1-git-send-email-sbabic@denx.de> Message-ID: <201208190101.05178.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Fabio Estevam, > Hi Stefano, > > On Sat, Aug 18, 2012 at 12:26 PM, Stefano Babic wrote: > > +#define GPIO_NUMBER(port, index) > > ((((port)-1)*32)+((index)&31)) > > What about calling this macro IMX_GPIO_NR instead? > > This way we can have the same macro name in U-boot and in the kernel. Agreed > Thanks, > > Fabio Estevam Best regards, Marek Vasut