blob: 875f1002af88a5f8dbb2f1a86c6657bac3e3ef62 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Ilya Yanokd5ade292012-11-06 13:48:22 +00002/*
3 * Board data structure for musb gadget on OMAPs
4 *
5 * Copyright (C) 2012, Ilya Yanok <ilya.yanok@gmail.com>
Ilya Yanokd5ade292012-11-06 13:48:22 +00006 */
7
8#ifndef __ASM_ARM_OMAP_MUSB_H
9#define __ASM_ARM_OMAP_MUSB_H
10
11extern struct musb_platform_ops musb_dsps_ops;
Ilya Yanokcc0fcbf2012-11-06 13:48:25 +000012extern const struct musb_platform_ops am35x_ops;
Ilya Yanoka3292f22012-11-06 13:48:29 +000013extern const struct musb_platform_ops omap2430_ops;
Ilya Yanokd5ade292012-11-06 13:48:22 +000014
15struct omap_musb_board_data {
Ilya Yanoka3292f22012-11-06 13:48:29 +000016 u8 interface_type;
Mugunthan V N9224f612016-11-17 14:38:10 +053017 struct udevice *dev;
18 void (*set_phy_power)(struct udevice *dev, u8 on);
19 void (*clear_irq)(struct udevice *dev);
20 void (*reset)(struct udevice *dev);
Ilya Yanokd5ade292012-11-06 13:48:22 +000021};
Ilya Yanoka3292f22012-11-06 13:48:29 +000022
23enum musb_interface {MUSB_INTERFACE_ULPI, MUSB_INTERFACE_UTMI};
Ilya Yanokd5ade292012-11-06 13:48:22 +000024#endif /* __ASM_ARM_OMAP_MUSB_H */