From patchwork Wed May 12 11:49:35 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Kumar Gupta X-Patchwork-Id: 98995 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4CBo0Bi030402 for ; Wed, 12 May 2010 11:50:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755771Ab0ELLtp (ORCPT ); Wed, 12 May 2010 07:49:45 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:58118 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755572Ab0ELLtp (ORCPT ); Wed, 12 May 2010 07:49:45 -0400 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id o4CBnf3X031402 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 12 May 2010 06:49:44 -0500 Received: from psplinux050.india.ti.com (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id o4CBndlg016171; Wed, 12 May 2010 17:19:40 +0530 (IST) Received: from psplinux050.india.ti.com (localhost [127.0.0.1]) by psplinux050.india.ti.com (8.13.1/8.13.1) with ESMTP id o4CBndg4000531; Wed, 12 May 2010 17:19:39 +0530 Received: (from a0393629@localhost) by psplinux050.india.ti.com (8.13.1/8.13.1/Submit) id o4CBndYU000526; Wed, 12 May 2010 17:19:39 +0530 From: Ajay Kumar Gupta To: linux-usb@vger.kernel.org Cc: linux-omap@vger.kernel.org, Ajay Kumar Gupta Subject: [PATCH 1/5] musb: save OTG base physical address Date: Wed, 12 May 2010 17:19:35 +0530 Message-Id: <1273664979-493-1-git-send-email-ajay.gupta@ti.com> X-Mailer: git-send-email 1.6.2.4 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.3 (demeter.kernel.org [140.211.167.41]); Wed, 12 May 2010 11:50:00 +0000 (UTC) diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 4e327f5..adb142d 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -1867,7 +1867,8 @@ static void musb_free(struct musb *musb) * not yet corrected for platform-specific offsets */ static int __init -musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl) +musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl, + phys_addr_t ctrl_phys_addr) { int status; struct musb *musb; @@ -1919,6 +1920,7 @@ bad_config: musb->board_set_power = plat->set_power; musb->set_clock = plat->set_clock; musb->min_power = plat->min_power; + musb->ctrl_phys_base = ctrl_phys_addr; /* Clock usage is chip-specific ... functional clock (DaVinci, * OMAP2430), or PHY ref (some TUSB6010 boards). All this core @@ -2136,7 +2138,7 @@ static int __init musb_probe(struct platform_device *pdev) /* clobbered by use_dma=n */ orig_dma_mask = dev->dma_mask; #endif - status = musb_init_controller(dev, irq, base); + status = musb_init_controller(dev, irq, base, iomem->start); if (status < 0) iounmap(base); diff --git a/drivers/usb/musb/musb_core.h b/drivers/usb/musb/musb_core.h index ac17b00..d001894 100644 --- a/drivers/usb/musb/musb_core.h +++ b/drivers/usb/musb/musb_core.h @@ -367,6 +367,7 @@ struct musb { struct device *controller; void __iomem *ctrl_base; + phys_addr_t ctrl_phys_base; void __iomem *mregs; #ifdef CONFIG_USB_TUSB6010