All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/3] Marvell: dkb: add mmc support
Date: Mon, 3 Oct 2011 12:44:23 +0200	[thread overview]
Message-ID: <201110031244.23333.marek.vasut@gmail.com> (raw)
In-Reply-To: <1317632545-12410-3-git-send-email-leiwen@marvell.com>

On Monday, October 03, 2011 11:02:24 AM Lei Wen wrote:
> Signed-off-by: Lei Wen <leiwen@marvell.com>
> ---
>  board/Marvell/dkb/dkb.c |   37 +++++++++++++++++++++++++++++++++++++
>  include/configs/dkb.h   |    1 +
>  2 files changed, 38 insertions(+), 0 deletions(-)

Dear Lei Wen,

[...]

> @@ -56,3 +74,22 @@ int board_init(void)
>  	gd->bd->bi_boot_params = panth_sdram_base(0) + 0x100;
>  	return 0;
>  }
> +
> +#ifdef CONFIG_GENERIC_MMC
> +int board_mmc_init(bd_t *bd)
> +{
> +	ulong mmc_base_address[CONFIG_SYS_MMC_NUM] = CONFIG_SYS_MMC_BASE;
> +	u8 i, data;
> +	data = 0xd;

Magic value ?

> +	i2c_write(0x34, 0x28, 1, &data, 1);

More magic values ?

> +
> +	for (i = 0; i < CONFIG_SYS_MMC_NUM; i++) {
> +		if (mv_sdh_init(mmc_base_address[i], 0, 0,
> +				SDHCI_QUIRK_32BIT_DMA_ADDR))
> +			return 1;
> +	}
> +	*(unsigned int *)0xd4282854 = 0x1b;
> +	*(unsigned int *)0xd42828e0 = 0x1b;

Magic value and not using writel() ?

> +	return 0;
> +}
> +#endif
> diff --git a/include/configs/dkb.h b/include/configs/dkb.h
> index 3d27c58..fb02d92 100644
> --- a/include/configs/dkb.h
> +++ b/include/configs/dkb.h
> @@ -47,6 +47,7 @@
>  #define CONFIG_SYS_NO_FLASH		/* Declare no flash (NOR/SPI) */
>  #include <config_cmd_default.h>
>  #define CONFIG_CMD_I2C
> +#define CONFIG_CMD_MMC
>  #undef CONFIG_CMD_NET
>  #undef CONFIG_CMD_NFS
>  /*

This should be in a separate patch maybe ?

Cheers

  reply	other threads:[~2011-10-03 10:44 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-03  9:02 [U-Boot] [PATCH 0/3] add mmc support for pantheon platform Lei Wen
2011-10-03  9:02 ` [U-Boot] [PATCH 1/3] ARM: pantheon: add mmc definition Lei Wen
2011-10-03  9:02 ` [U-Boot] [PATCH 2/3] Marvell: dkb: add mmc support Lei Wen
2011-10-03 10:44   ` Marek Vasut [this message]
2011-10-03 11:43     ` Lei Wen
2011-10-03  9:02 ` [U-Boot] [PATCH 3/3] mmc: mv_sdhci: fix 8bus width access for 88SV331xV5 Lei Wen
2011-10-04  6:33 ` [U-Boot] [PATCH V2 0/4] add mmc support for pantheon platform Lei Wen
2011-10-24 17:20   ` Albert ARIBAUD
2011-10-25  1:21     ` Lei Wen
2011-10-25  6:15       ` Albert ARIBAUD
2011-10-25  6:25         ` Albert ARIBAUD
2011-10-31 14:57           ` Lei Wen
2011-10-25  7:38       ` Wolfgang Denk
2011-10-25  9:02         ` Lei Wen
2011-10-25 18:51           ` Wolfgang Denk
2011-10-26  2:19             ` Lei Wen
2011-10-04  6:33 ` [U-Boot] [PATCH V2 1/4] ARM: pantheon: add mmc definition Lei Wen
2011-10-04  6:33 ` [U-Boot] [PATCH V2 2/4] Marvell: dkb: add mmc support Lei Wen
2011-10-04  6:33 ` [U-Boot] [PATCH V2 3/4] dkb: make mmc command as default enabled Lei Wen
2011-10-04  6:33 ` [U-Boot] [PATCH V2 4/4] mmc: mv_sdhci: fix 8bus width access for 88SV331xV5 Lei Wen

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=201110031244.23333.marek.vasut@gmail.com \
    --to=marek.vasut@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.