From patchwork Tue Jul 7 11:15:22 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 34410 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n67BGKwf024702 for ; Tue, 7 Jul 2009 11:16:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752906AbZGGLQO (ORCPT ); Tue, 7 Jul 2009 07:16:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754620AbZGGLQO (ORCPT ); Tue, 7 Jul 2009 07:16:14 -0400 Received: from smtp.nokia.com ([192.100.105.134]:54820 "EHLO mgw-mx09.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752906AbZGGLQN (ORCPT ); Tue, 7 Jul 2009 07:16:13 -0400 Received: from esebh105.NOE.Nokia.com (esebh105.ntc.nokia.com [172.21.138.211]) by mgw-mx09.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id n67BFxIC007073; Tue, 7 Jul 2009 06:16:14 -0500 Received: from vaebh104.NOE.Nokia.com ([10.160.244.30]) by esebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 7 Jul 2009 14:15:49 +0300 Received: from mgw-da02.ext.nokia.com ([147.243.128.26]) by vaebh104.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Tue, 7 Jul 2009 14:15:48 +0300 Received: from localhost.localdomain (esdhcp03571.research.nokia.com [172.21.35.71]) by mgw-da02.ext.nokia.com (Switch-3.2.6/Switch-3.2.6) with ESMTP id n67BFfES018492; Tue, 7 Jul 2009 14:15:42 +0300 From: Roger Quadros To: tony@atomide.com Cc: felipe.balbi@nokia.com, linux-omap@vger.kernel.org Subject: [PATCH v2] OMAP3: RX51: Define TWL4030 USB transceiver in board file Date: Tue, 7 Jul 2009 14:15:22 +0300 Message-Id: <1246965322-14449-1-git-send-email-ext-roger.quadros@nokia.com> X-Mailer: git-send-email 1.6.0.4 X-OriginalArrivalTime: 07 Jul 2009 11:15:48.0779 (UTC) FILETIME=[47DB27B0:01C9FEF4] X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Add OTG transceiver to RX51 platform data to prevent kernel NULL pointer dereference during MUSB initialisation. Signed-off-by: Roger Quadros Signed-off-by: Felipe Balbi --- arch/arm/mach-omap2/board-rx51-peripherals.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index 9a0bf67..56d931a 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c @@ -278,6 +278,10 @@ static struct twl4030_gpio_platform_data rx51_gpio_data = { .setup = rx51_twlgpio_setup, }; +static struct twl4030_usb_data rx51_usb_data = { + .usb_mode = T2_USB_MODE_ULPI, +}; + static struct twl4030_platform_data rx51_twldata = { .irq_base = TWL4030_IRQ_BASE, .irq_end = TWL4030_IRQ_END, @@ -286,6 +290,7 @@ static struct twl4030_platform_data rx51_twldata = { .gpio = &rx51_gpio_data, .keypad = &rx51_kp_data, .madc = &rx51_madc_data, + .usb = &rx51_usb_data, .vaux1 = &rx51_vaux1, .vaux2 = &rx51_vaux2,