1 From ab4f8321498b5d9605d2e1754fcba5752f1b9d2b Mon Sep 17 00:00:00 2001
2 From: Fabio Estevam <fabio.estevam@freescale.com>
3 Date: Mon, 7 May 2012 10:42:57 +0000
4 Subject: [PATCH 39/56] mx53loco: Remove unneeded gpio_set_value()
6 There is no need to set the VBUS power enable to 0 first and then to 1.
8 Set it to 1 in the gpio_direction_output() function.
10 While at it, use the standard naming convention for the GPIO comment.
12 Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
14 board/freescale/mx53loco/mx53loco.c | 5 ++---
15 1 file changed, 2 insertions(+), 3 deletions(-)
17 diff --git a/board/freescale/mx53loco/mx53loco.c b/board/freescale/mx53loco/mx53loco.c
18 index fb13895..dec966d 100644
19 --- a/board/freescale/mx53loco/mx53loco.c
20 +++ b/board/freescale/mx53loco/mx53loco.c
21 @@ -97,10 +97,9 @@ static void setup_iomux_uart(void)
22 #ifdef CONFIG_USB_EHCI_MX5
23 int board_ehci_hcd_init(int port)
25 - /* request VBUS power enable pin, GPIO[8}, gpio7 */
26 + /* request VBUS power enable pin, GPIO7_8 */
27 mxc_request_iomux(MX53_PIN_ATA_DA_2, IOMUX_CONFIG_ALT1);
28 - gpio_direction_output(IOMUX_TO_GPIO(MX53_PIN_ATA_DA_2), 0);
29 - gpio_set_value(IOMUX_TO_GPIO(MX53_PIN_ATA_DA_2), 1);
30 + gpio_direction_output(IOMUX_TO_GPIO(MX53_PIN_ATA_DA_2), 1);