coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
usb.c File Reference
#include <device/mmio.h>
#include <console/console.h>
#include <delay.h>
#include <device/device.h>
#include <soc/gpio.h>
#include <soc/power.h>
#include <soc/sysreg.h>
#include <soc/usb.h>
Include dependency graph for usb.c:

Go to the source code of this file.

Functions

static void reset_dwc3 (struct exynos5_usb_drd_dwc3 *dwc3)
 
void reset_usb_drd_dwc3 (void)
 
static void setup_dwc3 (struct exynos5_usb_drd_dwc3 *dwc3)
 
void setup_usb_drd_dwc3 (void)
 
static void setup_drd_phy (struct exynos5_usb_drd_phy *phy)
 
void setup_usb_drd_phy (void)
 
void setup_usb_host_phy (int hsic_gpio)
 

Function Documentation

◆ reset_dwc3()

static void reset_dwc3 ( struct exynos5_usb_drd_dwc3 dwc3)
static

Definition at line 12 of file usb.c.

References exynos5_usb_drd_dwc3::ctl, setbits32, exynos5_usb_drd_dwc3::usb2phycfg, and exynos5_usb_drd_dwc3::usb3pipectl.

Referenced by reset_usb_drd_dwc3().

Here is the caller graph for this function:

◆ reset_usb_drd_dwc3()

void reset_usb_drd_dwc3 ( void  )

Definition at line 19 of file usb.c.

References BIOS_DEBUG, exynos_usb_drd_dwc3, printk, and reset_dwc3().

Referenced by prepare_usb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setup_drd_phy()

static void setup_drd_phy ( struct exynos5_usb_drd_phy phy)
static

◆ setup_dwc3()

static void setup_dwc3 ( struct exynos5_usb_drd_dwc3 dwc3)
static

Definition at line 25 of file usb.c.

References BIOS_ERR, exynos5_usb_drd_dwc3::ctl, printk, exynos5_usb_drd_dwc3::usb2phycfg, exynos5_usb_drd_dwc3::usb3pipectl, and write32().

Referenced by setup_usb_drd_dwc3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setup_usb_drd_dwc3()

void setup_usb_drd_dwc3 ( void  )

Definition at line 55 of file usb.c.

References BIOS_DEBUG, exynos_usb_drd_dwc3, printk, and setup_dwc3().

Here is the call graph for this function:

◆ setup_usb_drd_phy()

void setup_usb_drd_phy ( void  )

Definition at line 112 of file usb.c.

References BIOS_DEBUG, exynos_power, exynos_usb_drd_phy, POWER_USB_PHY_CTRL_EN, printk, setbits32, setup_drd_phy(), and exynos5_power::usb_drd_phy_ctrl.

Here is the call graph for this function:

◆ setup_usb_host_phy()

void setup_usb_host_phy ( int  hsic_gpio)

Definition at line 119 of file usb.c.