cpufreq: tegra124: extend to support Tegra210
authorJoseph Lo <josephl@nvidia.com>
Fri, 4 Jan 2019 03:06:54 +0000 (11:06 +0800)
committerThierry Reding <treding@nvidia.com>
Wed, 6 Feb 2019 13:31:05 +0000 (14:31 +0100)
Tegra210 uses the same methodology as Tegra124 for CPUFreq controlling
that based on DFLL clock. So extending this driver to support Tegra210.

Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: linux-pm@vger.kernel.org
Signed-off-by: Joseph Lo <josephl@nvidia.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/cpufreq/tegra124-cpufreq.c

index a1bfde0..ba3795e 100644 (file)
@@ -144,7 +144,8 @@ static int __init tegra_cpufreq_init(void)
        int ret;
        struct platform_device *pdev;
 
-       if (!of_machine_is_compatible("nvidia,tegra124"))
+       if (!(of_machine_is_compatible("nvidia,tegra124") ||
+               of_machine_is_compatible("nvidia,tegra210")))
                return -ENODEV;
 
        /*