2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2012-11-06 13:48:22 +00:00
|
|
|
/*
|
|
|
|
* Board data structure for musb gadget on OMAPs
|
|
|
|
*
|
|
|
|
* Copyright (C) 2012, Ilya Yanok <ilya.yanok@gmail.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_ARM_OMAP_MUSB_H
|
|
|
|
#define __ASM_ARM_OMAP_MUSB_H
|
2018-12-04 10:30:57 +00:00
|
|
|
#include <linux/usb/musb.h>
|
2012-11-06 13:48:22 +00:00
|
|
|
|
|
|
|
extern struct musb_platform_ops musb_dsps_ops;
|
2012-11-06 13:48:25 +00:00
|
|
|
extern const struct musb_platform_ops am35x_ops;
|
2012-11-06 13:48:29 +00:00
|
|
|
extern const struct musb_platform_ops omap2430_ops;
|
2012-11-06 13:48:22 +00:00
|
|
|
|
|
|
|
struct omap_musb_board_data {
|
2012-11-06 13:48:29 +00:00
|
|
|
u8 interface_type;
|
2016-11-17 09:08:10 +00:00
|
|
|
struct udevice *dev;
|
|
|
|
void (*set_phy_power)(struct udevice *dev, u8 on);
|
|
|
|
void (*clear_irq)(struct udevice *dev);
|
|
|
|
void (*reset)(struct udevice *dev);
|
2012-11-06 13:48:22 +00:00
|
|
|
};
|
2012-11-06 13:48:29 +00:00
|
|
|
|
|
|
|
enum musb_interface {MUSB_INTERFACE_ULPI, MUSB_INTERFACE_UTMI};
|
2018-12-04 10:30:57 +00:00
|
|
|
|
|
|
|
struct ti_musb_platdata {
|
|
|
|
void *base;
|
|
|
|
void *ctrl_mod_base;
|
|
|
|
struct musb_hdrc_platform_data plat;
|
|
|
|
};
|
|
|
|
|
2012-11-06 13:48:22 +00:00
|
|
|
#endif /* __ASM_ARM_OMAP_MUSB_H */
|