From mboxrd@z Thu Jan 1 00:00:00 1970 From: stefano babic Date: Sun, 19 Aug 2012 09:46:45 +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: <503099E5.5090109@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 Am 19/08/2012 00:59, schrieb 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. Right, agree, fix in V2. Regards, Stefano -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================