diff options
author | Alison Wang <b18965@freescale.com> | 2012-07-26 15:55:09 +0800 |
---|---|---|
committer | Justin Waters <justin.waters@timesys.com> | 2012-09-12 16:49:44 -0400 |
commit | 982bc515fdc519abfcfcb3f3921f90528be3077e (patch) | |
tree | ff5087281ef28ca6efee00abc690e0e5d402bb33 /arch/arm | |
parent | 4573f0e4d46c09dfaf857d9c085cbdefe4a756c5 (diff) |
ENGR00212262-1: esdhc: add platform support for esdhc driver
Add platform support for esdhc driver.
Signed-off-by: Jason Jin <Jason.jin@freescale.com>
Diffstat (limited to 'arch/arm')
-rwxr-xr-x | arch/arm/plat-mxc/devices/platform-sdhci-esdhc-imx.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/devices/platform-sdhci-esdhc-imx.c b/arch/arm/plat-mxc/devices/platform-sdhci-esdhc-imx.c index 0829ff8999ae..efe9679fc814 100755 --- a/arch/arm/plat-mxc/devices/platform-sdhci-esdhc-imx.c +++ b/arch/arm/plat-mxc/devices/platform-sdhci-esdhc-imx.c @@ -99,6 +99,15 @@ imx6q_sdhci_usdhc_imx_data[] __initconst = { }; #endif /* ifdef CONFIG_SOC_IMX6Q */ +#ifdef CONFIG_SOC_MVFA5 +const struct imx_sdhci_esdhc_imx_data +mvf_sdhci_esdhc_imx_data[] __initconst = { +#define mvf_sdhci_esdhc_imx_data_entry(_id, _hwid) \ + imx_sdhci_esdhc_imx_data_entry(MVF, _id, _hwid) + mvf_sdhci_esdhc_imx_data_entry(1, 1), +}; +#endif + struct platform_device *__init imx_add_sdhci_esdhc_imx( const struct imx_sdhci_esdhc_imx_data *data, const struct esdhc_platform_data *pdata) @@ -106,7 +115,11 @@ struct platform_device *__init imx_add_sdhci_esdhc_imx( struct resource res[] = { { .start = data->iobase, +#ifdef CONFIG_SOC_MVFA5 + .end = data->iobase + SZ_4K - 1, +#else .end = data->iobase + SZ_16K - 1, +#endif .flags = IORESOURCE_MEM, }, { .start = data->irq, |