[U-Boot] [PATCH 2/3] qong: Use mx31_set_gpr to setup USBH2 pins

Fabio Estevam festevam at gmail.com
Fri Oct 21 04:01:30 CEST 2011


Instead of writing directly to the GPR register, use mx31_set_gpr to setup USBH2 pins.

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

diff --git a/board/davedenx/qong/qong.c b/board/davedenx/qong/qong.c
index 5b2830c..de32fb5 100644
--- a/board/davedenx/qong/qong.c
+++ b/board/davedenx/qong/qong.c
@@ -142,8 +142,8 @@ int board_early_init_f(void)
 	mx31_set_pad(MX31_PIN_SCK3, H2_PAD_CFG);	/* USBH2_DATA5 */
 	mx31_set_pad(MX31_PIN_SRXD3, H2_PAD_CFG);	/* USBH2_DATA6 */
 	mx31_set_pad(MX31_PIN_STXD3, H2_PAD_CFG);	/* USBH2_DATA7 */
-
-	writel(readl((IOMUXC_BASE + 0x8)) | (1 << 11), IOMUXC_BASE + 0x8);
+
+	mx31_set_gpr(MUX_PGP_UH2, 1);
 
 	return 0;
 
-- 
1.7.1



More information about the U-Boot mailing list