Lines Matching full:rpm
17 #include <linux/soc/qcom/smd-rpm.h>
20 #include <dt-bindings/mfd/qcom-rpm.h>
132 struct qcom_smd_rpm *rpm; member
142 struct qcom_rpm *rpm; member
163 ret = qcom_rpm_smd_write(r->rpm, QCOM_SMD_RPM_ACTIVE_STATE, in clk_smd_rpm_handoff()
168 ret = qcom_rpm_smd_write(r->rpm, QCOM_SMD_RPM_SLEEP_STATE, in clk_smd_rpm_handoff()
186 return qcom_rpm_smd_write(r->rpm, QCOM_SMD_RPM_ACTIVE_STATE, in clk_smd_rpm_set_rate_active()
200 return qcom_rpm_smd_write(r->rpm, QCOM_SMD_RPM_SLEEP_STATE, in clk_smd_rpm_set_rate_sleep()
231 /* Don't send requests to the RPM if the rate has not been set. */ in clk_smd_rpm_prepare()
347 * RPM handles rate rounding and we don't have a way to in clk_smd_rpm_round_rate()
360 * RPM handles rate rounding and we don't have a way to in clk_smd_rpm_recalc_rate()
367 static int clk_smd_rpm_enable_scaling(struct qcom_smd_rpm *rpm) in clk_smd_rpm_enable_scaling() argument
376 ret = qcom_rpm_smd_write(rpm, QCOM_SMD_RPM_SLEEP_STATE, in clk_smd_rpm_enable_scaling()
380 pr_err("RPM clock scaling (sleep set) not enabled!\n"); in clk_smd_rpm_enable_scaling()
384 ret = qcom_rpm_smd_write(rpm, QCOM_SMD_RPM_ACTIVE_STATE, in clk_smd_rpm_enable_scaling()
388 pr_err("RPM clock scaling (active set) not enabled!\n"); in clk_smd_rpm_enable_scaling()
392 pr_debug("%s: RPM clock scaling is enabled\n", __func__); in clk_smd_rpm_enable_scaling()
1096 struct qcom_smd_rpm *rpm; in rpm_smd_clk_probe() local
1100 rpm = dev_get_drvdata(pdev->dev.parent); in rpm_smd_clk_probe()
1101 if (!rpm) { in rpm_smd_clk_probe()
1102 dev_err(&pdev->dev, "Unable to retrieve handle to RPM\n"); in rpm_smd_clk_probe()
1124 rpm_smd_clks[i]->rpm = rpm; in rpm_smd_clk_probe()
1131 ret = clk_smd_rpm_enable_scaling(rpm); in rpm_smd_clk_probe()
1157 .name = "qcom-clk-smd-rpm",
1175 MODULE_DESCRIPTION("Qualcomm RPM over SMD Clock Controller Driver");
1177 MODULE_ALIAS("platform:qcom-clk-smd-rpm");