[PATCH 0/2] cpufreq: add cpufreq driver for Mediatek MT8173 SoC
From: pi-cheng.chen
Date: Fri Jan 09 2015 - 04:55:19 EST
MT8173 is a ARMv8 based SoC with 2 CA53 + 2 CA57 cores and 2 clusters.
All CPUs in a single cluster share the same power and clock domain. This
series tries to add cpufreq driver support for MT8173 SoC by using DT
based cpufreq driver.
Currently the DT based cpufreq driver is missing some way to check which
CPUs share clocks. In the 1st patch, CPU clock/power domain information is
added to the platform_data of cpufreq-dt so that cpufreq-dt driver could
check which CPUs share clock/power.
When doing DVFS on MT8173 SoC, 2 rules should be followed to make sure the
SoC works properly:
1. When doing frequency scaling of CPUs, the clock source should be switched
to another PLL, then switched back to the orignal until it's stable.
2. When doing voltage scaling of CA57 cluster, Vproc and Vsram need to be
controlled concurrently and 2 limitations should be followed:
a. Vsram > Vproc
b. Vsram - Vproc < 200 mV
To address these needs, we use cpufreq-dt but do voltage scaling in the
cpufreq notifier.
pi-cheng.chen (2):
cpufreq-dt: check CPU clock/power domain during initializing
cpufreq: add cpufreq driver for Mediatek MT8173 SoC
drivers/cpufreq/Kconfig.arm | 6 +
drivers/cpufreq/Makefile | 1 +
drivers/cpufreq/cpufreq-dt.c | 15 ++
drivers/cpufreq/mt8173-cpufreq.c | 459 +++++++++++++++++++++++++++++++++++++++
include/linux/cpufreq-dt.h | 6 +
5 files changed, 487 insertions(+)
create mode 100644 drivers/cpufreq/mt8173-cpufreq.c
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/