[U-Boot] [PATCH] MX: Set a common gpio.h for all i.MX

Marek Vasut marek.vasut at gmail.com
Sun Aug 19 01:01:05 CEST 2012


Dear Fabio Estevam,

> Hi Stefano,
> 
> On Sat, Aug 18, 2012 at 12:26 PM, Stefano Babic <sbabic at denx.de> 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


More information about the U-Boot mailing list