[U-Boot] [PATCH] mpc83xx: set gpio level before direction

Kim Phillips kim.phillips at freescale.com
Fri Aug 29 21:18:17 CEST 2008


On Fri, 29 Aug 2008 20:37:25 +0200
Peter Korsgaard <jacmet at sunsite.dk> wrote:

> Set gpio level register before direction register to inhibit
> glitches on high level output pins.
> 
> Dir and data gets cleared at powerup, so high level output lines see
> a short low pulse between setting the direction and level registers.
> 
> Issue was seen on a new board with the nReset line of the NOR flash
> connected to a GPIO. Setting the direction register puts the NOR flash
> in reset so the next instruction to set the level cannot get executed.
> 
> Signed-off-by: Peter Korsgaard <jacmet at sunsite.dk>
> ---

Hi Peter,

this is a duplicate of:

http://www.nabble.com/-U-Boot---PATCH--MPC83XX%3A-Fix-GPIO-configuration-to19119329.html#a19119329

so I'll merge your better description and s-o-b to that one if you
don't mind.

Kim


More information about the U-Boot mailing list