Merge tag 'objtool-core-2020-08-03' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / drivers / scsi / ufs / ufs-mediatek.h
index fccdd97..5bbd3e9 100644 (file)
 #define VS_SAVEPOWERCONTROL         0xD0A6
 #define VS_UNIPROPOWERDOWNCONTROL   0xD0A8
 
+/*
+ * Vendor specific link state
+ */
+enum {
+       VS_LINK_DISABLED            = 0,
+       VS_LINK_DOWN                = 1,
+       VS_LINK_UP                  = 2,
+       VS_LINK_HIBERN8             = 3,
+       VS_LINK_LOST                = 4,
+       VS_LINK_CFG                 = 5,
+};
+
 /*
  * SiP commands
  */
@@ -79,7 +91,10 @@ enum {
 struct ufs_mtk_host {
        struct ufs_hba *hba;
        struct phy *mphy;
+       bool unipro_lpm;
        bool ref_clk_enabled;
+       u16 ref_clk_ungating_wait_us;
+       u16 ref_clk_gating_wait_us;
 };
 
 #endif /* !_UFS_MEDIATEK_H */