[U-Boot] [PATCH] gpio: mxc_gpio: Fix gpio_get_value() when the GPIO is an output

Benoît Thébaudeau benoit.thebaudeau at advansee.com
Mon Sep 30 13:08:04 CEST 2013


Hi Fabio,

On Monday, September 30, 2013 3:32:39 AM, Fabio Estevam wrote:
> On Sun, Sep 29, 2013 at 7:24 PM, Otavio Salvador
> <otavio at ossystems.com.br> wrote:
> 
> > I sent the patch to fix this adding the flag to the GPIO pins.
> >
> > I tested it and it works fine indeed. The patch is awaiting for
> > approval as it is a little big. The commitlog is below for reference:
> >
> >     mx6: Add IOMUX_CONFIG_SION flag to all GPIO pins
> 
> Ok, this fixes mx6, but other i.mx SoC would need the same fix as well,
> right?

Maybe not. The requirement for SION setting for the various pin functions
differs among i.MXs. E.g., SION is required for I²C on some i.MX (51 I think),
but not for all. So this should be checked for GPIO as well on a per-i.MX basis.

[...]

Best regards,
Benoît


More information about the U-Boot mailing list