diff options
author | Naveen Kumar Gaddipati <naveen.gaddipati@stericsson.com> | 2011-04-14 17:25:24 +0530 |
---|---|---|
committer | Preetham-rao K <preetham.rao@stericsson.com> | 2011-04-27 15:00:18 +0200 |
commit | 241ae20c3c028ebb721298ed930d2ff32e7b7116 (patch) | |
tree | e928de8a48b802dddee1f045cdd3b312820547ad /arch | |
parent | fe163cf479afddb166ba38cdc2d238129f19c98b (diff) |
mach-ux500: sdi0: Enable DMA mode for MMC
Enable DMA mode in platform data for EMMC driver
in U4500.
ST-Ericsson Id: ER 335354
Signed-off-by: Naveen Kumar Gaddipati <naveen.gaddipati@stericsson.com>
Change-Id: I82293d9365f42d08912773446ad11d165e87b12c
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/21728
Reviewed-by: Preetham-rao K <preetham.rao@stericsson.com>
Tested-by: Preetham-rao K <preetham.rao@stericsson.com>
Reviewed-by: QATEST
Reviewed-by: Ulf HANSSON <ulf.hansson@stericsson.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-ux500/board-u5500-sdi.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/board-u5500-sdi.c b/arch/arm/mach-ux500/board-u5500-sdi.c index a000be22d61..dfeeab42da4 100644 --- a/arch/arm/mach-ux500/board-u5500-sdi.c +++ b/arch/arm/mach-ux500/board-u5500-sdi.c @@ -74,6 +74,11 @@ static struct mmci_platform_data u5500_sdi0_data = { MMC_CAP_DISABLE, .gpio_cd = -1, .gpio_wp = -1, +#ifdef CONFIG_STE_DMA40 + .dma_filter = stedma40_filter, + .dma_rx_param = &sdi0_dma_cfg_rx, + .dma_tx_param = &sdi0_dma_cfg_tx, +#endif }; static void u5500_sdi1_vdd_handler(struct device *dev, unsigned int vdd, @@ -106,6 +111,11 @@ static struct mmci_platform_data u5500_sdi1_data = { .gpio_cd = GPIO_SDMMC_CD, .gpio_wp = -1, .cd_invert = true, +#ifdef CONFIG_STE_DMA40 + .dma_filter = stedma40_filter, + .dma_rx_param = &sdi1_dma_cfg_rx, + .dma_tx_param = &sdi1_dma_cfg_tx, +#endif }; static void sdi1_configure(void) { @@ -135,6 +145,8 @@ static int __init u5500_mmc_init(void) db5500_add_sdi0(&u5500_sdi0_data); sdi1_configure(); db5500_add_sdi1(&u5500_sdi1_data); + + return 0; } fs_initcall(u5500_mmc_init); |