From patchwork Thu Aug 23 10:38:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Grzeschik X-Patchwork-Id: 1366311 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 1C4063FC66 for ; Thu, 23 Aug 2012 10:53:35 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T4Uyh-0000vO-UR; Thu, 23 Aug 2012 10:49:32 +0000 Received: from bombadil.infradead.org ([2001:4830:2446:ff00:4687:fcff:fea6:5117]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1T4UpC-0001q7-DH for linux-arm-kernel@merlin.infradead.org; Thu, 23 Aug 2012 10:39:43 +0000 Received: from metis.ext.pengutronix.de ([92.198.50.35]) by bombadil.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1T4UpA-0005ls-II for linux-arm-kernel@lists.infradead.org; Thu, 23 Aug 2012 10:39:41 +0000 Received: from dude.hi.pengutronix.de ([2001:6f8:1178:2:21e:67ff:fe11:9c5c]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1T4Uog-0001Pe-G6; Thu, 23 Aug 2012 12:39:10 +0200 Received: from mgr by dude.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1T4Uog-0003fJ-Db; Thu, 23 Aug 2012 12:39:10 +0200 From: Michael Grzeschik To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: imx: add imx5x usb controller clock lookups Date: Thu, 23 Aug 2012 12:38:48 +0200 Message-Id: <1345718328-6547-1-git-send-email-m.grzeschik@pengutronix.de> X-Mailer: git-send-email 1.7.10.4 X-SA-Exim-Connect-IP: 2001:6f8:1178:2:21e:67ff:fe11:9c5c X-SA-Exim-Mail-From: mgr@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20120823_063940_872132_EB8E54F9 X-CRM114-Status: UNSURE ( 8.86 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.1 (--) X-Spam-Report: SpamAssassin version 3.3.2 on bombadil.infradead.org summary: Content analysis details: (-2.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.2 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: shawn.guo@linaro.org, richard.zhao@linaro.org, kernel@pengutronix.de X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Signed-off-by: Michael Grzeschik --- arch/arm/mach-imx/clk-imx51-imx53.c | 36 +++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/arch/arm/mach-imx/clk-imx51-imx53.c b/arch/arm/mach-imx/clk-imx51-imx53.c index 4bdcaa9..6ce49b1 100644 --- a/arch/arm/mach-imx/clk-imx51-imx53.c +++ b/arch/arm/mach-imx/clk-imx51-imx53.c @@ -258,18 +258,6 @@ static void __init mx5_clocks_common_init(unsigned long rate_ckil, clk_register_clkdev(clk[pwm2_ipg_gate], "pwm", "mxc_pwm.1"); clk_register_clkdev(clk[i2c1_gate], NULL, "imx-i2c.0"); clk_register_clkdev(clk[i2c2_gate], NULL, "imx-i2c.1"); - clk_register_clkdev(clk[usboh3_per_gate], "per", "mxc-ehci.0"); - clk_register_clkdev(clk[usboh3_gate], "ipg", "mxc-ehci.0"); - clk_register_clkdev(clk[usboh3_gate], "ahb", "mxc-ehci.0"); - clk_register_clkdev(clk[usboh3_per_gate], "per", "mxc-ehci.1"); - clk_register_clkdev(clk[usboh3_gate], "ipg", "mxc-ehci.1"); - clk_register_clkdev(clk[usboh3_gate], "ahb", "mxc-ehci.1"); - clk_register_clkdev(clk[usboh3_per_gate], "per", "mxc-ehci.2"); - clk_register_clkdev(clk[usboh3_gate], "ipg", "mxc-ehci.2"); - clk_register_clkdev(clk[usboh3_gate], "ahb", "mxc-ehci.2"); - clk_register_clkdev(clk[usboh3_per_gate], "per", "fsl-usb2-udc"); - clk_register_clkdev(clk[usboh3_gate], "ipg", "fsl-usb2-udc"); - clk_register_clkdev(clk[usboh3_gate], "ahb", "fsl-usb2-udc"); clk_register_clkdev(clk[nfc_gate], NULL, "mxc_nand"); clk_register_clkdev(clk[ssi1_ipg_gate], NULL, "imx-ssi.0"); clk_register_clkdev(clk[ssi2_ipg_gate], NULL, "imx-ssi.1"); @@ -351,6 +339,18 @@ int __init mx51_clocks_init(unsigned long rate_ckil, unsigned long rate_osc, clk_register_clkdev(clk[ipu_di0_gate], "di0", "imx51-ipu"); clk_register_clkdev(clk[ipu_di1_gate], "di1", "imx51-ipu"); clk_register_clkdev(clk[ipu_gate], "hsp", "imx51-ipu"); + clk_register_clkdev(clk[usboh3_per_gate], "per", "73f80600.usb"); + clk_register_clkdev(clk[usboh3_gate], "ipg", "73f80600.usb"); + clk_register_clkdev(clk[usboh3_gate], "ahb", "73f80600.usb"); + clk_register_clkdev(clk[usboh3_per_gate], "per", "73f80400.usb"); + clk_register_clkdev(clk[usboh3_gate], "ipg", "73f80400.usb"); + clk_register_clkdev(clk[usboh3_gate], "ahb", "73f80400.usb"); + clk_register_clkdev(clk[usboh3_per_gate], "per", "73f80200.usb"); + clk_register_clkdev(clk[usboh3_gate], "ipg", "73f80200.usb"); + clk_register_clkdev(clk[usboh3_gate], "ahb", "73f80200.usb"); + clk_register_clkdev(clk[usboh3_per_gate], "per", "73f80000.usb"); + clk_register_clkdev(clk[usboh3_gate], "ipg", "73f80000.usb"); + clk_register_clkdev(clk[usboh3_gate], "ahb", "73f80000.usb"); clk_register_clkdev(clk[usb_phy_gate], "phy", "mxc-ehci.0"); clk_register_clkdev(clk[esdhc1_ipg_gate], "ipg", "sdhci-esdhc-imx51.0"); clk_register_clkdev(clk[dummy], "ahb", "sdhci-esdhc-imx51.0"); @@ -439,6 +439,18 @@ int __init mx53_clocks_init(unsigned long rate_ckil, unsigned long rate_osc, clk_register_clkdev(clk[ipu_di0_gate], "di0", "imx53-ipu"); clk_register_clkdev(clk[ipu_di1_gate], "di1", "imx53-ipu"); clk_register_clkdev(clk[ipu_gate], "hsp", "imx53-ipu"); + clk_register_clkdev(clk[usboh3_per_gate], "per", "53f80600.usb"); + clk_register_clkdev(clk[usboh3_gate], "ipg", "53f80600.usb"); + clk_register_clkdev(clk[usboh3_gate], "ahb", "53f80600.usb"); + clk_register_clkdev(clk[usboh3_per_gate], "per", "53f80400.usb"); + clk_register_clkdev(clk[usboh3_gate], "ipg", "53f80400.usb"); + clk_register_clkdev(clk[usboh3_gate], "ahb", "53f80400.usb"); + clk_register_clkdev(clk[usboh3_per_gate], "per", "53f80200.usb"); + clk_register_clkdev(clk[usboh3_gate], "ipg", "53f80200.usb"); + clk_register_clkdev(clk[usboh3_gate], "ahb", "53f80200.usb"); + clk_register_clkdev(clk[usboh3_per_gate], "per", "53f80000.usb"); + clk_register_clkdev(clk[usboh3_gate], "ipg", "53f80000.usb"); + clk_register_clkdev(clk[usboh3_gate], "ahb", "53f80000.usb"); clk_register_clkdev(clk[usb_phy1_gate], "usb_phy1", "mxc-ehci.0"); clk_register_clkdev(clk[esdhc1_ipg_gate], "ipg", "sdhci-esdhc-imx53.0"); clk_register_clkdev(clk[dummy], "ahb", "sdhci-esdhc-imx53.0");