From patchwork Fri Aug 26 11:11:47 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: 1101972 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 p7QBCGMn019992 for ; Fri, 26 Aug 2011 11:12:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751808Ab1HZLMA (ORCPT ); Fri, 26 Aug 2011 07:12:00 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:41325 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750747Ab1HZLL6 (ORCPT ); Fri, 26 Aug 2011 07:11:58 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id p7QBBr2N031742 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 26 Aug 2011 06:11:56 -0500 Received: from dbde71.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id p7QBBqgK012661; Fri, 26 Aug 2011 16:41:53 +0530 (IST) Received: from dbdp31.itg.ti.com (172.24.170.98) by DBDE71.ent.ti.com (172.24.170.149) with Microsoft SMTP Server id 8.3.106.1; Fri, 26 Aug 2011 16:41:53 +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 p7QBBqGA013919; 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 p7QBBqwk002331; Fri, 26 Aug 2011 16:41:52 +0530 From: Ajay Kumar Gupta To: CC: , , , Ravi B , Ajay Kumar Gupta Subject: [PATCH 5/6] ti814evm: Add support for musb interface Date: Fri, 26 Aug 2011 16:41:47 +0530 Message-ID: <1314357108-2279-6-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:16 +0000 (UTC) From: Ravi B Adding musb support in ti814 EVM board file. Signed-off-by: Ajay Kumar Gupta Signed-off-by: Ravi B --- arch/arm/mach-omap2/board-ti8148evm.c | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-ti8148evm.c b/arch/arm/mach-omap2/board-ti8148evm.c index 588d6b7..d9c8505 100644 --- a/arch/arm/mach-omap2/board-ti8148evm.c +++ b/arch/arm/mach-omap2/board-ti8148evm.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 ti8148_evm_config[] __initdata = { }; @@ -38,6 +52,7 @@ static void __init ti8148_evm_init(void) omap_serial_init(); omap_board_config = ti8148_evm_config; omap_board_config_size = ARRAY_SIZE(ti8148_evm_config); + usb_musb_init(&musb_board_data); } static void __init ti8148_evm_map_io(void)