]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mx6qsabrelite: No need to set the direction for GPIO3_23 again
authorFabio Estevam <festevam@gmail.com>
Wed, 11 Apr 2012 10:22:24 +0000 (10:22 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 15 May 2012 06:31:31 +0000 (08:31 +0200)
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>
Acked-by: Dirk Behme <dirk.behme@googlemail.com>
board/freescale/mx6qsabrelite/mx6qsabrelite.c

index fda3e41a030ee56e2fc844c72131d5a1dcf2a52a..b4d9519747c95a6bbe6f8a90fb3e02b7a1623d95 100644 (file)
@@ -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));
 }