From patchwork Tue Aug 23 15:16:35 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: 1088832 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 p7NFHQ0W023395 for ; Tue, 23 Aug 2011 15:17:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755340Ab1HWPRL (ORCPT ); Tue, 23 Aug 2011 11:17:11 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:41285 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755172Ab1HWPRI (ORCPT ); Tue, 23 Aug 2011 11:17:08 -0400 Received: by fxh19 with SMTP id 19so310170fxh.19 for ; Tue, 23 Aug 2011 08:17:07 -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=9V0J4DdhvlkAp0bZb6p16X+xZvBhT+Ps+dehe2RBuDk=; b=M2mcKd8y6oaMZrcsbnXhZgFOAdYaO6UdHFSh45fDssjSfb+nf9+EeSK1YimrMFVTWa 3tvqRocXR2tBdbgSi7o8TqBQofhG+sAL/BmgcRCppnD+xm5+u8gHvw/A3oIgZrRrelWs +lIG+UM0fsgzvQQw1Lnj6lf1mzapthRs79CL4= Received: by 10.223.59.73 with SMTP id k9mr5512911fah.138.1314112627589; Tue, 23 Aug 2011 08:17:07 -0700 (PDT) Received: from localhost.localdomain ([213.144.218.64]) by mx.google.com with ESMTPS id i16sm42310faa.21.2011.08.23.08.17.06 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 23 Aug 2011 08:17:07 -0700 (PDT) From: Bryan DE FARIA To: tony@atomide.com Cc: Bryan DE FARIA , linux-omap@vger.kernel.org Subject: [PATCH] OMAP3EVM: ehci: Fix EHCI support Date: Tue, 23 Aug 2011 17:16:35 +0200 Message-Id: <1314112595-14849-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]); Tue, 23 Aug 2011 15:17:27 +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 | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index c452b3f..ce09e9e 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) @@ -645,6 +668,7 @@ static void __init omap3_evm_init(void) usb_nop_xceiv_register(); if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2) { + omap3evm_twldata.vaux2 = &omap3evm_vaux2; /* enable EHCI VBUS using GPIO22 */ omap_mux_init_gpio(OMAP3_EVM_EHCI_VBUS, OMAP_PIN_INPUT_PULLUP); /* Select EHCI port on main board */