mxc: first set GPIO level, then switch direction to output
authorGuennadi Liakhovetski <lg@denx.de>
Thu, 12 Feb 2009 13:27:22 +0000 (14:27 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Fri, 13 Mar 2009 09:34:19 +0000 (10:34 +0100)
commit999981d943e626bff5d031de1bf06435afb10ced
tree1adfed0fa77e28214262fa987ec9be2cfe46b7c1
parent6bbdbf2f95771c0a2dbccc423b99b37fde9a5078
mxc: first set GPIO level, then switch direction to output

Make sure not to create spurious pulses on GPIOs, when configuring them as
output: first set required level, then switch direction.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/plat-mxc/gpio.c