summaryrefslogtreecommitdiff
path: root/drivers/phy/samsung/phy-exynosautov9-ufs.c
diff options
context:
space:
mode:
authorAlim Akhtar <alim.akhtar@samsung.com>2022-06-10 16:11:15 +0530
committerVinod Koul <vkoul@kernel.org>2022-06-16 17:18:37 -0700
commite313216b52813a9c51cad0bf406b60d3248b268f (patch)
tree4db90b1b76b7ca595ee34d5ee7fbfab50901cfef /drivers/phy/samsung/phy-exynosautov9-ufs.c
parent63f4676dd879d72f33e5f1ea1bc166411af2cbea (diff)
downloadlwn-e313216b52813a9c51cad0bf406b60d3248b268f.tar.gz
lwn-e313216b52813a9c51cad0bf406b60d3248b268f.zip
phy: samsung-ufs: move cdr offset to drvdata
Move CDR lock offset to drv data so that it can be extended for other SoCs which are having CDR lock at different register offset. Signed-off-by: Bharat Uppal <bharat.uppal@samsung.com> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com> Reviewed-by: Chanho Park <chanho61.park@samsung.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20220610104119.66401-3-alim.akhtar@samsung.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy/samsung/phy-exynosautov9-ufs.c')
-rw-r--r--drivers/phy/samsung/phy-exynosautov9-ufs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/phy/samsung/phy-exynosautov9-ufs.c b/drivers/phy/samsung/phy-exynosautov9-ufs.c
index fa4d2983eec6..2b256070d657 100644
--- a/drivers/phy/samsung/phy-exynosautov9-ufs.c
+++ b/drivers/phy/samsung/phy-exynosautov9-ufs.c
@@ -10,6 +10,7 @@
#define EXYNOSAUTOV9_EMBEDDED_COMBO_PHY_CTRL 0x728
#define EXYNOSAUTOV9_EMBEDDED_COMBO_PHY_CTRL_MASK 0x1
#define EXYNOSAUTOV9_EMBEDDED_COMBO_PHY_CTRL_EN BIT(0)
+#define EXYNOSAUTOV9_EMBEDDED_COMBO_PHY_CDR_LOCK_STATUS 0x5e
#define PHY_TRSV_REG_CFG_AUTOV9(o, v, d) \
PHY_TRSV_REG_CFG_OFFSET(o, v, d, 0x50)
@@ -64,4 +65,5 @@ const struct samsung_ufs_phy_drvdata exynosautov9_ufs_phy = {
.en = EXYNOSAUTOV9_EMBEDDED_COMBO_PHY_CTRL_EN,
},
.has_symbol_clk = 0,
+ .cdr_lock_status_offset = EXYNOSAUTOV9_EMBEDDED_COMBO_PHY_CDR_LOCK_STATUS,
};