Re: [PATCH v2 1/3] cpufreq: Add Tegra186 cpufreq driver

From: Mikko Perttunen
Date: Tue Apr 11 2017 - 02:37:46 EST


On 04/11/2017 09:35 AM, Viresh Kumar wrote:
On 04-04-17, 16:43, Mikko Perttunen wrote:
Add a new cpufreq driver for Tegra186 (and likely later).
The CPUs are organized into two clusters, Denver and A57,
with two and four cores respectively. CPU frequency can be
adjusted by writing the desired rate divisor and a voltage
hint to a special per-core register.

The frequency of each core can be set individually; however,
this is just a hint as all CPUs in a cluster will run at
the maximum rate of non-idle CPUs in the cluster.

Signed-off-by: Mikko Perttunen <mperttunen@xxxxxxxxxx>
---
v2:
- Many cosmetic / restructuring changes
- Only one aperture read from DT now, with a new
structure containing the offset among other details
per cluster.
- Don't enable the driver by default.

drivers/cpufreq/Kconfig.arm | 6 +
drivers/cpufreq/Makefile | 1 +
drivers/cpufreq/tegra186-cpufreq.c | 275 +++++++++++++++++++++++++++++++++++++
3 files changed, 282 insertions(+)
create mode 100644 drivers/cpufreq/tegra186-cpufreq.c

For all three patches.

Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>


Thanks!

Mikko