From patchwork Wed May 9 11:33:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhao X-Patchwork-Id: 8489 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 191CD23E9A for ; Wed, 9 May 2012 11:33:54 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id BF39BA18713 for ; Wed, 9 May 2012 11:33:53 +0000 (UTC) Received: by yenq6 with SMTP id q6so155788yen.11 for ; Wed, 09 May 2012 04:33:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :x-spamscore:x-bigfish:x-forefront-antispam-report:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:x-originatororg:x-gm-message-state; bh=BlVViuC4x8ab7MZZZqyNOsEbG71wqavzGohgWZyuifo=; b=UsjB4uXU0G8yzcn7pK74vRTHTdV0CNaXmtWHNL9AR+JpGx6fvggesvccDYGpJfih68 ttWmfqiNxldNxvgk8y1gtPIU2w6qkKhRu0pGo6ctvsKd/E7sn6tRoQBuI8OlJhjfAKpT Tpml/6tdoP4WJMewu6zOxrLQaQmXwW3WkZDyIvQ5n0HW7fWu5gjPHw1wP1c1Rf/iaphe buTYSqmdF07HZVDjtJtl3/AHLt0tLOdw1UqHPb2FNafaGEq0ESV3UeUehwgHo03G6eHL cwvxAg4bd6bwA4Ehtifv17fAqVSUQQTLVyNO68xg835vqNl2KHD571xCzQqn1ZzCDNaa vcZA== Received: by 10.50.47.131 with SMTP id d3mr1270099ign.33.1336563233210; Wed, 09 May 2012 04:33:53 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.73.147 with SMTP id q19csp8647ibj; Wed, 9 May 2012 04:33:52 -0700 (PDT) Received: by 10.180.79.72 with SMTP id h8mr6238318wix.1.1336563231883; Wed, 09 May 2012 04:33:51 -0700 (PDT) Received: from tx2outboundpool.messaging.microsoft.com (tx2ehsobe003.messaging.microsoft.com. [65.55.88.13]) by mx.google.com with ESMTPS id y44si2729490wem.16.2012.05.09.04.33.50 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 09 May 2012 04:33:51 -0700 (PDT) Received-SPF: neutral (google.com: 65.55.88.13 is neither permitted nor denied by best guess record for domain of B20223@freescale.com) client-ip=65.55.88.13; Authentication-Results: mx.google.com; spf=neutral (google.com: 65.55.88.13 is neither permitted nor denied by best guess record for domain of B20223@freescale.com) smtp.mail=B20223@freescale.com Received: from mail104-tx2-R.bigfish.com (10.9.14.243) by TX2EHSOBE010.bigfish.com (10.9.40.30) with Microsoft SMTP Server id 14.1.225.23; Wed, 9 May 2012 11:33:49 +0000 Received: from mail104-tx2 (localhost [127.0.0.1]) by mail104-tx2-R.bigfish.com (Postfix) with ESMTP id 7578A3007D6; Wed, 9 May 2012 11:33:49 +0000 (UTC) X-SpamScore: 3 X-BigFish: VS3(zcb8kzzz1202hzz8275bhz2dh2a8h668h839hd24he5bh) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI Received: from mail104-tx2 (localhost.localdomain [127.0.0.1]) by mail104-tx2 (MessageSwitch) id 1336563227150809_21105; Wed, 9 May 2012 11:33:47 +0000 (UTC) Received: from TX2EHSMHS025.bigfish.com (unknown [10.9.14.241]) by mail104-tx2.bigfish.com (Postfix) with ESMTP id 1CB89180165; Wed, 9 May 2012 11:33:47 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by TX2EHSMHS025.bigfish.com (10.9.99.125) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 9 May 2012 11:33:26 +0000 Received: from az33smr01.freescale.net (10.64.34.199) by 039-SN1MMR1-002.039d.mgd.msft.net (10.84.1.15) with Microsoft SMTP Server id 14.1.355.3; Wed, 9 May 2012 06:33:40 -0500 Received: from b20223-02.ap.freescale.net (b20223-02.ap.freescale.net [10.192.242.124]) by az33smr01.freescale.net (8.13.1/8.13.0) with ESMTP id q49BXDtP001540; Wed, 9 May 2012 06:33:36 -0500 (CDT) From: Richard Zhao To: , , CC: , , , , , , , , , , Richard Zhao Subject: [PATCH V2 05/11] ARM: imx6q: add ssi1_ipg clk_lookup Date: Wed, 9 May 2012 19:33:04 +0800 Message-ID: <1336563190-19974-6-git-send-email-richard.zhao@freescale.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1336563190-19974-1-git-send-email-richard.zhao@freescale.com> References: <1336563190-19974-1-git-send-email-richard.zhao@freescale.com> MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-Gm-Message-State: ALoCoQnvvOLDUzULMvrhv80gBOmXKItWE+/Pav3RJeE+JjaA/a+tkIxRWXogWmNF8oXoEvQDKxdN It's used by audio drivers. Signed-off-by: Richard Zhao --- arch/arm/mach-imx/clk-imx6q.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-imx/clk-imx6q.c b/arch/arm/mach-imx/clk-imx6q.c index f40a35d..92550c5 100644 --- a/arch/arm/mach-imx/clk-imx6q.c +++ b/arch/arm/mach-imx/clk-imx6q.c @@ -155,7 +155,8 @@ enum mx6q_clks { gpmi_bch_apb, gpmi_bch, gpmi_io, gpmi_apb, sata, sdma, spba, ssi1, ssi2, ssi3, uart_ipg, uart_serial, usboh3, usdhc1, usdhc2, usdhc3, usdhc4, vdo_axi, vpu_axi, cko1, pll1_sys, pll2_bus, pll3_usb_otg, - pll4_audio, pll5_video, pll6_mlb, pll7_usb_host, pll8_enet, clk_max + pll4_audio, pll5_video, pll6_mlb, pll7_usb_host, pll8_enet, ssi1_ipg, + ssi2_ipg, ssi3_ipg, clk_max }; static struct clk *clk[clk_max]; @@ -367,9 +368,9 @@ int __init mx6q_clocks_init(void) clk[sata] = imx_clk_gate2("sata", "ipg", base + 0x7c, 4); clk[sdma] = imx_clk_gate2("sdma", "ahb", base + 0x7c, 6); clk[spba] = imx_clk_gate2("spba", "ipg", base + 0x7c, 12); - clk[ssi1] = imx_clk_gate2("ssi1", "ssi1_podf", base + 0x7c, 18); - clk[ssi2] = imx_clk_gate2("ssi2", "ssi2_podf", base + 0x7c, 20); - clk[ssi3] = imx_clk_gate2("ssi3", "ssi3_podf", base + 0x7c, 22); + clk[ssi1_ipg] = imx_clk_gate2("ssi1_ipg", "ipg", base + 0x7c, 18); + clk[ssi2_ipg] = imx_clk_gate2("ssi2_ipg", "ipg", base + 0x7c, 20); + clk[ssi3_ipg] = imx_clk_gate2("ssi3_ipg", "ipg", base + 0x7c, 22); clk[uart_ipg] = imx_clk_gate2("uart_ipg", "ipg", base + 0x7c, 24); clk[uart_serial] = imx_clk_gate2("uart_serial", "uart_serial_podf", base + 0x7c, 26); clk[usboh3] = imx_clk_gate2("usboh3", "ipg", base + 0x80, 0); @@ -418,6 +419,7 @@ int __init mx6q_clocks_init(void) clk_register_clkdev(clk[sdma], NULL, "20ec000.sdma"); clk_register_clkdev(clk[dummy], NULL, "20bc000.wdog"); clk_register_clkdev(clk[dummy], NULL, "20c0000.wdog"); + clk_register_clkdev(clk[ssi1_ipg], NULL, "2028000.ssi"); for (i = 0; i < ARRAY_SIZE(clks_init_on); i++) { c = clk_get_sys(clks_init_on[i], NULL);