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: 302606 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from casper.infradead.org (unknown [IPv6:2001:770:15f::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id E08B82C00AD for ; Wed, 18 Dec 2013 12:20:28 +1100 (EST) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vt5mq-0004We-HF; Wed, 18 Dec 2013 01:18:58 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vt5mY-0000Ch-Vs; Wed, 18 Dec 2013 01:18:39 +0000 Received: from mail-pd0-x22f.google.com ([2607:f8b0:400e:c02::22f]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vt5lz-00009h-4u for linux-arm-kernel@lists.infradead.org; Wed, 18 Dec 2013 01:18:03 +0000 Received: by mail-pd0-f175.google.com with SMTP id w10so7534366pde.20 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131217_201803_277457_A5ADC6ED X-CRM114-Status: GOOD ( 11.26 ) X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (john.tobias.ph[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: John Tobias X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org 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