blob: 8b9cb0eb8f6134ef087a4929f711e52d542bc8a7 [file] [log] [blame]
Ilya Yanok37931f02012-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 Denk1a459662013-07-08 09:37:19 +02006 * SPDX-License-Identifier: GPL-2.0+
Ilya Yanok37931f02012-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 Yanok833a53c2012-11-06 13:48:25 +000013extern const struct musb_platform_ops am35x_ops;
Ilya Yanok673a5242012-11-06 13:48:29 +000014extern const struct musb_platform_ops omap2430_ops;
Ilya Yanok37931f02012-11-06 13:48:22 +000015
16struct omap_musb_board_data {
Ilya Yanok673a5242012-11-06 13:48:29 +000017 u8 interface_type;
Ilya Yanok37931f02012-11-06 13:48:22 +000018 void (*set_phy_power)(u8 on);
Ilya Yanok833a53c2012-11-06 13:48:25 +000019 void (*clear_irq)(void);
20 void (*reset)(void);
Ilya Yanok37931f02012-11-06 13:48:22 +000021};
Ilya Yanok673a5242012-11-06 13:48:29 +000022
23enum musb_interface {MUSB_INTERFACE_ULPI, MUSB_INTERFACE_UTMI};
Ilya Yanok37931f02012-11-06 13:48:22 +000024#endif /* __ASM_ARM_OMAP_MUSB_H */