]> Git Repo - linux.git/commitdiff
cpufreq: remove tango driver
authorArnd Bergmann <[email protected]>
Wed, 20 Jan 2021 13:16:44 +0000 (14:16 +0100)
committerViresh Kumar <[email protected]>
Thu, 21 Jan 2021 04:04:46 +0000 (09:34 +0530)
The tango platform is getting removed, so the driver is no
longer needed.

Cc: Marc Gonzalez <[email protected]>
Cc: Mans Rullgard <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
[ Viresh: Update cpufreq-dt-platdev.c as well ]
Signed-off-by: Viresh Kumar <[email protected]>
drivers/cpufreq/Kconfig.arm
drivers/cpufreq/Makefile
drivers/cpufreq/cpufreq-dt-platdev.c
drivers/cpufreq/tango-cpufreq.c [deleted file]

index 1f73fa75b1a0519a6b76e5825e5f187b94d46fa6..e65e0a43be6449b655e2126ce133a786c1554a02 100644 (file)
@@ -289,11 +289,6 @@ config ARM_STI_CPUFREQ
          this config option if you wish to add CPUFreq support for STi based
          SoCs.
 
-config ARM_TANGO_CPUFREQ
-       bool
-       depends on CPUFREQ_DT && ARCH_TANGO
-       default y
-
 config ARM_TEGRA20_CPUFREQ
        tristate "Tegra20/30 CPUFreq support"
        depends on ARCH_TEGRA && CPUFREQ_DT
index f1b7e3dd6e5daf38c249f15ec2aeb2baa636369c..1ab9b1536304c9269d7776b65f21fc3bb9b5de8c 100644 (file)
@@ -79,7 +79,6 @@ obj-$(CONFIG_ARM_SCPI_CPUFREQ)                += scpi-cpufreq.o
 obj-$(CONFIG_ARM_SPEAR_CPUFREQ)                += spear-cpufreq.o
 obj-$(CONFIG_ARM_STI_CPUFREQ)          += sti-cpufreq.o
 obj-$(CONFIG_ARM_ALLWINNER_SUN50I_CPUFREQ_NVMEM) += sun50i-cpufreq-nvmem.o
-obj-$(CONFIG_ARM_TANGO_CPUFREQ)                += tango-cpufreq.o
 obj-$(CONFIG_ARM_TEGRA20_CPUFREQ)      += tegra20-cpufreq.o
 obj-$(CONFIG_ARM_TEGRA124_CPUFREQ)     += tegra124-cpufreq.o
 obj-$(CONFIG_ARM_TEGRA186_CPUFREQ)     += tegra186-cpufreq.o
index bd2db0188cbb09f36ab1c67b29a582677e5f0bf4..3ba2f716fe9783c829e99b6bff345098ba0b477f 100644 (file)
@@ -141,8 +141,6 @@ static const struct of_device_id blacklist[] __initconst = {
        { .compatible = "st,stih410", },
        { .compatible = "st,stih418", },
 
-       { .compatible = "sigma,tango4", },
-
        { .compatible = "ti,am33xx", },
        { .compatible = "ti,am43", },
        { .compatible = "ti,dra7", },
diff --git a/drivers/cpufreq/tango-cpufreq.c b/drivers/cpufreq/tango-cpufreq.c
deleted file mode 100644 (file)
index 89a7f86..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-#include <linux/of.h>
-#include <linux/cpu.h>
-#include <linux/clk.h>
-#include <linux/pm_opp.h>
-#include <linux/platform_device.h>
-
-static const struct of_device_id machines[] __initconst = {
-       { .compatible = "sigma,tango4" },
-       { /* sentinel */ }
-};
-
-static int __init tango_cpufreq_init(void)
-{
-       struct device *cpu_dev = get_cpu_device(0);
-       unsigned long max_freq;
-       struct clk *cpu_clk;
-       void *res;
-
-       if (!of_match_node(machines, of_root))
-               return -ENODEV;
-
-       cpu_clk = clk_get(cpu_dev, NULL);
-       if (IS_ERR(cpu_clk))
-               return -ENODEV;
-
-       max_freq = clk_get_rate(cpu_clk);
-
-       dev_pm_opp_add(cpu_dev, max_freq / 1, 0);
-       dev_pm_opp_add(cpu_dev, max_freq / 2, 0);
-       dev_pm_opp_add(cpu_dev, max_freq / 3, 0);
-       dev_pm_opp_add(cpu_dev, max_freq / 5, 0);
-       dev_pm_opp_add(cpu_dev, max_freq / 9, 0);
-
-       res = platform_device_register_data(NULL, "cpufreq-dt", -1, NULL, 0);
-
-       return PTR_ERR_OR_ZERO(res);
-}
-device_initcall(tango_cpufreq_init);
This page took 0.059159 seconds and 4 git commands to generate.