[U-Boot] [PATCH v3 1/3] Kirkwood: pre-requisite for SDIO driver support

Gérald Kerma geraker at gmail.com
Sun Nov 21 12:06:59 CET 2010


    pre-requisite for SDIO driver support for Marvell SoCs (Kirkwood)

Signed-off-by: Gérald Kerma <geraker at gmail.com>
---
 arch/arm/include/asm/arch-kirkwood/kirkwood.h |    1 +
 include/configs/mv-common.h                   |    9 +++++++++
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/arch/arm/include/asm/arch-kirkwood/kirkwood.h
b/arch/arm/include/asm/arch-kirkwood/kirkwood.h
index 0104418..4f9fe7e 100644
--- a/arch/arm/include/asm/arch-kirkwood/kirkwood.h
+++ b/arch/arm/include/asm/arch-kirkwood/kirkwood.h
@@ -60,6 +60,7 @@
 #define KW_EGIGA0_BASE			(KW_REGISTER(0x72000))
 #define KW_EGIGA1_BASE			(KW_REGISTER(0x76000))
 #define KW_SATA_BASE			(KW_REGISTER(0x80000))
+#define KW_SDIO_BASE			(KW_REGISTER(0x90000))

 /* Kirkwood Sata controller has two ports */
 #define KW_SATA_PORT0_OFFSET		0x2000
diff --git a/include/configs/mv-common.h b/include/configs/mv-common.h
index de0121e..62ef0b9 100644
--- a/include/configs/mv-common.h
+++ b/include/configs/mv-common.h
@@ -63,6 +63,7 @@

 #define CONFIG_I2C_MVTWSI_BASE	KW_TWSI_BASE
 #define MV_UART0_BASE		KW_UART0_BASE
+#define MV_SDIO_BASE		KW_SDIO_BASE
 #define MV_SATA_BASE		KW_SATA_BASE
 #define MV_SATA_PORT0_OFFSET	KW_SATA_PORT0_OFFSET
 #define MV_SATA_PORT1_OFFSET	KW_SATA_PORT1_OFFSET
@@ -182,6 +183,14 @@
 #endif /* CONFIG_CMD_NET */

 /*
+ * SDIO/MMC Card Configuration
+ */
+#ifdef CONFIG_CMD_MMC
+#define CONFIG_MMC
+#define CONFIG_MV_SDIO
+#endif /* CONFIG_CMD_MMC */
+
+/*
  * USB/EHCI
  */
 #ifdef CONFIG_CMD_USB
-- 
1.7.1

-- 
G.K


More information about the U-Boot mailing list