blob: 8b9cb0eb8f6134ef087a4929f711e52d542bc8a7 [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;
Ilya Yanokd5ade292012-11-06 13:48:22 +000018 void (*set_phy_power)(u8 on);
Ilya Yanokcc0fcbf2012-11-06 13:48:25 +000019 void (*clear_irq)(void);
20 void (*reset)(void);
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 */