linux/drivers/usb/phy/phy-mv-usb.h

/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright (C) 2011 Marvell International Ltd. All rights reserved.
 */

#ifndef	__MV_USB_OTG_CONTROLLER__
#define __MV_USB_OTG_CONTROLLER__

#include <linux/types.h>

/* Command Register Bit Masks */
#define USBCMD_RUN_STOP
#define USBCMD_CTRL_RESET

/* otgsc Register Bit Masks */
#define OTGSC_CTRL_VUSB_DISCHARGE
#define OTGSC_CTRL_VUSB_CHARGE
#define OTGSC_CTRL_OTG_TERM
#define OTGSC_CTRL_DATA_PULSING
#define OTGSC_STS_USB_ID
#define OTGSC_STS_A_VBUS_VALID
#define OTGSC_STS_A_SESSION_VALID
#define OTGSC_STS_B_SESSION_VALID
#define OTGSC_STS_B_SESSION_END
#define OTGSC_STS_1MS_TOGGLE
#define OTGSC_STS_DATA_PULSING
#define OTGSC_INTSTS_USB_ID
#define OTGSC_INTSTS_A_VBUS_VALID
#define OTGSC_INTSTS_A_SESSION_VALID
#define OTGSC_INTSTS_B_SESSION_VALID
#define OTGSC_INTSTS_B_SESSION_END
#define OTGSC_INTSTS_1MS
#define OTGSC_INTSTS_DATA_PULSING
#define OTGSC_INTR_USB_ID
#define OTGSC_INTR_A_VBUS_VALID
#define OTGSC_INTR_A_SESSION_VALID
#define OTGSC_INTR_B_SESSION_VALID
#define OTGSC_INTR_B_SESSION_END
#define OTGSC_INTR_1MS_TIMER
#define OTGSC_INTR_DATA_PULSING

#define CAPLENGTH_MASK

/* Timer's interval, unit 10ms */
#define T_A_WAIT_VRISE
#define T_A_WAIT_BCON
#define T_A_AIDL_BDIS
#define T_A_BIDL_ADIS
#define T_B_ASE0_BRST
#define T_B_SE0_SRP
#define T_B_SRP_FAIL
#define T_B_DATA_PLS
#define T_B_SRP_INIT
#define T_A_SRP_RSPNS
#define T_A_DRV_RSM

enum otg_function {};

enum mv_otg_timer {};

/* PXA OTG state machine */
struct mv_otg_ctrl {};

#define VUSBHS_MAX_PORTS

struct mv_otg_regs {};

struct mv_otg {};

#endif