diff options
author | Ley Foon Tan | 2018-12-20 17:55:41 +0800 |
---|---|---|
committer | Marek Vasut | 2019-02-18 13:00:54 +0100 |
commit | 7997599e2df64c8fb450bc03f2d618adbde05f6e (patch) | |
tree | 6316acdb2f882c04b7f079424a28b061db6ff585 /include/dwmmc.h | |
parent | 473f55676a65e068ba82096f54cd1e9f16ecc006 (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.h | 7 |
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) |