From patchwork Thu Aug 26 19:40:46 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juha.Kuikka@elektrobit.com X-Patchwork-Id: 135821 Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o7QJgPaE022576 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 26 Aug 2010 19:43:01 GMT Received: from dlep36.itg.ti.com ([157.170.170.91]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id o7QJeuie029910 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 26 Aug 2010 14:40:56 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id o7QJet5B028400; Thu, 26 Aug 2010 14:40:55 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id C510180627; Thu, 26 Aug 2010 14:40:54 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp52.itg.ti.com (dflp52.itg.ti.com [128.247.22.96]) by linux.omap.com (Postfix) with ESMTP id D533E80626 for ; Thu, 26 Aug 2010 14:40:50 -0500 (CDT) Received: from medina.ext.ti.com (localhost [127.0.0.1]) by dflp52.itg.ti.com (8.13.7/8.13.7) with ESMTP id o7QJeo8V022802 for ; Thu, 26 Aug 2010 14:40:50 -0500 (CDT) Received: from psmtp.com (na3sys009amx212.postini.com [74.125.149.52]) by medina.ext.ti.com (8.13.7/8.13.7) with SMTP id o7QJenXt012014 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 26 Aug 2010 14:40:49 -0500 Received: from source ([207.170.229.71]) (using TLSv1) by na3sys009amx212.postini.com ([74.125.148.10]) with SMTP; Thu, 26 Aug 2010 14:40:49 CDT Received: from usrdes03.ebgroup.elektrobit.com (usrdes03.ebgroup.elektrobit.com [172.18.145.10]) by smtpgw1us.elektrobit.com (8.13.8/8.13.8) with ESMTP id o7QJelNF029449 for ; Thu, 26 Aug 2010 12:40:47 -0700 Received: from localhost.localdomain ([172.18.145.22]) by usrdes03.ebgroup.elektrobit.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 26 Aug 2010 12:40:47 -0700 From: Juha Kuikka To: davinci-linux-open-source@linux.davincidsp.com Subject: [PATCH v3 2/3] DA850: Split MMCSD clock into two to support both MMCSD peripherals Date: Thu, 26 Aug 2010 12:40:46 -0700 Message-Id: <1282851647-14336-3-git-send-email-juha.kuikka@elektrobit.com> X-Mailer: git-send-email 1.6.0.1 In-Reply-To: <1282851647-14336-2-git-send-email-juha.kuikka@elektrobit.com> References: <1282851647-14336-1-git-send-email-juha.kuikka@elektrobit.com> <1282851647-14336-2-git-send-email-juha.kuikka@elektrobit.com> X-OriginalArrivalTime: 26 Aug 2010 19:40:47.0528 (UTC) FILETIME=[94BF9A80:01CB4556] X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Thu, 26 Aug 2010 19:43:01 +0000 (UTC) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (smtpgw1us.elektrobit.com [10.127.1.11]); Thu, 26 Aug 2010 12:40:47 -0700 (PDT) X-Virus-Scanned: at elektrobit.com MIME-Version: 1.0 Content-Disposition: inline X-Scanned-By: MIMEDefang 2.67 on 10.127.1.11 X-pstn-levels: (S:99.90000/99.90000 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 ) X-pstn-settings: 2 (0.5000:0.5000) s cv gt3 gt2 gt1 r p m c X-pstn-addresses: from [db-null] Cc: Juha Kuikka X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: davinci-linux-open-source-bounces@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index 68ed58a..9ab9b2a 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c @@ -323,12 +323,19 @@ static struct clk lcdc_clk = { .gpsc = 1, }; -static struct clk mmcsd_clk = { - .name = "mmcsd", +static struct clk mmcsd0_clk = { + .name = "mmcsd0", .parent = &pll0_sysclk2, .lpsc = DA8XX_LPSC0_MMC_SD, }; +static struct clk mmcsd1_clk = { + .name = "mmcsd1", + .parent = &pll0_sysclk2, + .lpsc = DA850_LPSC1_MMC_SD1, + .gpsc = 1, +}; + static struct clk aemif_clk = { .name = "aemif", .parent = &pll0_sysclk3, @@ -375,7 +382,8 @@ static struct clk_lookup da850_clks[] = { CLK("davinci_emac.1", NULL, &emac_clk), CLK("davinci-mcasp.0", NULL, &mcasp_clk), CLK("da8xx_lcdc.0", NULL, &lcdc_clk), - CLK("davinci_mmc.0", NULL, &mmcsd_clk), + CLK("davinci_mmc.0", NULL, &mmcsd0_clk), + CLK("davinci_mmc.1", NULL, &mmcsd1_clk), CLK(NULL, "aemif", &aemif_clk), CLK(NULL, NULL, NULL), };