2 * This is used to for host and peripheral modes of the driver for
3 * Inventra (Multidrop) Highspeed Dual-Role Controllers: (M)HDRC.
5 * Board initialization should put one of these into dev->platform_data,
6 * probably on some platform_device named "musb_hdrc". It encapsulates
7 * key configuration differences between boards.
10 /* The USB role is defined by the connector used on the board, so long as
11 * standards are being followed. (Developer boards sometimes won't.)
15 MUSB_HOST, /* A or Mini-A connector */
16 MUSB_PERIPHERAL, /* B or Mini-B connector */
17 MUSB_OTG /* Mini-AB connector */
20 struct musb_hdrc_platform_data {
21 /* MUSB_HOST, MUSB_PERIPHERAL, or MUSB_OTG */
24 /* (HOST or OTG) switch VBUS on/off */
25 int (*set_vbus)(struct device *dev, int is_on);
27 /* (HOST or OTG) mA/2 power supplied on (default = 8mA) */
30 /* (PERIPHERAL) mA/2 max power consumed (default = 100mA) */
33 /* (HOST or OTG) msec/2 after VBUS on till power good */
36 /* TBD: chip defaults should probably go someplace else,
37 * e.g. number of tx/rx endpoints, etc
39 unsigned multipoint:1;
41 /* Power the device on or off */
42 int (*set_power)(int state);
46 /* TUSB 6010 support */
48 #define TUSB6010_OSCCLK_60 16667 /* psec/clk @ 60.0 MHz */
49 #define TUSB6010_REFCLK_24 41667 /* psec/clk @ 24.0 MHz XI */
50 #define TUSB6010_REFCLK_19 52633 /* psec/clk @ 19.2 MHz CLKIN */
52 #ifdef CONFIG_ARCH_OMAP2
54 extern int __init tusb6010_setup_interface(
55 struct musb_hdrc_platform_data *data,
56 unsigned ps_refclk, unsigned waitpin,
57 unsigned async_cs, unsigned sync_cs,
58 unsigned irq, unsigned dmachan);
60 extern int tusb6010_platform_retime(unsigned is_refclk);