[U-Boot] [PATCH 1/4] qong: Use generic function for configuring GPR register

Stefano Babic sbabic at denx.de
Thu Nov 10 14:19:28 CET 2011


On 11/09/2011 03:15 PM, Fabio Estevam wrote:
> Use generic function for configuring GPR register.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
> ---
>  board/davedenx/qong/qong.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/board/davedenx/qong/qong.c b/board/davedenx/qong/qong.c
> index 665aedf..c41f11d 100644
> --- a/board/davedenx/qong/qong.c
> +++ b/board/davedenx/qong/qong.c
> @@ -231,7 +231,7 @@ static void board_nand_setup(void)
>  
>  	mxc_setup_weimcs(3, &cs3);
>  
> -	__REG(IOMUXC_GPR) |= 1 << 13;
> +	mx31_set_gpr(MUX_SDCTL_CSD1_SEL, 1);
>  
>  	mx31_gpio_mux(IOMUX_MODE(MUX_CTL_NFC_WP, MUX_CTL_IN_GPIO));
>  	mx31_gpio_mux(IOMUX_MODE(MUX_CTL_NFC_CE, MUX_CTL_IN_GPIO));

Acked-by: Stefano Babic <sbabic at denx.de>

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