Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6754f556 authored by Mark Langsdorf's avatar Mark Langsdorf Committed by Rafael J. Wysocki
Browse files

cpufreq / highbank: add support for highbank cpufreq



Highbank processors depend on the external ECME to perform voltage
management based on a requested frequency. Communication between the
A9 cores and the ECME happens over the pl320 IPC channel.

Signed-off-by: default avatarMark Langsdorf <mark.langsdorf@calxeda.com>
Reviewed-by: default avatarShawn Guo <shawn.guo@linaro.org>
Reviewed-by: default avatarMike Turquette <mturquette@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 30058677
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -37,6 +37,16 @@
			next-level-cache = <&L2>;
			clocks = <&a9pll>;
			clock-names = "cpu";
			operating-points = <
				/* kHz    ignored */
				 1300000  1000000
				 1200000  1000000
				 1100000  1000000
				  800000  1000000
				  400000  1000000
				  200000  1000000
			>;
			clock-latency = <100000>;
		};

		cpu@901 {
+2 −0
Original line number Diff line number Diff line
config ARCH_HIGHBANK
	bool "Calxeda ECX-1000/2000 (Highbank/Midway)" if ARCH_MULTI_V7
	select ARCH_HAS_CPUFREQ
	select ARCH_HAS_OPP
	select ARCH_WANT_OPTIONAL_GPIOLIB
	select ARM_AMBA
	select ARM_GIC
+15 −0
Original line number Diff line number Diff line
@@ -83,3 +83,18 @@ config ARM_SPEAR_CPUFREQ
	default y
	help
	  This adds the CPUFreq driver support for SPEAr SOCs.

config ARM_HIGHBANK_CPUFREQ
	tristate "Calxeda Highbank-based"
	depends on ARCH_HIGHBANK
	select CPU_FREQ_TABLE
	select GENERIC_CPUFREQ_CPU0
	select PM_OPP
	select REGULATOR

	default m
	help
	  This adds the CPUFreq driver for Calxeda Highbank SoC
	  based boards.

	  If in doubt, say N.
+2 −1
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@ obj-$(CONFIG_ARM_EXYNOS4X12_CPUFREQ) += exynos4x12-cpufreq.o
obj-$(CONFIG_ARM_EXYNOS5250_CPUFREQ)	+= exynos5250-cpufreq.o
obj-$(CONFIG_ARM_OMAP2PLUS_CPUFREQ)	+= omap-cpufreq.o
obj-$(CONFIG_ARM_SPEAR_CPUFREQ)		+= spear-cpufreq.o
obj-$(CONFIG_ARM_HIGHBANK_CPUFREQ)	+= highbank-cpufreq.o

##################################################################################
# PowerPC platform drivers
+5 −1
Original line number Diff line number Diff line
@@ -182,7 +182,11 @@ static int cpu0_cpufreq_driver_init(void)
	struct device_node *np;
	int ret;

	np = of_find_node_by_path("/cpus/cpu@0");
	for_each_child_of_node(of_find_node_by_path("/cpus"), np) {
		if (of_get_property(np, "operating-points", NULL))
			break;
	}

	if (!np) {
		pr_err("failed to find cpu0 node\n");
		return -ENOENT;
Loading