From patchwork Tue Sep 21 05:43:24 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip Rakity X-Patchwork-Id: 196462 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8L5hV1u009841 for ; Tue, 21 Sep 2010 05:43:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752345Ab0IUFnb (ORCPT ); Tue, 21 Sep 2010 01:43:31 -0400 Received: from dakia3.marvell.com ([65.219.4.28]:52548 "EHLO dakia3.marvell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752146Ab0IUFna convert rfc822-to-8bit (ORCPT ); Tue, 21 Sep 2010 01:43:30 -0400 X-ASG-Debug-ID: 1285047810-2ea359030001-IEKb4K Received: from sc-owa02.marvell.com (sc-owa02.marvell.com [10.93.76.22]) by dakia3.marvell.com with ESMTP id Url5DF7bTOoY48Ue (version=TLSv1 cipher=RC4-MD5 bits=128 verify=NO); Mon, 20 Sep 2010 22:43:30 -0700 (PDT) X-Barracuda-Envelope-From: prakity@marvell.com Received: from SC-vEXCH3.marvell.com ([10.93.76.133]) by sc-owa02.marvell.com ([10.93.76.22]) with mapi; Mon, 20 Sep 2010 22:43:29 -0700 From: Philip Rakity X-Barracuda-BBL-IP: 10.93.76.133 X-Barracuda-RBL-IP: 10.93.76.133 To: Wolfram Sang , "linux-mmc@vger.kernel.org" CC: Adrian Hunter , Mark Brown Date: Mon, 20 Sep 2010 22:43:24 -0700 X-ASG-Orig-Subj: [PATCH] sdhci: allow for eMMC 74 clock generation by controller Subject: [PATCH] sdhci: allow for eMMC 74 clock generation by controller Thread-Topic: [PATCH] sdhci: allow for eMMC 74 clock generation by controller Thread-Index: ActZT+toREoWX0gFSXad6CAp3otmZg== Message-ID: <57E26860-E2EC-4510-B928-62BCC7DC1AF8@marvell.com> References: <43E4817426ED174AA81263BCECB4351D131745CF98@sc-vexch3.marvell.com> <53E1B390-48DD-4E33-B51F-1B039AFD13A2@marvell.com> <4B9DEAE2.3030707@nokia.com> <3A9599CE-49EE-4A18-89E0-22B17090CA43@marvell.com> <4BA72971.1070804@nokia.com> <639D1595-D908-473C-9A41-71B493DCD0C0@marvell.com> <4BB052F6.5080808@nokia.com> <20100920061459.GA9353@pengutronix.de> <5F58EC42-069D-4469-BF13-F741674BE763@marvell.com> In-Reply-To: <5F58EC42-069D-4469-BF13-F741674BE763@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 X-Barracuda-Connect: sc-owa02.marvell.com[10.93.76.22] X-Barracuda-Start-Time: 1285047810 X-Barracuda-Encrypted: RC4-MD5 X-Barracuda-URL: http://dakia3.marvell.com:80/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at marvell.com Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 21 Sep 2010 05:43:32 +0000 (UTC) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 401527d..6aadd0f 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -1168,6 +1168,9 @@ static void sdhci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) else sdhci_set_power(host, ios->vdd); + if (host->ops->platform_generate_initial_74_clocks) + host->ops->platform_generate_initial_74_clocks(host, ios->power_mode); + ctrl = sdhci_readb(host, SDHCI_HOST_CONTROL); if (ios->bus_width == MMC_BUS_WIDTH_8) diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h index d316bc7..70c5806 100644 --- a/drivers/mmc/host/sdhci.h +++ b/drivers/mmc/host/sdhci.h @@ -323,6 +323,8 @@ struct sdhci_ops { unsigned int (*get_max_clock)(struct sdhci_host *host); unsigned int (*get_min_clock)(struct sdhci_host *host); unsigned int (*get_timeout_clock)(struct sdhci_host *host); + void (*platform_generate_initial_74_clocks)(struct sdhci_host *host, + u8 power_mode); }; #ifdef CONFIG_MMC_SDHCI_IO_ACCESSORS