* [PATCH 3/4] USB: MUSB: Add OMAP4 support in MUSB driver
@ 2010-02-25 6:36 Maulik Mankad
2010-02-25 10:20 ` Sergei Shtylyov
0 siblings, 1 reply; 3+ messages in thread
From: Maulik Mankad @ 2010-02-25 6:36 UTC (permalink / raw)
To: linux-usb-u79uwXL29TY76Z2rM5mHXA
Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA, Maulik Mankad, Felipe Balbi,
Greg Kroah-Hartman, David Brownell
This patch adds CONFIG_ARCH_OMAP4 macro within MUSB driver
code and builds the MUSB driver for OMAP4.
Signed-off-by: Maulik Mankad <x0082077-l0cyMroinI0@public.gmane.org>
Cc: Felipe Balbi <felipe.balbi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
Cc: Greg Kroah-Hartman <gregkh-l3A5Bk7waGM@public.gmane.org>
Cc: David Brownell <david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
---
Index: mainline/drivers/usb/musb/Makefile
===================================================================
--- mainline.orig/drivers/usb/musb/Makefile
+++ mainline/drivers/usb/musb/Makefile
@@ -22,6 +22,10 @@ ifeq ($(CONFIG_ARCH_OMAP3430),y)
musb_hdrc-objs += omap2430.o
endif
+ifeq ($(CONFIG_ARCH_OMAP4),y)
+ musb_hdrc-objs += omap2430.o
+endif
+
ifeq ($(CONFIG_BF54x),y)
musb_hdrc-objs += blackfin.o
endif
Index: mainline/drivers/usb/musb/musb_core.c
===================================================================
--- mainline.orig/drivers/usb/musb/musb_core.c
+++ mainline/drivers/usb/musb/musb_core.c
@@ -982,7 +982,8 @@ static void musb_shutdown(struct platfor
* more than selecting one of a bunch of predefined configurations.
*/
#if defined(CONFIG_USB_TUSB6010) || \
- defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP34XX)
+ defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP34XX) \
+ || defined(CONFIG_ARCH_OMAP4)
static ushort __initdata fifo_mode = 4;
#else
static ushort __initdata fifo_mode = 2;
@@ -1468,7 +1469,8 @@ static int __init musb_core_init(u16 mus
/*-------------------------------------------------------------------------*/
-#if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3430)
+#if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3430) || \
+ defined(CONFIG_ARCH_OMAP4)
static irqreturn_t generic_interrupt(int irq, void *__hci)
{
Index: mainline/drivers/usb/musb/musb_core.h
===================================================================
--- mainline.orig/drivers/usb/musb/musb_core.h
+++ mainline/drivers/usb/musb/musb_core.h
@@ -204,7 +204,8 @@ enum musb_g_ep0_state {
*/
#if defined(CONFIG_ARCH_DAVINCI) || defined(CONFIG_ARCH_OMAP2430) \
- || defined(CONFIG_ARCH_OMAP3430) || defined(CONFIG_BLACKFIN)
+ || defined(CONFIG_ARCH_OMAP3430) || defined(CONFIG_BLACKFIN) \
+ || defined(CONFIG_ARCH_OMAP4)
/* REVISIT indexed access seemed to
* misbehave (on DaVinci) for at least peripheral IN ...
*/
@@ -555,7 +556,8 @@ extern void musb_hnp_stop(struct musb *m
extern int musb_platform_set_mode(struct musb *musb, u8 musb_mode);
#if defined(CONFIG_USB_TUSB6010) || defined(CONFIG_BLACKFIN) || \
- defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP34XX)
+ defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP34XX) || \
+ defined(CONFIG_ARCH_OMAP4)
extern void musb_platform_try_idle(struct musb *musb, unsigned long timeout);
#else
#define musb_platform_try_idle(x, y) do {} while (0)
Index: mainline/drivers/usb/musb/omap2430.h
===================================================================
--- mainline.orig/drivers/usb/musb/omap2430.h
+++ mainline/drivers/usb/musb/omap2430.h
@@ -10,7 +10,8 @@
#ifndef __MUSB_OMAP243X_H__
#define __MUSB_OMAP243X_H__
-#if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3430)
+#if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3430) \
+ || defined(CONFIG_ARCH_OMAP4)
#include <mach/hardware.h>
#include <plat/usb.h>
@@ -23,6 +24,8 @@
#define OMAP_HSOTG_BASE (OMAP243X_HS_BASE)
#elif defined(CONFIG_ARCH_OMAP3430)
#define OMAP_HSOTG_BASE (OMAP34XX_HSUSB_OTG_BASE)
+#elif defined(CONFIG_ARCH_OMAP4)
+#define OMAP_HSOTG_BASE (OMAP44XX_HSUSB_OTG_BASE)
#endif
#define OMAP_HSOTG(offset) (OMAP_HSOTG_BASE + 0x400 + (offset))
#define OTG_REVISION OMAP_HSOTG(0x0)
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 3/4] USB: MUSB: Add OMAP4 support in MUSB driver
2010-02-25 6:36 [PATCH 3/4] USB: MUSB: Add OMAP4 support in MUSB driver Maulik Mankad
@ 2010-02-25 10:20 ` Sergei Shtylyov
[not found] ` <4B864F03.3070507-hkdhdckH98+B+jHODAdFcQ@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Sergei Shtylyov @ 2010-02-25 10:20 UTC (permalink / raw)
To: Maulik Mankad
Cc: linux-usb, linux-omap, Felipe Balbi, Greg Kroah-Hartman,
David Brownell
Hello.
Maulik Mankad wrote:
> This patch adds CONFIG_ARCH_OMAP4 macro within MUSB driver
> code and builds the MUSB driver for OMAP4.
>
> Signed-off-by: Maulik Mankad <x0082077@ti.com>
> Cc: Felipe Balbi <felipe.balbi@nokia.com>
> Cc: Greg Kroah-Hartman <gregkh@suse.de>
> Cc: David Brownell <david-b@pacbell.net>
> ---
> Index: mainline/drivers/usb/musb/Makefile
> ===================================================================
> --- mainline.orig/drivers/usb/musb/Makefile
> +++ mainline/drivers/usb/musb/Makefile
> @@ -22,6 +22,10 @@ ifeq ($(CONFIG_ARCH_OMAP3430),y)
> musb_hdrc-objs += omap2430.o
> endif
>
> +ifeq ($(CONFIG_ARCH_OMAP4),y)
> + musb_hdrc-objs += omap2430.o
> +endif
> +
> ifeq ($(CONFIG_BF54x),y)
> musb_hdrc-objs += blackfin.o
> endif
I think this should be combined with patch 2/4 which doesn't make
much sense otherwise...
WBR, Sergei
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH 3/4] USB: MUSB: Add OMAP4 support in MUSB driver
[not found] ` <4B864F03.3070507-hkdhdckH98+B+jHODAdFcQ@public.gmane.org>
@ 2010-02-26 8:43 ` Maulik
0 siblings, 0 replies; 3+ messages in thread
From: Maulik @ 2010-02-26 8:43 UTC (permalink / raw)
To: 'Sergei Shtylyov'
Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA,
linux-omap-u79uwXL29TY76Z2rM5mHXA, 'Felipe Balbi',
'Greg Kroah-Hartman', 'David Brownell'
Maulik Mankad wrote:
> This patch adds CONFIG_ARCH_OMAP4 macro within MUSB driver
> code and builds the MUSB driver for OMAP4.
>
> Signed-off-by: Maulik Mankad <x0082077-l0cyMroinI0@public.gmane.org>
> Cc: Felipe Balbi <felipe.balbi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
> Cc: Greg Kroah-Hartman <gregkh-l3A5Bk7waGM@public.gmane.org>
> Cc: David Brownell <david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
> ---
> Index: mainline/drivers/usb/musb/Makefile
> ===================================================================
> --- mainline.orig/drivers/usb/musb/Makefile
> +++ mainline/drivers/usb/musb/Makefile
> @@ -22,6 +22,10 @@ ifeq ($(CONFIG_ARCH_OMAP3430),y)
> musb_hdrc-objs += omap2430.o
> endif
>
> +ifeq ($(CONFIG_ARCH_OMAP4),y)
> + musb_hdrc-objs += omap2430.o
> +endif
> +
> ifeq ($(CONFIG_BF54x),y)
> musb_hdrc-objs += blackfin.o
> endif
>> I think this should be combined with patch 2/4 which doesn't make
>> much sense otherwise...
Sergei,
I shall take care of this in the next version.
Thanks,
Maulik
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-02-26 8:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-25 6:36 [PATCH 3/4] USB: MUSB: Add OMAP4 support in MUSB driver Maulik Mankad
2010-02-25 10:20 ` Sergei Shtylyov
[not found] ` <4B864F03.3070507-hkdhdckH98+B+jHODAdFcQ@public.gmane.org>
2010-02-26 8:43 ` Maulik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox