From patchwork Tue Aug 17 18:56:47 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: 120002 Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7HIv7Ko027918 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 17 Aug 2010 18:57:47 GMT Received: from dlep33.itg.ti.com ([157.170.170.112]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id o7HIv62X001768 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 17 Aug 2010 13:57:07 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep33.itg.ti.com (8.13.7/8.13.7) with ESMTP id o7HIv5kl005163 for ; Tue, 17 Aug 2010 13:57:06 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id B5F938064F for ; Tue, 17 Aug 2010 13:57:01 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp51.itg.ti.com (dflp51.itg.ti.com [128.247.22.94]) by linux.omap.com (Postfix) with ESMTP id ADD1F80627 for ; Tue, 17 Aug 2010 13:56:51 -0500 (CDT) Received: from red.ext.ti.com (localhost [127.0.0.1]) by dflp51.itg.ti.com (8.13.7/8.13.7) with ESMTP id o7HIupts005092 for ; Tue, 17 Aug 2010 13:56:51 -0500 (CDT) Received: from psmtp.com (na3sys009amx240.postini.com [74.125.149.124]) by red.ext.ti.com (8.13.7/8.13.7) with SMTP id o7HIuosp006227 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 17 Aug 2010 13:56:50 -0500 Received: from source ([207.170.229.72]) (using TLSv1) by na3sys009amx240.postini.com ([74.125.148.10]) with SMTP; Tue, 17 Aug 2010 14:56:51 EDT Received: from usrdes03.ebgroup.elektrobit.com (usrdes03.ebgroup.elektrobit.com [172.18.145.10]) by smtpgw2us.elektrobit.com (8.13.8/8.13.8) with ESMTP id o7HIunpd016953 for ; Tue, 17 Aug 2010 11:56:49 -0700 Received: from localhost.localdomain ([172.18.145.22]) by usrdes03.ebgroup.elektrobit.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 17 Aug 2010 11:56:48 -0700 From: Juha Kuikka To: davinci-linux-open-source@linux.davincidsp.com Subject: [PATCH v2 2/3] DA850: Split MMCSD clock into two to support both MMCSD peripherals Date: Tue, 17 Aug 2010 11:56:47 -0700 Message-Id: <1282071408-1213-3-git-send-email-juha.kuikka@elektrobit.com> X-Mailer: git-send-email 1.6.0.1 In-Reply-To: <1282071408-1213-2-git-send-email-juha.kuikka@elektrobit.com> References: <1282071408-1213-1-git-send-email-juha.kuikka@elektrobit.com> <1282071408-1213-2-git-send-email-juha.kuikka@elektrobit.com> X-OriginalArrivalTime: 17 Aug 2010 18:56:48.0853 (UTC) FILETIME=[F2420050:01CB3E3D] X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 17 Aug 2010 18:57:48 +0000 (UTC) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (smtpgw2us.elektrobit.com [10.127.1.12]); Tue, 17 Aug 2010 11:56:49 -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.12 X-pstn-neptune: 0/0/0.00/0 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+patchwork-davinci=patchwork.kernel.org@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces+patchwork-davinci=patchwork.kernel.org@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), };