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

login
register
mail settings
Submitter Gérald Kerma
Date Nov. 21, 2010, 11:06 a.m.
Message ID <4CE8FD53.5010705@gmail.com>
Download mbox | patch
Permalink /patch/72437/
State Rejected
Delegated to: Prafulla Wadaskar
Headers show

Comments

Gérald Kerma - Nov. 21, 2010, 11:06 a.m.
pre-requisite for SDIO driver support for Marvell SoCs (Kirkwood)

Signed-off-by: Gérald Kerma <geraker@gmail.com>
---
 arch/arm/include/asm/arch-kirkwood/kirkwood.h |    1 +
 include/configs/mv-common.h                   |    9 +++++++++
 2 files changed, 10 insertions(+), 0 deletions(-)
Prafulla Wadaskar - Nov. 21, 2010, 3:36 p.m.
> -----Original Message-----
> From: Gérald Kerma [mailto:geraker@gmail.com]
> Sent: Sunday, November 21, 2010 4:37 PM
> To: u-boot@lists.denx.de
> Cc: Prafulla Wadaskar; Ashish Karkare; Prabhanjan Sarnaik
> Subject: [PATCH v3 1/3] Kirkwood: pre-requisite for SDIO driver support
> 
> 
>     pre-requisite for SDIO driver support for Marvell SoCs (Kirkwood)
> 
> Signed-off-by: Gérald Kerma <geraker@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

Please check if you can define CONFIG_GENERIC_MMC here and reduce code in driver file.

Regards..
Prafulla . .

Patch

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