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 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 6 | * SPDX-License-Identifier: GPL-2.0+ |
Ilya Yanok | 37931f0 | 2012-11-06 13:48:22 +0000 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef __ASM_ARM_OMAP_MUSB_H |
| 10 | #define __ASM_ARM_OMAP_MUSB_H |
| 11 | |
| 12 | extern struct musb_platform_ops musb_dsps_ops; |
Ilya Yanok | 833a53c | 2012-11-06 13:48:25 +0000 | [diff] [blame] | 13 | extern const struct musb_platform_ops am35x_ops; |
Ilya Yanok | 673a524 | 2012-11-06 13:48:29 +0000 | [diff] [blame] | 14 | extern const struct musb_platform_ops omap2430_ops; |
Ilya Yanok | 37931f0 | 2012-11-06 13:48:22 +0000 | [diff] [blame] | 15 | |
| 16 | struct omap_musb_board_data { |
Ilya Yanok | 673a524 | 2012-11-06 13:48:29 +0000 | [diff] [blame] | 17 | u8 interface_type; |
Ilya Yanok | 37931f0 | 2012-11-06 13:48:22 +0000 | [diff] [blame] | 18 | void (*set_phy_power)(u8 on); |
Ilya Yanok | 833a53c | 2012-11-06 13:48:25 +0000 | [diff] [blame] | 19 | void (*clear_irq)(void); |
| 20 | void (*reset)(void); |
Ilya Yanok | 37931f0 | 2012-11-06 13:48:22 +0000 | [diff] [blame] | 21 | }; |
Ilya Yanok | 673a524 | 2012-11-06 13:48:29 +0000 | [diff] [blame] | 22 | |
| 23 | enum musb_interface {MUSB_INTERFACE_ULPI, MUSB_INTERFACE_UTMI}; |
Ilya Yanok | 37931f0 | 2012-11-06 13:48:22 +0000 | [diff] [blame] | 24 | #endif /* __ASM_ARM_OMAP_MUSB_H */ |