All of lore.kernel.org
 help / color / mirror / Atom feed
From: DrEagle <dreagle@doukki.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 3/5] Add SDIO/MMC support for Sheevaplug board
Date: Sat, 22 Sep 2012 09:17:24 +0200	[thread overview]
Message-ID: <505D6604.1010801@doukki.net> (raw)
In-Reply-To: <505C3E5D.8000305@doukki.net>


Add SDIO/MMC support for Sheevaplug board

Signed-off-by: drEagle <dreagle@doukki.net>
---
 board/Marvell/sheevaplug/sheevaplug.c |   11 +++++++++++
 include/configs/sheevaplug.h          |   12 ++++++++++++
 2 files changed, 23 insertions(+)

diff --git a/board/Marvell/sheevaplug/sheevaplug.c b/board/Marvell/sheevaplug/sheevaplug.c
index 688d308..db64a05 100644
--- a/board/Marvell/sheevaplug/sheevaplug.c
+++ b/board/Marvell/sheevaplug/sheevaplug.c
@@ -28,6 +28,9 @@
 #include <asm/arch/kirkwood.h>
 #include <asm/arch/mpp.h>
 #include "sheevaplug.h"
+#ifdef CONFIG_MRVL_MMC
+#include <mrvl_mmc.h>
+#endif /* CONFIG_MRVL_MMC */
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -147,3 +150,11 @@ void reset_phy(void)
 	printf("88E1116 Initialized on %s\n", name);
 }
 #endif /* CONFIG_RESET_PHY_R */
+
+#ifdef CONFIG_MRVL_MMC
+int board_mmc_init(bd_t *bis)
+{
+	mrvl_mmc_initialize(bis);
+	return 0;
+}
+#endif /* CONFIG_MRVL_MMC */
diff --git a/include/configs/sheevaplug.h b/include/configs/sheevaplug.h
index 83dd8ff..7d710bf 100644
--- a/include/configs/sheevaplug.h
+++ b/include/configs/sheevaplug.h
@@ -47,6 +47,7 @@
 #define CONFIG_CMD_DHCP
 #define CONFIG_CMD_ENV
 #define CONFIG_CMD_MII
+#define CONFIG_CMD_MMC
 #define CONFIG_CMD_NAND
 #define CONFIG_CMD_PING
 #define CONFIG_CMD_USB
@@ -98,6 +99,17 @@
 #endif /* CONFIG_CMD_NET */
 
 /*
+ * SDIO/MMC Card Configuration
+ */
+#ifdef CONFIG_CMD_MMC
+#define CONFIG_MMC
+#define CONFIG_GENERIC_MMC
+#define CONFIG_MRVL_MMC
+#define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
+#endif /* CONFIG_CMD_MMC */
+
+
+/*
  * File system
  */
 #define CONFIG_CMD_EXT2
-- 
1.7.10.4

  parent reply	other threads:[~2012-09-22  7:17 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-21 10:15 [U-Boot] [PATCH 0/4] Marvell SDIO/MMC driver for Sheevaplug DrEagle
2012-09-22  7:15 ` [U-Boot] [PATCH v2 0/5] " DrEagle
2012-09-22  7:34   ` DrEagle
2012-09-24  8:50     ` Prafulla Wadaskar
2012-09-24  7:36   ` Prafulla Wadaskar
2012-09-24  8:48   ` Prafulla Wadaskar
2012-09-22  7:15 ` [U-Boot] [PATCH v2 1/5] Add Marvell SDIO/MMC driver for Kirkwood SoC DrEagle
2012-09-24  8:42   ` Prafulla Wadaskar
2012-09-22  7:16 ` [U-Boot] [PATCH v2 2/5] Add SDIO/MMC support for kirkwood SoC DrEagle
2012-09-24  8:44   ` Prafulla Wadaskar
2012-09-22  7:17 ` DrEagle [this message]
2012-09-24  8:46   ` [U-Boot] [PATCH v2 3/5] Add SDIO/MMC support for Sheevaplug board Prafulla Wadaskar
2012-09-22  7:18 ` [U-Boot] [PATCH v2 4/5] Fix env address " DrEagle
2012-09-24  8:46   ` Prafulla Wadaskar
2012-09-26  5:35     ` DrEagle
2012-09-26  7:33       ` Prafulla Wadaskar
2012-09-22  7:18 ` [U-Boot] [PATCH v2 5/5] Fix timeout in Marvell SDIO MMC driver DrEagle
2012-09-24  8:44   ` Prafulla Wadaskar

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=505D6604.1010801@doukki.net \
    --to=dreagle@doukki.net \
    --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.