ARM: OMAP2: MUSB: Specify omap4 has mailbox
authorKishon Vijay Abraham I <kishon@ti.com>
Wed, 6 Feb 2013 13:28:49 +0000 (18:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Feb 2013 19:40:13 +0000 (11:40 -0800)
Added has_mailbox to the musb platform data to specify that omap uses
an external mailbox (in control module) to communicate with the musb
core during device connect and disconnect.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-omap2/usb-musb.c
include/linux/usb/musb.h

index 7b33b375fe77d0f816268b0ce0e8f2f189203d3f..9d27e3f8a09c14c626035ae868e48e0a3ea7426f 100644 (file)
@@ -85,6 +85,9 @@ void __init usb_musb_init(struct omap_musb_board_data *musb_board_data)
        musb_plat.mode = board_data->mode;
        musb_plat.extvbus = board_data->extvbus;
 
+       if (cpu_is_omap44xx())
+               musb_plat.has_mailbox = true;
+
        if (soc_is_am35xx()) {
                oh_name = "am35x_otg_hs";
                name = "musb-am35x";
index eb505250940af073cd1059f82c4e48d773df3acb..053c26841cc39bde245acac370e152189f256814 100644 (file)
@@ -99,6 +99,8 @@ struct musb_hdrc_platform_data {
        /* MUSB_HOST, MUSB_PERIPHERAL, or MUSB_OTG */
        u8              mode;
 
+       u8              has_mailbox:1;
+
        /* for clk_get() */
        const char      *clock;