[PATCH] add gpiolib support for mpc5200

Grant Likely grant.likely at secretlab.ca
Sat Apr 26 05:30:49 EST 2008


On Fri, Apr 25, 2008 at 12:51 PM, Sascha Hauer <s.hauer at pengutronix.de> wrote:
> On Fri, Apr 25, 2008 at 04:30:55PM +0100, Matt Sealey wrote:
>  > Can I make a suggestion for this chip support?
>  >
>  > On certain 5200 boards these devices are not usable since they are not
>  > connected. My concern is the Efika where we only have 2 wakeup and 1 simple
>  > GPIO available on the board and maybe a few others with a bit of tweaking
>  > and messing around.
>
>  This is probably true for most boards.
>  I haven't tested if this is true for all gpios, but the peripheral usage
>  settings seem to take precedence over the gpio settings. So at least you
>  can play with already for peripheral claimed gpios without bad things
>  happening. But ok, seems to be a bad idea to rely on this.

There must also be some level of assumption that the device tree data
is accurate.  If a pin is specified that is not enabled as a GPIO pin,
then it's not going to work.

Cheers,
g.


-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.



More information about the Linuxppc-dev mailing list