aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ufs/ufs-qcom.h
diff options
context:
space:
mode:
authorEvan Green <evgreen@chromium.org>2019-03-21 10:17:58 -0700
committerKishon Vijay Abraham I <kishon@ti.com>2019-04-17 14:12:56 +0530
commit12fd5f250db2ad6b292d3a28bc3c0011fe30511f (patch)
tree348d702324f45050f726083a60a88135eff1e3d7 /drivers/scsi/ufs/ufs-qcom.h
parentdt-bindings: phy: qcom-ufs: Add resets property (diff)
downloadlinux-dev-12fd5f250db2ad6b292d3a28bc3c0011fe30511f.tar.xz
linux-dev-12fd5f250db2ad6b292d3a28bc3c0011fe30511f.zip
scsi: ufs: qcom: Expose the reset controller for PHY
Expose a reset controller that the phy will later use to control its own PHY reset in the UFS controller. This will enable the combining of PHY init functionality into a single function. Signed-off-by: Evan Green <evgreen@chromium.org> Reviewed-by: Stephen Boyd <swboyd@chromium.org> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/scsi/ufs/ufs-qcom.h')
-rw-r--r--drivers/scsi/ufs/ufs-qcom.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/ufs/ufs-qcom.h b/drivers/scsi/ufs/ufs-qcom.h
index c114826316eb..68a880185752 100644
--- a/drivers/scsi/ufs/ufs-qcom.h
+++ b/drivers/scsi/ufs/ufs-qcom.h
@@ -14,6 +14,8 @@
#ifndef UFS_QCOM_H_
#define UFS_QCOM_H_
+#include <linux/reset-controller.h>
+
#define MAX_UFS_QCOM_HOSTS 1
#define MAX_U32 (~(u32)0)
#define MPHY_TX_FSM_STATE 0x41
@@ -237,6 +239,8 @@ struct ufs_qcom_host {
/* Bitmask for enabling debug prints */
u32 dbg_print_en;
struct ufs_qcom_testbus testbus;
+
+ struct reset_controller_dev rcdev;
};
static inline u32