From patchwork Wed Aug 24 08:35:02 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan DE FARIA X-Patchwork-Id: 1091522 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7O8ZSs3006755 for ; Wed, 24 Aug 2011 08:35:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756566Ab1HXIf1 (ORCPT ); Wed, 24 Aug 2011 04:35:27 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:50356 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756435Ab1HXIf0 (ORCPT ); Wed, 24 Aug 2011 04:35:26 -0400 Received: by bke11 with SMTP id 11so709566bke.19 for ; Wed, 24 Aug 2011 01:35:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer; bh=U2zLBVmhkhDyrQQpwlEQBHDMzwWk4ERbA+j1HdWhl8o=; b=TCPz+9cq4vws+64knBDBQcldaR8AzLg0+aTnbPlFC0D3bZF2Or8ABWSDi71qbXECGw FkB71CxB5E+R3Pcdyj7y3EWKmYd8hnthSPUc66Oc7U+4W7GHrSHvl16G15GO0My9A72M nCFprZSQDCwpuX2Q87lA8yCL2v6yRZ0fxufrU= Received: by 10.204.146.151 with SMTP id h23mr2131708bkv.156.1314174924631; Wed, 24 Aug 2011 01:35:24 -0700 (PDT) Received: from localhost.localdomain ([213.144.218.64]) by mx.google.com with ESMTPS id x18sm227813fah.2.2011.08.24.01.35.23 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 24 Aug 2011 01:35:24 -0700 (PDT) From: Bryan DE FARIA To: tony@atomide.com Cc: Bryan DE FARIA , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, grinberg@compulab.co.il Subject: [PATCH v2] OMAP3EVM: ehci: Fix EHCI support Date: Wed, 24 Aug 2011 10:35:02 +0200 Message-Id: <1314174902-12797-1-git-send-email-bdefaria@adeneo-embedded.com> X-Mailer: git-send-email 1.7.4.1 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Wed, 24 Aug 2011 08:35:28 +0000 (UTC) Set the VAUX2 regulator supply to 1.8V for the HSUSB host interface. Gpio 2 of the TPS65950 has to be set to zero in order to enable the HSUBS2 clock. Signed-off-by: Bryan DE FARIA --- arch/arm/mach-omap2/board-omap3evm.c | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index c452b3f..13a2b71 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c @@ -377,6 +377,10 @@ static int omap3evm_twl_gpio_setup(struct device *dev, if (r) printk(KERN_ERR "failed to get/set lcd_bkl gpio\n"); + /* gpio + 2 == HSUSB2 Clock Enable */ + if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2) + gpio_request_one(gpio + 2, GPIOF_OUT_INIT_LOW, "EN_HSUSB2_CLK"); + /* gpio + 7 == DVI Enable */ gpio_request_one(gpio + 7, GPIOF_OUT_INIT_LOW, "EN_DVI"); @@ -450,6 +454,25 @@ static struct regulator_init_data omap3evm_vio = { .consumer_supplies = omap3evm_vio_supply, }; +/* VAUX2 for EHCI */ +static struct regulator_consumer_supply omap3evm_vaux2_supplies[] = { + REGULATOR_SUPPLY("hsusb1", "ehci-omap.0"), +}; + +static struct regulator_init_data omap3evm_vaux2 = { + .constraints = { + .min_uV = 1800000, + .max_uV = 1800000, + .apply_uV = true, + .valid_modes_mask = REGULATOR_MODE_NORMAL + | REGULATOR_MODE_STANDBY, + .valid_ops_mask = REGULATOR_CHANGE_MODE + | REGULATOR_CHANGE_STATUS, + }, + .num_consumer_supplies = ARRAY_SIZE(omap3evm_vaux2_supplies), + .consumer_supplies = omap3evm_vaux2_supplies, +}; + #ifdef CONFIG_WL12XX_PLATFORM_DATA #define OMAP3EVM_WLAN_PMENA_GPIO (150) @@ -510,6 +533,8 @@ static int __init omap3_evm_i2c_init(void) omap3evm_twldata.vdac->constraints.apply_uV = true; omap3evm_twldata.vpll2->constraints.apply_uV = true; + if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2) + omap3evm_twldata.vaux2 = &omap3evm_vaux2; omap3_pmic_init("twl4030", &omap3evm_twldata); omap_register_i2c_bus(2, 400, NULL, 0);