![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <console/console.h>
#include <device/mmio.h>
#include <soc/usb/usb_common.h>
#include <soc/addressmap.h>
#include <soc/clock.h>
Go to the source code of this file.
Data Structures | |
struct | usb_dwc3 |
struct | usb_dwc3_cfg |
Functions | |
check_member (usb_dwc3, usb2phycfg, 0x100) | |
check_member (usb_dwc3, usb3pipectl, 0x1c0) | |
static void | reset_usb (struct usb_dwc3_cfg *dwc3) |
void | reset_usb0 (void) |
static void | setup_dwc3 (struct usb_dwc3 *dwc3) |
static void | setup_usb_host (struct usb_dwc3_cfg *dwc3, void *board_data) |
void | setup_usb_host0 (void *board_data) |
Variables | |
static struct usb_dwc3_cfg | usb_port0 |
check_member | ( | usb_dwc3 | , |
usb2phycfg | , | ||
0x100 | |||
) |
check_member | ( | usb_dwc3 | , |
usb3pipectl | , | ||
0x1c0 | |||
) |
|
static |
Definition at line 62 of file usb.c.
References clock_reset_bcr(), usb_dwc3_cfg::gcc_qmpphy_bcr_reg, usb_dwc3_cfg::gcc_usb3phy_bcr_reg, usb_dwc3_cfg::qusb2phy_bcr, and usb_dwc3_cfg::usb3_bcr.
Referenced by prepare_usb(), and reset_usb0().
Definition at line 75 of file usb.c.
References BIOS_INFO, printk, reset_usb(), and usb_port0.
Referenced by prepare_usb().
Definition at line 83 of file usb.c.
References BIOS_SPEW, clrsetbits32, usb_dwc3::ctl, DWC3_GCTL_DISSCRAMBLE, DWC3_GCTL_DSBLCLKGTNG, DWC3_GCTL_PRTCAP_HOST, DWC3_GCTL_PRTCAP_OTG, DWC3_GCTL_PRTCAPDIR, DWC3_GCTL_SCALEDOWN_MASK, DWC3_GCTL_U2EXIT_LFPS, DWC3_GUSB2PHYCFG_PHYIF, DWC3_GUSB2PHYCFG_PHYIF_MASK, DWC3_GUSB2PHYCFG_USB2TRDTIM_MASK, DWC3_GUSB2PHYCFG_USBTRDTIM, DWC3_GUSB3PIPECTL_DELAYP1TRANS, DWC3_GUSB3PIPECTL_UX_EXIT_IN_PX, printk, usb_dwc3::usb2phycfg, usb_dwc3::usb3pipectl, USBTRDTIM_UTMI_8_BIT, and UTMI_PHYIF_8_BIT.
Referenced by setup_usb_host().
|
static |
Definition at line 114 of file usb.c.
References BIOS_INFO, usb_dwc3_cfg::board_data, clock_reset_bcr(), usb_dwc3_cfg::gcc_qmpphy_bcr_reg, usb_dwc3_cfg::gcc_usb3phy_bcr_reg, hs_usb_phy_init(), printk, usb_dwc3_cfg::qusb2phy_bcr, setup_dwc3(), ss_qmp_phy_init(), usb_dwc3_cfg::usb3_bcr, and usb_dwc3_cfg::usb_host_dwc3.
Definition at line 137 of file usb.c.
References BIOS_INFO, usb_dwc3_cfg::board_data, printk, setup_usb_host(), and usb_port0.
Referenced by setup_usb().
|
static |
Definition at line 44 of file usb.c.
Referenced by reset_usb0(), and setup_usb_host0().