diff options
-rw-r--r-- | drivers/mmc/host/dw_mmc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 0652690f2d66..b10e5e12b2ae 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c | |||
@@ -51,6 +51,11 @@ | |||
51 | #define DW_MCI_DMA_THRESHOLD 16 | 51 | #define DW_MCI_DMA_THRESHOLD 16 |
52 | 52 | ||
53 | #ifdef CONFIG_MMC_DW_IDMAC | 53 | #ifdef CONFIG_MMC_DW_IDMAC |
54 | #define IDMAC_INT_CLR (SDMMC_IDMAC_INT_AI | SDMMC_IDMAC_INT_NI | \ | ||
55 | SDMMC_IDMAC_INT_CES | SDMMC_IDMAC_INT_DU | \ | ||
56 | SDMMC_IDMAC_INT_FBE | SDMMC_IDMAC_INT_RI | \ | ||
57 | SDMMC_IDMAC_INT_TI) | ||
58 | |||
54 | struct idmac_desc { | 59 | struct idmac_desc { |
55 | u32 des0; /* Control Descriptor */ | 60 | u32 des0; /* Control Descriptor */ |
56 | #define IDMAC_DES0_DIC BIT(1) | 61 | #define IDMAC_DES0_DIC BIT(1) |
@@ -433,6 +438,7 @@ static int dw_mci_idmac_init(struct dw_mci *host) | |||
433 | mci_writel(host, BMOD, SDMMC_IDMAC_SWRESET); | 438 | mci_writel(host, BMOD, SDMMC_IDMAC_SWRESET); |
434 | 439 | ||
435 | /* Mask out interrupts - get Tx & Rx complete only */ | 440 | /* Mask out interrupts - get Tx & Rx complete only */ |
441 | mci_writel(host, IDSTS, IDMAC_INT_CLR); | ||
436 | mci_writel(host, IDINTEN, SDMMC_IDMAC_INT_NI | SDMMC_IDMAC_INT_RI | | 442 | mci_writel(host, IDINTEN, SDMMC_IDMAC_INT_NI | SDMMC_IDMAC_INT_RI | |
437 | SDMMC_IDMAC_INT_TI); | 443 | SDMMC_IDMAC_INT_TI); |
438 | 444 | ||