diff options
author | Georgi Djakov <georgi.djakov@linaro.org> | 2017-12-11 13:13:04 +0200 |
---|---|---|
committer | Georgi Djakov <georgi.djakov@linaro.org> | 2018-10-26 16:31:47 +0300 |
commit | dd30db1f41d9eacc3d997d49a4de2eaf2b12c15c (patch) | |
tree | 181687cf1c465ee8385136a9d9173429daef6f68 | |
parent | a829274df85fc48e02c80226436d1f6e713c729a (diff) |
scsi: ufs-qcom: Use the interconnect API
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
-rw-r--r-- | drivers/scsi/ufs/ufs-qcom.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c index 75ee5906b966..56ff3a3c4377 100644 --- a/drivers/scsi/ufs/ufs-qcom.c +++ b/drivers/scsi/ufs/ufs-qcom.c @@ -12,6 +12,7 @@ * */ +#include <linux/interconnect.h> #include <linux/time.h> #include <linux/of.h> #include <linux/platform_device.h> @@ -888,6 +889,7 @@ static int ufs_qcom_bus_register(struct ufs_qcom_host *host) } #endif /* CONFIG_MSM_BUS_SCALING */ + static void ufs_qcom_dev_ref_clk_ctrl(struct ufs_qcom_host *host, bool enable) { if (host->dev_ref_clk_ctrl_mmio && @@ -1674,6 +1676,17 @@ static int ufs_qcom_probe(struct platform_device *pdev) { int err; struct device *dev = &pdev->dev; + struct icc_path *path = of_icc_get(dev, "ddr"); + struct icc_path *path_cfg = of_icc_get(dev, "cfg"); + + if (IS_ERR(path)) + return PTR_ERR(path); + + if (IS_ERR(path_cfg)) + return PTR_ERR(path_cfg); + + icc_set(path, 4096000, 0); + icc_set(path_cfg, 1000, 0); /* Perform generic probe */ err = ufshcd_pltfrm_init(pdev, &ufs_hba_qcom_vops); |