diff options
Diffstat (limited to 'recipes-bsp/u-boot/u-boot-v2012.04.01/0039-mx53loco-Remove-unneeded-gpio_set_value.patch')
-rw-r--r-- | recipes-bsp/u-boot/u-boot-v2012.04.01/0039-mx53loco-Remove-unneeded-gpio_set_value.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/u-boot-v2012.04.01/0039-mx53loco-Remove-unneeded-gpio_set_value.patch b/recipes-bsp/u-boot/u-boot-v2012.04.01/0039-mx53loco-Remove-unneeded-gpio_set_value.patch new file mode 100644 index 0000000..3c91353 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-v2012.04.01/0039-mx53loco-Remove-unneeded-gpio_set_value.patch @@ -0,0 +1,36 @@ +From ab4f8321498b5d9605d2e1754fcba5752f1b9d2b Mon Sep 17 00:00:00 2001 +From: Fabio Estevam <fabio.estevam@freescale.com> +Date: Mon, 7 May 2012 10:42:57 +0000 +Subject: [PATCH 39/56] mx53loco: Remove unneeded gpio_set_value() + +There is no need to set the VBUS power enable to 0 first and then to 1. + +Set it to 1 in the gpio_direction_output() function. + +While at it, use the standard naming convention for the GPIO comment. + +Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> +--- + board/freescale/mx53loco/mx53loco.c | 5 ++--- + 1 file changed, 2 insertions(+), 3 deletions(-) + +diff --git a/board/freescale/mx53loco/mx53loco.c b/board/freescale/mx53loco/mx53loco.c +index fb13895..dec966d 100644 +--- a/board/freescale/mx53loco/mx53loco.c ++++ b/board/freescale/mx53loco/mx53loco.c +@@ -97,10 +97,9 @@ static void setup_iomux_uart(void) + #ifdef CONFIG_USB_EHCI_MX5 + int board_ehci_hcd_init(int port) + { +- /* request VBUS power enable pin, GPIO[8}, gpio7 */ ++ /* request VBUS power enable pin, GPIO7_8 */ + mxc_request_iomux(MX53_PIN_ATA_DA_2, IOMUX_CONFIG_ALT1); +- gpio_direction_output(IOMUX_TO_GPIO(MX53_PIN_ATA_DA_2), 0); +- gpio_set_value(IOMUX_TO_GPIO(MX53_PIN_ATA_DA_2), 1); ++ gpio_direction_output(IOMUX_TO_GPIO(MX53_PIN_ATA_DA_2), 1); + return 0; + } + #endif +-- +1.7.10 + |