[U-Boot] [PATCH 5/7] tegra: Use funcmux for MMC on tamonten

Thierry Reding thierry.reding at avionic-design.de
Tue Jan 10 08:31:27 CET 2012


* Simon Glass wrote:
> Use the new funcmux_select() feature to set up the MMC pin mux.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>

Tested on Plutux and Medcom.

Acked-by: Thierry Reding <thierry.reding at avionic-design.de>
Tested-by: Thierry Reding <thierry.reding at avionic-design.de>

> ---
>  board/avionic-design/common/tamonten.c |   10 ++--------
>  1 files changed, 2 insertions(+), 8 deletions(-)
> 
> diff --git a/board/avionic-design/common/tamonten.c b/board/avionic-design/common/tamonten.c
> index 97e59fb..c5fd988 100644
> --- a/board/avionic-design/common/tamonten.c
> +++ b/board/avionic-design/common/tamonten.c
> @@ -32,6 +32,7 @@
>  #include <asm/arch/sys_proto.h>
>  #include <asm/arch/clk_rst.h>
>  #include <asm/arch/clock.h>
> +#include <asm/arch/funcmux.h>
>  #include <asm/arch/pinmux.h>
>  #include <asm/arch/uart.h>
>  #include <asm/arch/mmc.h>
> @@ -63,14 +64,7 @@ int timer_init(void)
>   */
>  static void pin_mux_mmc(void)
>  {
> -	/* SDMMC4: config 3, x8 on 2nd set of pins */
> -	pinmux_set_func(PINGRP_ATB, PMUX_FUNC_SDIO4);
> -	pinmux_set_func(PINGRP_GMA, PMUX_FUNC_SDIO4);
> -	pinmux_set_func(PINGRP_GME, PMUX_FUNC_SDIO4);
> -
> -	pinmux_tristate_disable(PINGRP_ATB);
> -	pinmux_tristate_disable(PINGRP_GMA);
> -	pinmux_tristate_disable(PINGRP_GME);
> +	funcmux_select(PERIPH_ID_SDMMC4, 1, FUNCMUXO_SDMMC_8BIT);
>  }
>  #endif

>  
> -- 
> 1.7.3.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120110/e5bc4e4f/attachment.pgp>


More information about the U-Boot mailing list