From patchwork Fri Aug 26 11:11:46 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Kumar Gupta X-Patchwork-Id: 1101992 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 p7QBCGMp019992 for ; Fri, 26 Aug 2011 11:12:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752096Ab1HZLME (ORCPT ); Fri, 26 Aug 2011 07:12:04 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:60783 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751316Ab1HZLL6 (ORCPT ); Fri, 26 Aug 2011 07:11:58 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id p7QBBr8K026752 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 26 Aug 2011 06:11:56 -0500 Received: from dbde70.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id p7QBBqcd012665; Fri, 26 Aug 2011 16:41:52 +0530 (IST) Received: from dbdp31.itg.ti.com (172.24.170.98) by DBDE70.ent.ti.com (172.24.170.148) with Microsoft SMTP Server id 8.3.106.1; Fri, 26 Aug 2011 16:41:52 +0530 Received: from psplinux050.india.ti.com (psplinux050.india.ti.com [172.24.162.243]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id p7QBBqpx013915; Fri, 26 Aug 2011 16:41:52 +0530 (IST) Received: (from a0393629@localhost) by psplinux050.india.ti.com (8.13.1/8.13.8/Submit) id p7QBBqFG002328; Fri, 26 Aug 2011 16:41:52 +0530 From: Ajay Kumar Gupta To: CC: , , , Ravi B , Ajay Kumar Gupta Subject: [PATCH 4/6] ti816evm: Add support for musb interface Date: Fri, 26 Aug 2011 16:41:46 +0530 Message-ID: <1314357108-2279-5-git-send-email-ajay.gupta@ti.com> X-Mailer: git-send-email 1.6.2.4 In-Reply-To: <1314357108-2279-1-git-send-email-ajay.gupta@ti.com> References: <1314357108-2279-1-git-send-email-ajay.gupta@ti.com> MIME-Version: 1.0 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]); Fri, 26 Aug 2011 11:12:17 +0000 (UTC) From: Ravi B Adding musb support in ti816 EVM board file. Signed-off-by: Ajay Kumar Gupta Signed-off-by: Ravi B --- arch/arm/mach-omap2/board-ti8168evm.c | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-ti8168evm.c b/arch/arm/mach-omap2/board-ti8168evm.c index e516a04..77200d4 100644 --- a/arch/arm/mach-omap2/board-ti8168evm.c +++ b/arch/arm/mach-omap2/board-ti8168evm.c @@ -23,6 +23,20 @@ #include #include #include +#include + +static struct omap_musb_board_data musb_board_data = { + .set_phy_power = ti81xx_musb_phy_power, + .interface_type = MUSB_INTERFACE_ULPI, +#ifdef CONFIG_USB_MUSB_OTG + .mode = MUSB_OTG, +#elif defined(CONFIG_USB_MUSB_HDRC_HCD) + .mode = MUSB_HOST, +#elif defined(CONFIG_USB_GADGET_MUSB_HDRC) + .mode = MUSB_PERIPHERAL, +#endif + .power = 500, +}; static struct omap_board_config_kernel ti8168_evm_config[] __initdata = { }; @@ -38,6 +52,7 @@ static void __init ti8168_evm_init(void) omap_serial_init(); omap_board_config = ti8168_evm_config; omap_board_config_size = ARRAY_SIZE(ti8168_evm_config); + usb_musb_init(&musb_board_data); } static void __init ti8168_evm_map_io(void)