From patchwork Wed Dec 18 01:17:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Tobias X-Patchwork-Id: 3367071 Return-Path: X-Original-To: patchwork-linux-mmc@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 1ECF99F37A for ; Wed, 18 Dec 2013 01:17:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5819B203AF for ; Wed, 18 Dec 2013 01:17:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 84649203B4 for ; Wed, 18 Dec 2013 01:17:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751813Ab3LRBRm (ORCPT ); Tue, 17 Dec 2013 20:17:42 -0500 Received: from mail-pb0-f45.google.com ([209.85.160.45]:35137 "EHLO mail-pb0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751293Ab3LRBRm (ORCPT ); Tue, 17 Dec 2013 20:17:42 -0500 Received: by mail-pb0-f45.google.com with SMTP id rp16so7720725pbb.32 for ; Tue, 17 Dec 2013 17:17:41 -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=x5+yufRexnaqJ6+DXXNw8NhXMt0SKR9l2boRW02DkOM=; b=AwNlSDnIeb/lzqz1zHCHysxeICcMJaRwietd0PGklMMn3u+zVLivebqbL61vz+qOss AvLi0LEcz3+rKjSWRMCLVU8iFogL0NlH+zseB9AuuLOO04RNbdPfCJyy3DmU8Ss7MhCj UTt+m6nXhkW3CXh0uQL/6xI5stupjEhbBgfsvIpW4180jHqS8WasLIfScMviGvMmbJ5j ZUjC8xeobTsCVIxVSjshhbz//WBYIFtRuL3X47bxA/nUp2h0J+aRjhO0/GZKqF4GG39H 2sVvyPeOrg4afU7xX1QyZbAcLPHxHjoKWajpnqUu7y4cfsbsIEBco+Hy7iiREHHD6Xcm speA== X-Received: by 10.68.92.98 with SMTP id cl2mr30914118pbb.81.1387329461732; Tue, 17 Dec 2013 17:17:41 -0800 (PST) Received: from localhost.localdomain (morse-p.static.monkeybrains.net. [208.90.214.40]) by mx.google.com with ESMTPSA id rz6sm50095689pab.22.2013.12.17.17.17.40 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Dec 2013 17:17:41 -0800 (PST) From: John Tobias To: linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, shawn.guo@linaro.org, festevam@gmail.com, cjb@laptop.org Cc: John Tobias Subject: [PATCH 4/4] Added cpufreq support for iMX6SL Date: Tue, 17 Dec 2013 17:17:31 -0800 Message-Id: <1387329451-17480-4-git-send-email-john.tobias.ph@gmail.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1387329451-17480-1-git-send-email-john.tobias.ph@gmail.com> References: <1387329451-17480-1-git-send-email-john.tobias.ph@gmail.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 cpufreq driver Signed-off-by: John Tobias --- arch/arm/mach-imx/mach-imx6sl.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/mach-imx6sl.c b/arch/arm/mach-imx/mach-imx6sl.c index 2f952e3..a8b1543 100644 --- a/arch/arm/mach-imx/mach-imx6sl.c +++ b/arch/arm/mach-imx/mach-imx6sl.c @@ -8,7 +8,6 @@ */ #include -#include #include #include #include @@ -34,6 +33,17 @@ static void __init imx6sl_fec_init(void) } } +static struct platform_device imx6q_cpufreq_pdev = { + .name = "imx6q-cpufreq", +}; + +static void __init imx6sl_init_late(void) +{ + if (IS_ENABLED(CONFIG_ARM_IMX6Q_CPUFREQ)) { + platform_device_register(&imx6q_cpufreq_pdev); + } +} + static void __init imx6sl_init_machine(void) { struct device *parent; @@ -70,6 +80,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