xref: /rk3399_rockchip-uboot/arch/arm/include/asm/omap_musb.h (revision 73eed452b9c9827474c0789c30729dca6fcf061d)
137931f02SIlya Yanok /*
237931f02SIlya Yanok  * Board data structure for musb gadget on OMAPs
337931f02SIlya Yanok  *
437931f02SIlya Yanok  * Copyright (C) 2012, Ilya Yanok <ilya.yanok@gmail.com>
537931f02SIlya Yanok  *
61a459660SWolfgang Denk  * SPDX-License-Identifier:	GPL-2.0+
737931f02SIlya Yanok  */
837931f02SIlya Yanok 
937931f02SIlya Yanok #ifndef __ASM_ARM_OMAP_MUSB_H
1037931f02SIlya Yanok #define __ASM_ARM_OMAP_MUSB_H
1137931f02SIlya Yanok 
1237931f02SIlya Yanok extern struct musb_platform_ops musb_dsps_ops;
13833a53c6SIlya Yanok extern const struct musb_platform_ops am35x_ops;
14673a524bSIlya Yanok extern const struct musb_platform_ops omap2430_ops;
1537931f02SIlya Yanok 
1637931f02SIlya Yanok struct omap_musb_board_data {
17673a524bSIlya Yanok 	u8 interface_type;
18*1cac34ceSMugunthan V N 	struct udevice *dev;
19*1cac34ceSMugunthan V N 	void (*set_phy_power)(struct udevice *dev, u8 on);
20*1cac34ceSMugunthan V N 	void (*clear_irq)(struct udevice *dev);
21*1cac34ceSMugunthan V N 	void (*reset)(struct udevice *dev);
2237931f02SIlya Yanok };
23673a524bSIlya Yanok 
24673a524bSIlya Yanok enum musb_interface    {MUSB_INTERFACE_ULPI, MUSB_INTERFACE_UTMI};
2537931f02SIlya Yanok #endif /* __ASM_ARM_OMAP_MUSB_H */
26