Blame view

include/dwc3-omap-uboot.h 730 Bytes
83d290c56   Tom Rini   SPDX: Convert all...
1
  /* SPDX-License-Identifier: GPL-2.0 */
93c376381   Kishon Vijay Abraham I   include: dwc3-oma...
2
3
4
5
6
  /* include/dwc3_omap_uboot.h
   *
   * Copyright (c) 2015 Texas Instruments Incorporated - http://www.ti.com
   *
   * Designware SuperSpeed OMAP Glue uboot init
93c376381   Kishon Vijay Abraham I   include: dwc3-oma...
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
   */
  
  #ifndef __DWC3_OMAP_UBOOT_H_
  #define __DWC3_OMAP_UBOOT_H_
  
  #include <linux/usb/dwc3-omap.h>
  
  enum omap_dwc3_vbus_id_status {
  	OMAP_DWC3_ID_FLOAT,
  	OMAP_DWC3_ID_GROUND,
  	OMAP_DWC3_VBUS_OFF,
  	OMAP_DWC3_VBUS_VALID,
  };
  
  struct dwc3_omap_device {
  	void *base;
57207657a   Kishon Vijay Abraham I   dwc3: dwc3-omap: ...
23
  	int index;
93c376381   Kishon Vijay Abraham I   include: dwc3-oma...
24
25
26
  	enum dwc3_omap_utmi_mode utmi_mode;
  	enum omap_dwc3_vbus_id_status vbus_id_status;
  };
c241d7eee   Kishon Vijay Abraham I   usb: dwc3: dwc3-o...
27
28
  
  int dwc3_omap_uboot_init(struct dwc3_omap_device *dev);
57207657a   Kishon Vijay Abraham I   dwc3: dwc3-omap: ...
29
  void dwc3_omap_uboot_exit(int index);
53de33fc0   Kishon Vijay Abraham I   usb: dwc3: dwc3-o...
30
  int dwc3_omap_uboot_interrupt_status(int index);
93c376381   Kishon Vijay Abraham I   include: dwc3-oma...
31
  #endif /* __DWC3_OMAP_UBOOT_H_ */