From patchwork Fri Dec 20 04:15:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Tobias X-Patchwork-Id: 3385721 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 024809F344 for ; Fri, 20 Dec 2013 04:16:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2A4C7206D0 for ; Fri, 20 Dec 2013 04:16:30 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B71B6206AD for ; Fri, 20 Dec 2013 04:16:28 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VtrVL-00051q-92; Fri, 20 Dec 2013 04:16:03 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VtrVI-0006M0-QU; Fri, 20 Dec 2013 04:16:00 +0000 Received: from mail-pb0-x22f.google.com ([2607:f8b0:400e:c01::22f]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VtrVE-0006LP-LU for linux-arm-kernel@lists.infradead.org; Fri, 20 Dec 2013 04:15:57 +0000 Received: by mail-pb0-f47.google.com with SMTP id um1so2049104pbc.6 for ; Thu, 19 Dec 2013 20:15:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=and28SNhcebwhjqCu2J3dVareV46jBaXwdfoDOFOSeY=; b=WF3QGcvrE6b2bfdqDwab7SDV/ptgPY4ziYFLWIomFncwKFi+bjGwLH55igdfaYIe6d LdmbjEkB3RYRMCW4JFANnc7nzLjrhE9JSwj2T7ctJs4K3oS83KPpbkjKN50FFU3CX0ju /jyn7lykoIAXbJRq1D/S6nwJPqLzdhCehZWH7tP5c5kYJyDBS2eodqnVa6oOFKgWsvyx j2smYSnp3Lvt5qo9w5yPUfp+0gjxhpNnRVjkpHEQL/ELRMozxh7SQexEwID738abRglA doFe079Rh+F/bHwhL+m0zUcm1UgrYDb3QXKYOe6zTjE7raA4NICT9TZbeG4m5j+4rERu pmNw== X-Received: by 10.68.211.1 with SMTP id my1mr6032921pbc.55.1387512935011; Thu, 19 Dec 2013 20:15:35 -0800 (PST) Received: from localhost.localdomain (morse-p.static.monkeybrains.net. [208.90.214.40]) by mx.google.com with ESMTPSA id xe9sm14391990pab.0.2013.12.19.20.15.33 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Dec 2013 20:15:34 -0800 (PST) From: John Tobias To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, cpufreq@vger.kernel.org, rjw@rjwysocki.net, shawn.guo@linaro.org, festevam@gmail.com, b20788@freescale.com, viresh.kumar@linaro.org Subject: [PATCH v3 1/2] ARM: imx6sl: Add cpu frequency scaling support Date: Thu, 19 Dec 2013 20:15:28 -0800 Message-Id: <1387512929-7304-1-git-send-email-john.tobias.ph@gmail.com> X-Mailer: git-send-email 1.8.3.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131219_231556_824783_61D9D090 X-CRM114-Status: GOOD ( 10.16 ) X-Spam-Score: -2.0 (--) Cc: John Tobias X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Re-use imx6q cpufreq driver to support cpu frequency scaling on imx6sl. Signed-off-by: John Tobias --- arch/arm/mach-imx/mach-imx6sl.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/mach-imx/mach-imx6sl.c b/arch/arm/mach-imx/mach-imx6sl.c index 2f952e3..3072e15 100644 --- a/arch/arm/mach-imx/mach-imx6sl.c +++ b/arch/arm/mach-imx/mach-imx6sl.c @@ -34,6 +34,13 @@ static void __init imx6sl_fec_init(void) } } +static void __init imx6sl_init_late(void) +{ + /* imx6sl reuses imx6q cpufreq driver */ + if (IS_ENABLED(CONFIG_ARM_IMX6Q_CPUFREQ)) + platform_device_register_simple("imx6q-cpufreq", -1, NULL, 0); +} + static void __init imx6sl_init_machine(void) { struct device *parent; @@ -70,6 +77,7 @@ DT_MACHINE_START(IMX6SL, "Freescale i.MX6 SoloLite (Device Tree)") .map_io = debug_ll_io_init, .init_irq = imx6sl_init_irq, .init_machine = imx6sl_init_machine, + .init_late = imx6sl_init_late, .dt_compat = imx6sl_dt_compat, .restart = mxc_restart, MACHINE_END