X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Fmmc%2Fhost%2Fdw_mmc-pltfm.c;h=527b2c8d86fdf259676880e2b0d04ab832406c6f;hb=1a6580fba7f23faeadd14fa09c7533f00e169748;hp=41c27b74b003e5c742cdfcc3d57ba2a002836791;hpb=e2e091fd99400029120eeefde062fdf417ab37f6;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/mmc/host/dw_mmc-pltfm.c b/drivers/mmc/host/dw_mmc-pltfm.c old mode 100644 new mode 100755 index 41c27b74b003..527b2c8d86fd --- a/drivers/mmc/host/dw_mmc-pltfm.c +++ b/drivers/mmc/host/dw_mmc-pltfm.c @@ -19,10 +19,11 @@ #include #include #include -#include +#include #include -#include "dw_mmc.h" +#include "rk_sdmmc.h" + int dw_mci_pltfm_register(struct platform_device *pdev, const struct dw_mci_drv_data *drv_data) @@ -48,6 +49,9 @@ int dw_mci_pltfm_register(struct platform_device *pdev, host->irq_flags = 0; host->pdata = pdev->dev.platform_data; host->regs = devm_ioremap_resource(&pdev->dev, regs); + #ifdef CONFIG_MMC_DW_EDMAC + host->phy_regs = (void *)(regs->start); + #endif if (IS_ERR(host->regs)) return PTR_ERR(host->regs);