summaryrefslogtreecommitdiff
path: root/drivers/misc/cardreader/rtsx_pcr.h
diff options
context:
space:
mode:
authorRicky Wu <ricky_wu@realtek.com>2020-12-02 14:58:57 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-12-09 19:42:18 +0100
commit5b4258f6721f41b092c63f6ee71be76e9616718b (patch)
treed03baa1087a1555f7716c288ec1e3012cf12da11 /drivers/misc/cardreader/rtsx_pcr.h
parent121e9c6b5c4cad63e078f1fc5890f265521d2994 (diff)
misc: rtsx: rts5249 support runtime PM
rtsx_pcr: add callback functions to support runtime PM add delay_work to put device to D3 after idle over 10 sec rts5249: add extra init flow for rtd3 and set rtd3_en from config setting rtsx_pci_sdmmc: child device support autosuspend Signed-off-by: Ricky Wu <ricky_wu@realtek.com> Link: https://lore.kernel.org/r/20201202065857.19412-1-ricky_wu@realtek.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/cardreader/rtsx_pcr.h')
-rw-r--r--drivers/misc/cardreader/rtsx_pcr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/cardreader/rtsx_pcr.h b/drivers/misc/cardreader/rtsx_pcr.h
index fe5f4ca0f937..daf057c4eea6 100644
--- a/drivers/misc/cardreader/rtsx_pcr.h
+++ b/drivers/misc/cardreader/rtsx_pcr.h
@@ -90,6 +90,7 @@ static inline u8 map_sd_drive(int idx)
#define rtsx_check_mmc_support(reg) ((reg) & 0x10)
#define rtsx_reg_to_rtd3(reg) ((reg) & 0x02)
+#define rtsx_reg_to_rtd3_uhsii(reg) ((reg) & 0x04)
#define rtsx_reg_to_aspm(reg) (((reg) >> 28) & 0x03)
#define rtsx_reg_to_sd30_drive_sel_1v8(reg) (((reg) >> 26) & 0x03)
#define rtsx_reg_to_sd30_drive_sel_3v3(reg) (((reg) >> 5) & 0x03)