blob: 7c5fb4077443a8f84e4e610ea89c27247f4a03cb [file] [log] [blame]
Ilya Yanokd5ade292012-11-06 13:48:22 +00001/*
2 * Board data structure for musb gadget on OMAPs
3 *
4 * Copyright (C) 2012, Ilya Yanok <ilya.yanok@gmail.com>
5 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02006 * SPDX-License-Identifier: GPL-2.0+
Ilya Yanokd5ade292012-11-06 13:48:22 +00007 */
8
9#ifndef __ASM_ARM_OMAP_MUSB_H
10#define __ASM_ARM_OMAP_MUSB_H
11
12extern struct musb_platform_ops musb_dsps_ops;
Ilya Yanokcc0fcbf2012-11-06 13:48:25 +000013extern const struct musb_platform_ops am35x_ops;
Ilya Yanoka3292f22012-11-06 13:48:29 +000014extern const struct musb_platform_ops omap2430_ops;
Ilya Yanokd5ade292012-11-06 13:48:22 +000015
16struct omap_musb_board_data {
Ilya Yanoka3292f22012-11-06 13:48:29 +000017 u8 interface_type;
Mugunthan V N9224f612016-11-17 14:38:10 +053018 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 Yanokd5ade292012-11-06 13:48:22 +000022};
Ilya Yanoka3292f22012-11-06 13:48:29 +000023
24enum musb_interface {MUSB_INTERFACE_ULPI, MUSB_INTERFACE_UTMI};
Ilya Yanokd5ade292012-11-06 13:48:22 +000025#endif /* __ASM_ARM_OMAP_MUSB_H */