Skip to content

Commit

Permalink
ARM: OMAP2: MUSB: Specify omap4 has mailbox
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kishon Vijay Abraham I authored and Greg Kroah-Hartman committed Feb 6, 2013
1 parent 3627335 commit fa1dfe4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm/mach-omap2/usb-musb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 2 additions & 0 deletions include/linux/usb/musb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit fa1dfe4

Please sign in to comment.