All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] mx6qsabrelite: No need to set the direction for GPIO3_23 again
@ 2012-04-11 20:22 Fabio Estevam
  2012-04-12 17:53 ` Dirk Behme
  2012-04-23  9:48 ` Stefano Babic
  0 siblings, 2 replies; 3+ messages in thread
From: Fabio Estevam @ 2012-04-11 20:22 UTC (permalink / raw)
  To: u-boot

There is a 'gpio_direction_output(87, 0);' call previously, so the GPIO direction is 
already established.

Use gpio_set_value() for changing the GPIO output then.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 board/freescale/mx6qsabrelite/mx6qsabrelite.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/board/freescale/mx6qsabrelite/mx6qsabrelite.c b/board/freescale/mx6qsabrelite/mx6qsabrelite.c
index 1d09a72..2155d87 100644
--- a/board/freescale/mx6qsabrelite/mx6qsabrelite.c
+++ b/board/freescale/mx6qsabrelite/mx6qsabrelite.c
@@ -135,7 +135,7 @@ static void setup_iomux_enet(void)
 
 	/* Need delay 10ms according to KSZ9021 spec */
 	udelay(1000 * 10);
-	gpio_direction_output(87, 1);  /* GPIO 3-23 */
+	gpio_set_value(87, 1);  /* GPIO 3-23 */
 
 	imx_iomux_v3_setup_multiple_pads(enet_pads2, ARRAY_SIZE(enet_pads2));
 }
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-04-23  9:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-11 20:22 [U-Boot] [PATCH] mx6qsabrelite: No need to set the direction for GPIO3_23 again Fabio Estevam
2012-04-12 17:53 ` Dirk Behme
2012-04-23  9:48 ` Stefano Babic

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.