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

Stefano Babic sbabic at denx.de
Tue Oct 25 10:08:42 CEST 2011


On 10/21/2011 04:01 AM, Fabio Estevam wrote:
> 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;
>  

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================


More information about the U-Boot mailing list