Ilya Yanok | 37931f0 | 2012-11-06 13:48:22 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Board data structure for musb gadget on OMAPs |
| 3 | * |
| 4 | * Copyright (C) 2012, Ilya Yanok <ilya.yanok@gmail.com> |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public License as |
| 8 | * published by the Free Software Foundation; either version 2 of |
| 9 | * the License, or (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR /PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | */ |
| 16 | |
| 17 | #ifndef __ASM_ARM_OMAP_MUSB_H |
| 18 | #define __ASM_ARM_OMAP_MUSB_H |
| 19 | |
| 20 | extern struct musb_platform_ops musb_dsps_ops; |
Ilya Yanok | 833a53c | 2012-11-06 13:48:25 +0000 | [diff] [blame] | 21 | extern const struct musb_platform_ops am35x_ops; |
Ilya Yanok | 673a524 | 2012-11-06 13:48:29 +0000 | [diff] [blame] | 22 | extern const struct musb_platform_ops omap2430_ops; |
Ilya Yanok | 37931f0 | 2012-11-06 13:48:22 +0000 | [diff] [blame] | 23 | |
| 24 | struct omap_musb_board_data { |
Ilya Yanok | 673a524 | 2012-11-06 13:48:29 +0000 | [diff] [blame] | 25 | u8 interface_type; |
Ilya Yanok | 37931f0 | 2012-11-06 13:48:22 +0000 | [diff] [blame] | 26 | void (*set_phy_power)(u8 on); |
Ilya Yanok | 833a53c | 2012-11-06 13:48:25 +0000 | [diff] [blame] | 27 | void (*clear_irq)(void); |
| 28 | void (*reset)(void); |
Ilya Yanok | 37931f0 | 2012-11-06 13:48:22 +0000 | [diff] [blame] | 29 | }; |
Ilya Yanok | 673a524 | 2012-11-06 13:48:29 +0000 | [diff] [blame] | 30 | |
| 31 | enum musb_interface {MUSB_INTERFACE_ULPI, MUSB_INTERFACE_UTMI}; |
Ilya Yanok | 37931f0 | 2012-11-06 13:48:22 +0000 | [diff] [blame] | 32 | #endif /* __ASM_ARM_OMAP_MUSB_H */ |