summaryrefslogtreecommitdiff
path: root/drivers/clk/qcom
diff options
context:
space:
mode:
authorOdelu Kukatla <okukatla@codeaurora.org>2017-01-04 15:36:29 +0530
committerOdelu Kukatla <okukatla@codeaurora.org>2017-01-31 16:57:06 +0530
commitf68f0e758fa6ae42d1657826c3db0152c1795c17 (patch)
tree8766312ec9ed35a562a2587afb7f42f3a96527d7 /drivers/clk/qcom
parentea4719da1fbdb56ef368b725496c3acdb4dde51c (diff)
clk: qcom: Add support for cpu clock for sdm630
CPU clock frequencies are different for sdm630, so update the bootup frequency for perf cluster for sdm630. Change-Id: I9da19b0a09ec1c5c7960f9c2fadfe26a3b4c3015 Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
Diffstat (limited to 'drivers/clk/qcom')
-rw-r--r--drivers/clk/qcom/clk-cpu-osm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/clk/qcom/clk-cpu-osm.c b/drivers/clk/qcom/clk-cpu-osm.c
index 6d13adf7a6ee..e88d70f07a1c 100644
--- a/drivers/clk/qcom/clk-cpu-osm.c
+++ b/drivers/clk/qcom/clk-cpu-osm.c
@@ -3034,6 +3034,7 @@ static int clk_cpu_osm_driver_probe(struct platform_device *pdev)
{
int rc = 0, cpu, i;
int speedbin = 0, pvs_ver = 0;
+ bool is_sdm630 = 0;
u32 pte_efuse;
int num_clks = ARRAY_SIZE(osm_qcom_clk_hws);
struct clk *clk;
@@ -3306,6 +3307,13 @@ static int clk_cpu_osm_driver_probe(struct platform_device *pdev)
"Failed to enable clock for cpu %d\n", cpu);
}
+ is_sdm630 = of_device_is_compatible(pdev->dev.of_node,
+ "qcom,clk-cpu-osm-sdm630");
+ if (is_sdm630) {
+ pwrcl_boot_rate = 1382400000;
+ perfcl_boot_rate = 1670400000;
+ }
+
/* Set final boot rate */
rc = clk_set_rate(pwrcl_clk.hw.clk, pwrcl_boot_rate);
if (rc) {
@@ -3348,6 +3356,7 @@ exit:
static const struct of_device_id match_table[] = {
{ .compatible = "qcom,clk-cpu-osm" },
+ { .compatible = "qcom,clk-cpu-osm-sdm630" },
{}
};