treewide: replace GPLv2 long form headers with SPDX header
[coreboot.git] / src / soc / intel / apollolake / include / soc / usb.h
blobb2dc65dd6227651dc44afd6102465550c0621200
1 /* This file is part of the coreboot project. */
2 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 #ifndef _SOC_APOLLOLAKE_USB_H_
5 #define _SOC_APOLLOLAKE_USB_H_
7 #include <stdint.h>
9 #define APOLLOLAKE_USB2_PORT_MAX 8
10 #define APOLLOLAKE_USB3_PORT_MAX 6
12 struct usb_port_config {
13 uint8_t enable;
14 uint8_t oc_pin;
17 struct usb2_eye_per_port {
18 uint8_t Usb20PerPortTxPeHalf;
19 uint8_t Usb20PerPortPeTxiSet;
20 uint8_t Usb20PerPortTxiSet;
21 uint8_t Usb20HsSkewSel;
22 uint8_t Usb20IUsbTxEmphasisEn;
23 uint8_t Usb20PerPortRXISet;
24 uint8_t Usb20HsNpreDrvSel;
25 uint8_t Usb20OverrideEn;
28 /* USB overcurrent pins definition */
29 enum {
30 OC0 = 0,
31 OC1 = 1,
32 OC_SKIP = 2,
35 #define PORT_EN(pin) { \
36 .enable = 1, \
37 .oc_pin = (pin), \
40 #define PORT_DIS { \
41 .enable = 0, \
42 .oc_pin = OC_SKIP, \
45 #endif /* _SOC_APOLLOLAKE_USB_H_ */