diff options
author | Roger Quadros <rogerq@ti.com> | 2013-03-20 11:44:41 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2013-04-02 12:59:52 -0400 |
commit | 5ecd52e563f1e14f9cfe06130fbf9fdb73f227e8 (patch) | |
tree | 5427973620998b18d2843b7143f868cc1122ef8b /arch/arm/mach-omap2/usb.h | |
parent | 1f0972f5b05a674d73e4eb314fa1b6c78e37aef1 (diff) |
ARM: OMAP2+: omap-usb-host: Add usbhs_init_phys()
This helper allows board support code to add the PHY's
VCC and RESET regulators which are GPIO controlled as well
as the NOP PHY device.
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/usb.h')
-rw-r--r-- | arch/arm/mach-omap2/usb.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/usb.h b/arch/arm/mach-omap2/usb.h index 3319f5cf47a3..e7261ebcf7b0 100644 --- a/arch/arm/mach-omap2/usb.h +++ b/arch/arm/mach-omap2/usb.h | |||
@@ -53,8 +53,17 @@ | |||
53 | #define USBPHY_OTGSESSEND_EN (1 << 20) | 53 | #define USBPHY_OTGSESSEND_EN (1 << 20) |
54 | #define USBPHY_DATA_POLARITY (1 << 23) | 54 | #define USBPHY_DATA_POLARITY (1 << 23) |
55 | 55 | ||
56 | struct usbhs_phy_data { | ||
57 | int port; /* 1 indexed port number */ | ||
58 | int reset_gpio; | ||
59 | int vcc_gpio; | ||
60 | bool vcc_polarity; /* 1 active high, 0 active low */ | ||
61 | void *platform_data; | ||
62 | }; | ||
63 | |||
56 | extern void usb_musb_init(struct omap_musb_board_data *board_data); | 64 | extern void usb_musb_init(struct omap_musb_board_data *board_data); |
57 | extern void usbhs_init(struct usbhs_omap_platform_data *pdata); | 65 | extern void usbhs_init(struct usbhs_omap_platform_data *pdata); |
66 | extern int usbhs_init_phys(struct usbhs_phy_data *phy, int num_phys); | ||
58 | 67 | ||
59 | extern void am35x_musb_reset(void); | 68 | extern void am35x_musb_reset(void); |
60 | extern void am35x_musb_phy_power(u8 on); | 69 | extern void am35x_musb_phy_power(u8 on); |