From patchwork Wed Sep 28 16:47:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ash Charles X-Patchwork-Id: 116838 X-Patchwork-Delegate: agust@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 62EB91007D1 for ; Thu, 29 Sep 2011 02:47:44 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D4A8D282F6; Wed, 28 Sep 2011 18:47:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0JYCLKUOxefo; Wed, 28 Sep 2011 18:47:40 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A4D08282FC; Wed, 28 Sep 2011 18:47:38 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BB466282FC for ; Wed, 28 Sep 2011 18:47:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5e6YPmzSqwn3 for ; Wed, 28 Sep 2011 18:47:33 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-yi0-f44.google.com (mail-yi0-f44.google.com [209.85.218.44]) by theia.denx.de (Postfix) with ESMTPS id AA066282F6 for ; Wed, 28 Sep 2011 18:47:32 +0200 (CEST) Received: by yic13 with SMTP id 13so6404064yic.3 for ; Wed, 28 Sep 2011 09:47:30 -0700 (PDT) Received: by 10.150.93.2 with SMTP id q2mr2464021ybb.177.1317228450511; Wed, 28 Sep 2011 09:47:30 -0700 (PDT) Received: from gumstux (adsl-76-246-147-246.dsl.pltn13.sbcglobal.net. [76.246.147.246]) by mx.google.com with ESMTPS id g20sm1467941ybd.1.2011.09.28.09.47.28 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 28 Sep 2011 09:47:29 -0700 (PDT) Received: by gumstux (Postfix, from userid 1000) id 4A9BE481F06; Wed, 28 Sep 2011 09:47:27 -0700 (PDT) From: Ash Charles To: u-boot@lists.denx.de Date: Wed, 28 Sep 2011 09:47:16 -0700 Message-Id: <1317228436-4606-1-git-send-email-ash@gumstix.com> X-Mailer: git-send-email 1.7.4.1 Subject: [U-Boot] [PATCH] omap: TWL4030 Bump VMMC1 interface voltage from 3V to 3.15V X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de MMC interfaces are specified to be 3.3V compatible with an operating voltage range of 3.1V to 3.5V for SD cards. This change affects hardware using TWL4030 (TPS6595x) PMICs and should improve the reliability when communicating with marginally-spec'd MMC devices. 3.15V is the highest possible level for this chip. This patch has been tested on a Gumstix Overo board. Signed-off-by: Ash Charles Tested-by: Steve Sakoman --- drivers/power/twl4030.c | 4 ++-- include/twl4030.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/power/twl4030.c b/drivers/power/twl4030.c index 5a7323a..4a4ddeb 100644 --- a/drivers/power/twl4030.c +++ b/drivers/power/twl4030.c @@ -97,9 +97,9 @@ void twl4030_power_init(void) void twl4030_power_mmc_init(void) { - /* Set VMMC1 to 3 Volts */ + /* Set VMMC1 to 3.15 Volts */ twl4030_pmrecv_vsel_cfg(TWL4030_PM_RECEIVER_VMMC1_DEDICATED, - TWL4030_PM_RECEIVER_VMMC1_VSEL_30, + TWL4030_PM_RECEIVER_VMMC1_VSEL_32, TWL4030_PM_RECEIVER_VMMC1_DEV_GRP, TWL4030_PM_RECEIVER_DEV_GRP_P1); } diff --git a/include/twl4030.h b/include/twl4030.h index 930c285..9cd32ab 100644 --- a/include/twl4030.h +++ b/include/twl4030.h @@ -310,6 +310,7 @@ #define TWL4030_PM_RECEIVER_VPLL2_VSEL_18 0x05 #define TWL4030_PM_RECEIVER_VDAC_VSEL_18 0x03 #define TWL4030_PM_RECEIVER_VMMC1_VSEL_30 0x02 +#define TWL4030_PM_RECEIVER_VMMC1_VSEL_32 0x03 /* Device Selection in PM Receiver Module */ #define TWL4030_PM_RECEIVER_DEV_GRP_P1 0x20