Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Ilya Yanok | d5ade29 | 2012-11-06 13:48:22 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Board data structure for musb gadget on OMAPs |
| 4 | * |
| 5 | * Copyright (C) 2012, Ilya Yanok <ilya.yanok@gmail.com> |
Ilya Yanok | d5ade29 | 2012-11-06 13:48:22 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __ASM_ARM_OMAP_MUSB_H |
| 9 | #define __ASM_ARM_OMAP_MUSB_H |
Jean-Jacques Hiblot | 57118f6 | 2018-12-04 11:30:57 +0100 | [diff] [blame] | 10 | #include <linux/usb/musb.h> |
Ilya Yanok | d5ade29 | 2012-11-06 13:48:22 +0000 | [diff] [blame] | 11 | |
| 12 | extern struct musb_platform_ops musb_dsps_ops; |
Ilya Yanok | cc0fcbf | 2012-11-06 13:48:25 +0000 | [diff] [blame] | 13 | extern const struct musb_platform_ops am35x_ops; |
Ilya Yanok | a3292f2 | 2012-11-06 13:48:29 +0000 | [diff] [blame] | 14 | extern const struct musb_platform_ops omap2430_ops; |
Ilya Yanok | d5ade29 | 2012-11-06 13:48:22 +0000 | [diff] [blame] | 15 | |
| 16 | struct omap_musb_board_data { |
Ilya Yanok | a3292f2 | 2012-11-06 13:48:29 +0000 | [diff] [blame] | 17 | u8 interface_type; |
Mugunthan V N | 9224f61 | 2016-11-17 14:38:10 +0530 | [diff] [blame] | 18 | struct udevice *dev; |
| 19 | void (*set_phy_power)(struct udevice *dev, u8 on); |
| 20 | void (*clear_irq)(struct udevice *dev); |
| 21 | void (*reset)(struct udevice *dev); |
Ilya Yanok | d5ade29 | 2012-11-06 13:48:22 +0000 | [diff] [blame] | 22 | }; |
Ilya Yanok | a3292f2 | 2012-11-06 13:48:29 +0000 | [diff] [blame] | 23 | |
| 24 | enum musb_interface {MUSB_INTERFACE_ULPI, MUSB_INTERFACE_UTMI}; |
Jean-Jacques Hiblot | 57118f6 | 2018-12-04 11:30:57 +0100 | [diff] [blame] | 25 | |
| 26 | struct ti_musb_platdata { |
| 27 | void *base; |
| 28 | void *ctrl_mod_base; |
| 29 | struct musb_hdrc_platform_data plat; |
| 30 | }; |
| 31 | |
Ilya Yanok | d5ade29 | 2012-11-06 13:48:22 +0000 | [diff] [blame] | 32 | #endif /* __ASM_ARM_OMAP_MUSB_H */ |