coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
usb.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #ifndef _SOC_APOLLOLAKE_USB_H_
4 #define _SOC_APOLLOLAKE_USB_H_
5 
6 #include <stdint.h>
7 
8 #define APOLLOLAKE_USB2_PORT_MAX 8
9 #define APOLLOLAKE_USB3_PORT_MAX 6
10 
14 };
15 
25 };
26 
27 /* USB overcurrent pins definition */
28 enum {
29  OC0 = 0,
30  OC1 = 1,
31  OC_SKIP = 2,
32 };
33 
34 #define PORT_EN(pin) { \
35  .enable = 1, \
36  .oc_pin = (pin), \
37 }
38 
39 #define PORT_DIS { \
40  .enable = 0, \
41  .oc_pin = OC_SKIP, \
42 }
43 
44 #endif /* _SOC_APOLLOLAKE_USB_H_ */
@ OC0
Definition: usb.h:39
@ OC_SKIP
Definition: usb.h:48
@ OC1
Definition: usb.h:40
unsigned char uint8_t
Definition: stdint.h:8
uint8_t Usb20HsSkewSel
Definition: usb.h:20
uint8_t Usb20PerPortRXISet
Definition: usb.h:22
uint8_t Usb20IUsbTxEmphasisEn
Definition: usb.h:21
uint8_t Usb20PerPortTxPeHalf
Definition: usb.h:17
uint8_t Usb20PerPortTxiSet
Definition: usb.h:19
uint8_t Usb20HsNpreDrvSel
Definition: usb.h:23
uint8_t Usb20OverrideEn
Definition: usb.h:24
uint8_t Usb20PerPortPeTxiSet
Definition: usb.h:18
uint8_t oc_pin
Definition: usb.h:13
uint8_t enable
Definition: usb.h:12