]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
PM / devfreq: tegra: Support Tegra30
authorDmitry Osipenko <digetx@gmail.com>
Wed, 1 May 2019 23:38:12 +0000 (02:38 +0300)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Sat, 24 Aug 2019 11:11:12 +0000 (20:11 +0900)
The devfreq driver can be used on Tegra30 without any code change and
it works perfectly fine, the default Tegra124 parameters are good enough
for Tegra30.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
[Modified by MyungJoo to depends on Tegra30/114/124/210 only]
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/Kconfig
drivers/devfreq/tegra-devfreq.c

index 7dd46d44579da11e469254ed6cd11bf1a07feedf..8f3f0ed17d854cd566b63833b388962f37527acc 100644 (file)
@@ -93,8 +93,10 @@ config ARM_EXYNOS_BUS_DEVFREQ
          This does not yet operate with optimal voltages.
 
 config ARM_TEGRA_DEVFREQ
-       tristate "Tegra DEVFREQ Driver"
-       depends on ARCH_TEGRA_124_SOC
+       tristate "NVIDIA Tegra30/114/124/210 DEVFREQ Driver"
+       depends on ARCH_TEGRA_3x_SOC || ARCH_TEGRA_114_SOC || \
+               ARCH_TEGRA_132_SOC || ARCH_TEGRA_124_SOC || \
+               ARCH_TEGRA_210_SOC
        select PM_OPP
        help
          This adds the DEVFREQ driver for the Tegra family of SoCs.
index 5cddf2199c4ed054a17a47bf58a76c61f0a3cd64..a6ba75f4106d80456e79b7d226875af24dff2254 100644 (file)
@@ -726,6 +726,7 @@ static int tegra_devfreq_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id tegra_devfreq_of_match[] = {
+       { .compatible = "nvidia,tegra30-actmon" },
        { .compatible = "nvidia,tegra124-actmon" },
        { },
 };