]> git.sur5r.net Git - u-boot/commitdiff
qong: Use mx31_set_gpr to setup USBH2 pins
authorFabio Estevam <festevam@gmail.com>
Thu, 20 Oct 2011 16:01:30 +0000 (16:01 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 3 Nov 2011 21:56:18 +0000 (22:56 +0100)
Instead of writing directly to the GPR register, use mx31_set_gpr to setup USBH2 pins.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
board/davedenx/qong/qong.c

index 5b2830ce498409c81da5a706026610dcabfefbb3..3f6e0c282426883651bb5aaafd160089203591f0 100644 (file)
@@ -143,7 +143,7 @@ int board_early_init_f(void)
        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;