From patchwork Fri Jan 21 04:29:36 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip Rakity X-Patchwork-Id: 494031 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 p0L4X5Tp021206 for ; Fri, 21 Jan 2011 04:33:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753690Ab1AUEdI (ORCPT ); Thu, 20 Jan 2011 23:33:08 -0500 Received: from na3sys009aog107.obsmtp.com ([74.125.149.197]:54426 "HELO na3sys009aog107.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753681Ab1AUEdI convert rfc822-to-8bit (ORCPT ); Thu, 20 Jan 2011 23:33:08 -0500 Received: from source ([65.219.4.130]) (using TLSv1) by na3sys009aob107.postini.com ([74.125.148.12]) with SMTP ID DSNKTTkMgx94dyCZFkrpFtftsWtQwkysIf1W@postini.com; Thu, 20 Jan 2011 20:33:08 PST Received: from SC-vEXCH3.marvell.com ([10.93.76.133]) by sc-owa02.marvell.com ([10.93.76.22]) with mapi; Thu, 20 Jan 2011 20:29:38 -0800 From: Philip Rakity To: "linux-mmc@vger.kernel.org" CC: Zhangfei Gao , Mark Brown Date: Thu, 20 Jan 2011 20:29:36 -0800 Subject: [PATCH 3/3] sdhci: add support for DDR to platform code Thread-Topic: [PATCH 3/3] sdhci: add support for DDR to platform code Thread-Index: Acu5I8/PfkyCphUiQ9W/MVQucZ/xZA== Message-ID: <673349E8-F326-4620-AF2C-CCBF11645B71@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 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.6 (demeter1.kernel.org [140.211.167.41]); Fri, 21 Jan 2011 04:33:09 +0000 (UTC) diff --git a/drivers/mmc/host/sdhci-pxa.c b/drivers/mmc/host/sdhci-pxa.c index 5a61208..8f9a04e 100644 --- a/drivers/mmc/host/sdhci-pxa.c +++ b/drivers/mmc/host/sdhci-pxa.c @@ -69,8 +69,23 @@ static void set_clock(struct sdhci_host *host, unsigned int clock) } } +static unsigned int set_signaling_voltage(struct sdhci_host *host, + unsigned int ddr) +{ + u16 con; + /* + * Set V18_EN -- DDR does not work without this. + * does not change signaling voltage + */ + con = readw(host->ioaddr + SDHCI_HOST_CONTROL_2); + con |= SDCTRL_2_SDH_V18_EN; + writew(con, host->ioaddr + SDHCI_HOST_CONTROL_2); + return 0; +} + static struct sdhci_ops sdhci_pxa_ops = { .set_clock = set_clock, + .set_signaling_voltage = set_signaling_voltage, }; /*****************************************************************************\