From patchwork Mon Jan 10 14:42:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Gadiyar X-Patchwork-Id: 469021 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 p0AEhEwL021096 for ; Mon, 10 Jan 2011 14:43:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754171Ab1AJOmn (ORCPT ); Mon, 10 Jan 2011 09:42:43 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:42741 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754150Ab1AJOmm (ORCPT ); Mon, 10 Jan 2011 09:42:42 -0500 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id p0AEgNZn020239 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 10 Jan 2011 08:42:25 -0600 Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id p0AEgGHl016150; Mon, 10 Jan 2011 20:12:17 +0530 (IST) Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by linfarm476.india.ti.com (8.12.11/8.12.11) with ESMTP id p0AEgG1f009091; Mon, 10 Jan 2011 20:12:16 +0530 Received: (from a0393673@localhost) by linfarm476.india.ti.com (8.12.11/8.12.11/Submit) id p0AEgFKh009088; Mon, 10 Jan 2011 20:12:15 +0530 From: Anand Gadiyar To: linux-omap@vger.kernel.org, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Greg KH , Felipe Balbi , Stephen Rothwell , Anand Gadiyar , Benoit Cousson , Paul Walmsley , Tony Lindgren Subject: [PATCH] arm: omap4: pandaboard: turn on PHY reference clock at init Date: Mon, 10 Jan 2011 20:12:15 +0530 Message-Id: <1294670535-9059-1-git-send-email-gadiyar@ti.com> X-Mailer: git-send-email 1.5.6.6 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 (demeter1.kernel.org [140.211.167.41]); Mon, 10 Jan 2011 14:43:14 +0000 (UTC) Index: linux-2.6/arch/arm/mach-omap2/board-omap4panda.c =================================================================== --- linux-2.6.orig/arch/arm/mach-omap2/board-omap4panda.c +++ linux-2.6/arch/arm/mach-omap2/board-omap4panda.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -95,7 +96,16 @@ static const struct ehci_hcd_omap_platfo static void __init omap4_ehci_init(void) { int ret; + struct clk *phy_ref_clk; + /* FREF_CLK3 provides the 19.2 MHz reference clock to the PHY */ + phy_ref_clk = clk_get(NULL, "auxclk3_ck"); + if (IS_ERR(phy_ref_clk)) { + pr_err("Cannot request auxclk3\n"); + goto error1; + } + clk_set_rate(phy_ref_clk, 19200000); + clk_enable(phy_ref_clk); /* disable the power to the usb hub prior to init */ ret = gpio_request(GPIO_HUB_POWER, "hub_power");