Skip to content

Commit fa1dfe4

Browse files
kishongregkh
authored andcommitted
ARM: OMAP2: MUSB: Specify omap4 has mailbox
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>
1 parent 3627335 commit fa1dfe4

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎arch/arm/mach-omap2/usb-musb.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ void __init usb_musb_init(struct omap_musb_board_data *musb_board_data)
8585
musb_plat.mode = board_data->mode;
8686
musb_plat.extvbus = board_data->extvbus;
8787

88+
if (cpu_is_omap44xx())
89+
musb_plat.has_mailbox = true;
90+
8891
if (soc_is_am35xx()) {
8992
oh_name = "am35x_otg_hs";
9093
name = "musb-am35x";

‎include/linux/usb/musb.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ struct musb_hdrc_platform_data {
9999
/* MUSB_HOST, MUSB_PERIPHERAL, or MUSB_OTG */
100100
u8 mode;
101101

102+
u8 has_mailbox:1;
103+
102104
/* for clk_get() */
103105
const char *clock;
104106

0 commit comments

Comments
 (0)