aboutsummaryrefslogtreecommitdiff
path: root/include/dwmmc.h
diff options
context:
space:
mode:
authorLey Foon Tan2018-12-20 17:55:41 +0800
committerMarek Vasut2019-02-18 13:00:54 +0100
commit7997599e2df64c8fb450bc03f2d618adbde05f6e (patch)
tree6316acdb2f882c04b7f079424a28b061db6ff585 /include/dwmmc.h
parent473f55676a65e068ba82096f54cd1e9f16ecc006 (diff)
mmc: dwmmc: Poll for iDMAC TX/RX interrupt
Poll for iDMAC TX/RX interrupt before disable DMA. This to prevent disable DMA before data is transfer completed. Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Diffstat (limited to 'include/dwmmc.h')
-rw-r--r--include/dwmmc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/dwmmc.h b/include/dwmmc.h
index 4ceda5e43c5..f06720dc0d9 100644
--- a/include/dwmmc.h
+++ b/include/dwmmc.h
@@ -130,6 +130,13 @@
/* UHS register */
#define DWMCI_DDR_MODE (1 << 16)
+/* Internal IDMAC interrupt defines */
+#define DWMCI_IDINTEN_RI BIT(1)
+#define DWMCI_IDINTEN_TI BIT(0)
+
+#define DWMCI_IDINTEN_MASK (DWMCI_IDINTEN_TI | \
+ DWMCI_IDINTEN_RI)
+
/* quirks */
#define DWMCI_QUIRK_DISABLE_SMU (1 << 0)