diff options
author | Axe Yang <axe.yang@mediatek.com> | 2022-07-26 14:28:41 +0800 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2022-07-26 16:58:31 +0200 |
commit | 019e442bb0d5e7f25ada8eb4252e22e62d17a95e (patch) | |
tree | 7c6757688498fdf2a640ed3f042e74b6cfa3c75f /include/linux/mmc/sdio.h | |
parent | 035cc3951797df0e1e831f9fd71b7cda63e71705 (diff) | |
download | linux-stable-019e442bb0d5e7f25ada8eb4252e22e62d17a95e.tar.gz linux-stable-019e442bb0d5e7f25ada8eb4252e22e62d17a95e.tar.bz2 linux-stable-019e442bb0d5e7f25ada8eb4252e22e62d17a95e.zip |
mmc: core: Add support for SDIO wakeup interrupt
If wakeup-source flag is set in host dts node, parse EAI information
from SDIO CCCR interrupt externsion segment for in-band wakeup. If
async interrupt is supported by SDIO card then enable it and set
enable_async_irq flag in sdio_cccr structure to 1. The parse flow is
implemented in sdio_read_cccr().
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Axe Yang <axe.yang@mediatek.com>
Link: https://lore.kernel.org/r/20220726062842.18846-3-axe.yang@mediatek.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include/linux/mmc/sdio.h')
-rw-r--r-- | include/linux/mmc/sdio.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mmc/sdio.h b/include/linux/mmc/sdio.h index 2a05d1ac4f0e..1ef400f28642 100644 --- a/include/linux/mmc/sdio.h +++ b/include/linux/mmc/sdio.h @@ -159,6 +159,11 @@ #define SDIO_DTSx_SET_TYPE_A (1 << SDIO_DRIVE_DTSx_SHIFT) #define SDIO_DTSx_SET_TYPE_C (2 << SDIO_DRIVE_DTSx_SHIFT) #define SDIO_DTSx_SET_TYPE_D (3 << SDIO_DRIVE_DTSx_SHIFT) + +#define SDIO_CCCR_INTERRUPT_EXT 0x16 +#define SDIO_INTERRUPT_EXT_SAI (1 << 0) +#define SDIO_INTERRUPT_EXT_EAI (1 << 1) + /* * Function Basic Registers (FBR) */ |