6 #include <soc/soc_chip.h>
8 #define XHCI_USB2_PORT_STATUS_REG 0x480
9 #define XHCI_USB3_PORT_STATUS_REG 0x500
10 #define XHCI_USB2_PORT_NUM 8
11 #define XHCI_USB3_PORT_NUM 6
13 #define XHCI_PMCTRL 0x80A4
15 #define PMCTRL_LFPS_OFFTIME_SHIFT 4
16 #define PMCTRL_LFPS_OFFTIME_MAX 0xF
41 "XHCI: The maximum LFPS sampling OFF time is %u ms, "
42 "cannot set it to %u ms\n",
53 "XHCI: Updated LFPS sampling OFF time to %u ms\n", time_ms);
62 config->xhci_lfps_sampling_offtime_ms);
#define printk(level,...)
struct resource * probe_resource(const struct device *dev, unsigned int index)
See if a resource structure already exists for a given index.
#define clrsetbits32(addr, clear, set)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
#define PCI_BASE_ADDRESS_0
const struct xhci_usb_info * soc_get_xhci_usb_info(pci_devfn_t xhci_dev)
#define XHCI_USB3_PORT_STATUS_REG
static const struct xhci_usb_info usb_info
#define XHCI_USB3_PORT_NUM
#define PMCTRL_LFPS_OFFTIME_MAX
#define PMCTRL_LFPS_OFFTIME_SHIFT
#define XHCI_USB2_PORT_NUM
void soc_xhci_init(struct device *dev)
#define XHCI_USB2_PORT_STATUS_REG
static void set_xhci_lfps_sampling_offtime(struct device *dev, uint8_t time_ms)
uint32_t usb2_port_status_reg