Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1636446

[PATCH 4/6] cpufreq: mediatek: Add support of cpufreq to MT2701/MT7623 SoC

From <sean.wang@mediatek.com>
Newsgroups linux.kernel
Subject [PATCH 4/6] cpufreq: mediatek: Add support of cpufreq to MT2701/MT7623 SoC
Date 2017-05-05 17:30 +0200
Message-ID <tDNl8-3vE-23@gated-at.bofh.it> (permalink)
References <tDNl7-3vE-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Sean Wang <sean.wang@mediatek.com>

MT2701/MT7623 is an 32-bit ARMv7 based quad-core (4 * Cortex-A7) with
single cluster and this hardware is also compatible with the existing
driver through enabling CPU frequency feature with operating-points-v2
bindings.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
---
 drivers/cpufreq/Kconfig.arm      | 4 ++--
 drivers/cpufreq/mt8173-cpufreq.c | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm
index 74ed7e9..68b387a 100644
--- a/drivers/cpufreq/Kconfig.arm
+++ b/drivers/cpufreq/Kconfig.arm
@@ -90,11 +90,11 @@ config ARM_KIRKWOOD_CPUFREQ
 config ARM_MT8173_CPUFREQ
 	tristate "Mediatek MT8173 CPUFreq support"
 	depends on ARCH_MEDIATEK && REGULATOR
-	depends on ARM64 || (ARM_CPU_TOPOLOGY && COMPILE_TEST)
+	depends on (ARM || ARM64) || (ARM_CPU_TOPOLOGY && COMPILE_TEST)
 	depends on !CPU_THERMAL || THERMAL
 	select PM_OPP
 	help
-	  This adds the CPUFreq driver support for Mediatek MT8173 SoC.
+	  This adds the CPUFreq driver support for Mediatek SoCs.
 
 config ARM_OMAP2PLUS_CPUFREQ
 	bool "TI OMAP2+"
diff --git a/drivers/cpufreq/mt8173-cpufreq.c b/drivers/cpufreq/mt8173-cpufreq.c
index fd1886f..481ec77 100644
--- a/drivers/cpufreq/mt8173-cpufreq.c
+++ b/drivers/cpufreq/mt8173-cpufreq.c
@@ -575,6 +575,8 @@ static struct platform_driver mt8173_cpufreq_platdrv = {
 
 /* List of machines supported by this driver */
 static const struct of_device_id mt8173_cpufreq_machines[] __initconst = {
+	{ .compatible = "mediatek,mt2701", },
+	{ .compatible = "mediatek,mt7623", },
 	{ .compatible = "mediatek,mt817x", },
 	{ .compatible = "mediatek,mt8173", },
 	{ .compatible = "mediatek,mt8176", },
-- 
2.7.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/6] some fixups for Mediatek cpufreq driver <sean.wang@mediatek.com> - 2017-05-05 17:30 +0200
  [PATCH 1/6] clk: mediatek: add missing cpu mux causing Mediatek cpufreq can't work <sean.wang@mediatek.com> - 2017-05-05 17:30 +0200
  [PATCH 3/6] clk: mediatek: export cpu multiplexer clock for MT8173 SoCs <sean.wang@mediatek.com> - 2017-05-05 17:30 +0200
  [PATCH 4/6] cpufreq: mediatek: Add support of cpufreq to MT2701/MT7623 SoC <sean.wang@mediatek.com> - 2017-05-05 17:30 +0200
    Re: [PATCH 4/6] cpufreq: mediatek: Add support of cpufreq to  MT2701/MT7623 SoC Jean Delvare <jdelvare@suse.de> - 2017-05-06 10:10 +0200
      Re: [PATCH 4/6] cpufreq: mediatek: Add support of cpufreq to  MT2701/MT7623 SoC Sean Wang <sean.wang@mediatek.com> - 2017-05-08 08:10 +0200
  [PATCH 6/6] dt-bindings: cpufreq: enhance Mediatek cpufreq dt-binding document <sean.wang@mediatek.com> - 2017-05-05 17:30 +0200
    Re: [PATCH 6/6] dt-bindings: cpufreq: enhance Mediatek cpufreq  dt-binding document Viresh Kumar <viresh.kumar@linaro.org> - 2017-05-08 06:30 +0200
      Re: [PATCH 6/6] dt-bindings: cpufreq: enhance Mediatek cpufreq  dt-binding document Sean Wang <sean.wang@mediatek.com> - 2017-05-08 09:00 +0200
        Re: [PATCH 6/6] dt-bindings: cpufreq: enhance Mediatek cpufreq  dt-binding document Viresh Kumar <viresh.kumar@linaro.org> - 2017-05-08 09:10 +0200
  [PATCH 5/6] dt-bindings: cpufreq: move Mediatek cpufreq dt-bindings document to proper place <sean.wang@mediatek.com> - 2017-05-05 17:30 +0200
    Re: [PATCH 5/6] dt-bindings: cpufreq: move Mediatek cpufreq  dt-bindings document to proper place Viresh Kumar <viresh.kumar@linaro.org> - 2017-05-08 06:20 +0200
      Re: [PATCH 5/6] dt-bindings: cpufreq: move Mediatek cpufreq  dt-bindings document to proper place Sean Wang <sean.wang@mediatek.com> - 2017-05-08 08:30 +0200
        Re: [PATCH 5/6] dt-bindings: cpufreq: move Mediatek cpufreq  dt-bindings document to proper place Viresh Kumar <viresh.kumar@linaro.org> - 2017-05-08 09:10 +0200

csiph-web