mmc: rk_sdmmc: add platform hook for special pm ops during deepsleep
[firefly-linux-kernel-4.4.55.git] / include / linux / mmc / rk_mmc.h
index e6a081d2906b264ab99b631ad8423094c83b3987..aa17cc7469e94692b91d4b232f04ec7e469c52c8 100755 (executable)
@@ -218,6 +218,8 @@ struct dw_mci {
 
        u32     cid;
        struct regmap   *grf;
+       u32 *regs_buffer;
+       const struct dw_mci_rst_ops *rst_ops;
 };
 
 /* DMA ops for Internal/External DMAC interface */
@@ -231,6 +233,12 @@ struct dw_mci_dma_ops {
        void (*exit)(struct dw_mci *host);
 };
 
+/* Platform rst hook for pm ops before suspend and after resume */
+struct dw_mci_rst_ops {
+       void (*pre_suspend)(struct dw_mci *host);
+       void (*post_resume)(struct dw_mci *host);
+};
+
 /* IP Quirks/flags. */
 /* DTO fix for command transmission with IDMAC configured */
 #define DW_MCI_QUIRK_IDMAC_DTO                 BIT(0)