From patchwork Fri Dec 16 16:35:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [V2,3/4] arm/imx6q: register arm_clk as cpu to clkdev From: Mark Langsdorf X-Patchwork-Id: 131866 Message-Id: <21672683C5A3814BB4DB938EBE482DE40A1AE8EF74@IAD2MBX09.mex02.mlsrvr.com> To: Richard Zhao , "linux-arm-kernel@lists.infradead.org" , "cpufreq@vger.kernel.org" , "devicetree-discuss@lists.ozlabs.org" Cc: "linaro-dev@lists.linaro.org" , "patches@linaro.org" , "eric.miao@linaro.org" , "linux@arm.linux.org.uk" , "kernel@pengutronix.de" , "davej@redhat.com" , "shawn.guo@linaro.org" Date: Fri, 16 Dec 2011 11:35:39 -0500 Is there a portable/generic approach for other drivers that may want to use arm-cpufreq.c? arm_clk is not normally defined for my SoC and I don't see an easy way to pull it in. --Mark Langsdorf Calxeda, Inc. diff --git a/arch/arm/mach-imx/clock-imx6q.c b/arch/arm/mach-imx/clock-imx6q.c index 039a7ab..72acbc2 100644 --- a/arch/arm/mach-imx/clock-imx6q.c +++ b/arch/arm/mach-imx/clock-imx6q.c @@ -1911,6 +1911,7 @@ static struct clk_lookup lookups[] = { _REGISTER_CLOCK(NULL, "gpmi_io_clk", gpmi_io_clk), _REGISTER_CLOCK(NULL, "usboh3_clk", usboh3_clk), _REGISTER_CLOCK(NULL, "sata_clk", sata_clk), + _REGISTER_CLOCK(NULL, "cpu", arm_clk), }; int imx6q_set_lpm(enum mxc_cpu_pwr_mode mode)