1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) 2011 Marvell International Ltd. All rights reserved.
6 #ifndef __MV_PLATFORM_USB_H
7 #define __MV_PLATFORM_USB_H
19 struct mv_usb_addon_irq {
24 struct mv_usb_platform_data {
25 struct mv_usb_addon_irq *id; /* Only valid for OTG. ID pin change*/
26 struct mv_usb_addon_irq *vbus; /* valid for OTG/UDC. VBUS change*/
28 /* only valid for HCD. OTG or Host only*/
31 /* This flag is used for that needs id pin checked by otg */
32 unsigned int disable_otg_clock_gating:1;
33 /* Force a_bus_req to be asserted */
34 unsigned int otg_force_a_bus_req:1;
36 int (*phy_init)(void __iomem *regbase);
37 void (*phy_deinit)(void __iomem *regbase);
38 int (*set_vbus)(unsigned int vbus);