public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Thierry Reding <thierry.reding@avionic-design.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 5/7] tegra: Use funcmux for MMC on tamonten
Date: Tue, 10 Jan 2012 08:31:27 +0100	[thread overview]
Message-ID: <20120110073127.GA27693@avionic-0098.mockup.avionic-design.de> (raw)
In-Reply-To: <1326149613-7304-6-git-send-email-sjg@chromium.org>

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

Tested on Plutux and Medcom.

Acked-by: Thierry Reding <thierry.reding@avionic-design.de>
Tested-by: Thierry Reding <thierry.reding@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>

  reply	other threads:[~2012-01-10  7:31 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-09 22:53 [U-Boot] [PATCH 0/7] tegra: Enhance funcmux to support I2C and MMC Simon Glass
2012-01-09 22:53 ` [U-Boot] [PATCH 1/7] tegra: Adjust funcmux config test to permit expansion Simon Glass
2012-01-09 22:53 ` [U-Boot] [PATCH 2/7] tegra: Add I2C support to funcmux Simon Glass
2012-01-09 22:53 ` [U-Boot] [PATCH 3/7] tegra: Enhance funcmux to support options Simon Glass
2012-01-09 22:53 ` [U-Boot] [PATCH 4/7] tegra: Add SDMMC support to funcmux Simon Glass
2012-01-09 22:53 ` [U-Boot] [PATCH 5/7] tegra: Use funcmux for MMC on tamonten Simon Glass
2012-01-10  7:31   ` Thierry Reding [this message]
2012-01-11 21:54     ` Simon Glass
2012-01-09 22:53 ` [U-Boot] [PATCH 6/7] tegra: Use funcmux for MMC on harmony Simon Glass
2012-01-09 22:53 ` [U-Boot] [PATCH 7/7] tegra: Use funcmux for MMC on seaboard Simon Glass
2012-01-09 23:11 ` [U-Boot] [PATCH 0/7] tegra: Enhance funcmux to support I2C and MMC Stephen Warren
2012-01-09 23:36   ` Simon Glass
2012-01-09 23:46     ` Stephen Warren
2012-01-11 22:41       ` Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120110073127.GA27693@avionic-0098.mockup.avionic-design.de \
    --to=thierry.reding@avionic-design.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox