[U-Boot] [PATCH v3 1/3] Kirkwood: pre-requisite for SDIO driver support
Prafulla Wadaskar
prafulla at marvell.com
Sun Nov 21 16:36:29 CET 2010
> -----Original Message-----
> From: Gérald Kerma [mailto:geraker at gmail.com]
> Sent: Sunday, November 21, 2010 4:37 PM
> To: u-boot at 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 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
Please check if you can define CONFIG_GENERIC_MMC here and reduce code in driver file.
Regards..
Prafulla . .
More information about the U-Boot
mailing list