@@ -27,6 +27,15 @@ struct musb_hdrc_eps_bits {
u8 bits;
};
+/* MUSB board-specific details */
+struct musb_hdrc_board_data {
+ /* power (mA/2) sourcing capability */
+ u8 power;
+ /* (HOST or OTG) msec/2 after VBUS on till power good */
+ u8 potpgt;
+
+};
+
struct musb_hdrc_config {
/* MUSB configuration-specific details */
unsigned multipoint:1; /* multipoint device */
@@ -67,15 +76,9 @@ struct musb_hdrc_platform_data {
/* (HOST or OTG) switch VBUS on/off */
int (*set_vbus)(struct device *dev, int is_on);
- /* (HOST or OTG) mA/2 power supplied on (default = 8mA) */
- u8 power;
-
/* (PERIPHERAL) mA/2 max power consumed (default = 100mA) */
u8 min_power;
- /* (HOST or OTG) msec/2 after VBUS on till power good */
- u8 potpgt;
-
/* Power the device on or off */
int (*set_power)(int state);
@@ -84,6 +87,9 @@ struct musb_hdrc_platform_data {
/* MUSB configuration-specific details */
struct musb_hdrc_config *config;
+
+ /* MUSB board-specific details */
+ struct musb_hdrc_board_data *board_data;
};