From patchwork Thu Dec 19 20:35:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Tobias X-Patchwork-Id: 3384281 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 2BE7B9F314 for ; Thu, 19 Dec 2013 20:43:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 60E1B206B2 for ; Thu, 19 Dec 2013 20:43:58 +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 73527206AD for ; Thu, 19 Dec 2013 20:43:57 +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 1VtkRl-0005Eq-CA; Thu, 19 Dec 2013 20:43:53 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VtkRj-0005aW-5B; Thu, 19 Dec 2013 20:43:51 +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 1VtkRf-0005Zc-8D for linux-arm-kernel@lists.infradead.org; Thu, 19 Dec 2013 20:43:48 +0000 Received: by mail-pb0-f47.google.com with SMTP id um1so1628588pbc.6 for ; Thu, 19 Dec 2013 12:43:25 -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:in-reply-to:references; bh=6asmc0UUdtamYaXmW5sa0bHeEPp1ps0r7Uu5l7q+aEE=; b=Kp+ITXJ1JRGJw9NJXzQO4GODeIwRfdQHqkC39WkoIdJ5FjMwFp0j1hBj7VR82Oin8r W4VMVYUvn4sJ+fN84b7824mmB/Ge/sSTXsRvnEC29l9Tqe//6G82HgiwWsf1pkeMWc0p C+BbiXRJJmZttVWLQ+8rVXc+o8xgKkkES8jB5bRs/ep9r4upBP6oRkEq7oG7e961u/yO nWZH1XnMHvhem1S8rZcQMdSz6p25N+5++DRNUsQQy6SuULyKqjbwaVjrXMXvUgVpZShk +RhE43wIIjtMtQELEAPvou4IvnJFvkT63Fc3RCU/zS2ejPzFBMTwjj3XmWLQKYSPVK/t uU9w== X-Received: by 10.68.143.196 with SMTP id sg4mr3927202pbb.155.1387485805477; Thu, 19 Dec 2013 12:43:25 -0800 (PST) Received: from localhost.localdomain (morse-p.static.monkeybrains.net. [208.90.214.40]) by mx.google.com with ESMTPSA id lh13sm12188561pab.4.2013.12.19.12.43.24 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Dec 2013 12:43:24 -0800 (PST) From: John Tobias To: linux-arm-kernel@lists.infradead.org, shawn.guo@linaro.org, festevam@gmail.com, b20788@freescale.com Subject: [PATCH v2 2/3] ARM: imx: Add cpu frequency scaling support Date: Thu, 19 Dec 2013 12:35:37 -0800 Message-Id: <1387485338-21225-2-git-send-email-john.tobias.ph@gmail.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1387485338-21225-1-git-send-email-john.tobias.ph@gmail.com> References: <1387485338-21225-1-git-send-email-john.tobias.ph@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131219_154347_403241_33B441A9 X-CRM114-Status: UNSURE ( 9.92 ) X-CRM114-Notice: Please train this message. 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-using iMX6Q driver for cpu frequency scaling. Signed-off-by: John Tobias --- arch/arm/mach-imx/mach-imx6sl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-imx/mach-imx6sl.c b/arch/arm/mach-imx/mach-imx6sl.c index 2f952e3..2ba3a7a 100644 --- a/arch/arm/mach-imx/mach-imx6sl.c +++ b/arch/arm/mach-imx/mach-imx6sl.c @@ -34,6 +34,12 @@ static void __init imx6sl_fec_init(void) } } +static void __init imx6sl_init_late(void) +{ + 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 +76,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