coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
usb.h File Reference
#include <soc/cpu.h>
Include dependency graph for usb.h:

Go to the source code of this file.

Data Structures

struct  exynos5_usb_host_phy
 
struct  exynos5_usb_drd_phy
 
struct  exynos5_usb_drd_dwc3
 

Macros

#define CLK_24MHZ   5
 
#define HOST_CTRL0_PHYSWRSTALL   (1 << 31)
 
#define HOST_CTRL0_COMMONON_N   (1 << 9)
 
#define HOST_CTRL0_SIDDQ   (1 << 6)
 
#define HOST_CTRL0_FORCESLEEP   (1 << 5)
 
#define HOST_CTRL0_FORCESUSPEND   (1 << 4)
 
#define HOST_CTRL0_WORDINTERFACE   (1 << 3)
 
#define HOST_CTRL0_UTMISWRST   (1 << 2)
 
#define HOST_CTRL0_LINKSWRST   (1 << 1)
 
#define HOST_CTRL0_PHYSWRST   (1 << 0)
 
#define HOST_CTRL0_FSEL_MASK   (7 << 16)
 
#define EHCICTRL_ENAINCRXALIGN   (1 << 29)
 
#define EHCICTRL_ENAINCR4   (1 << 28)
 
#define EHCICTRL_ENAINCR8   (1 << 27)
 
#define EHCICTRL_ENAINCR16   (1 << 26)
 

Functions

 check_member (exynos5_usb_host_phy, usbotgtune, 0x40)
 
 check_member (exynos5_usb_drd_phy, linkport, 0x44)
 
 check_member (exynos5_usb_drd_dwc3, usb3pipectl, 0x1c0)
 
void setup_usb_host_phy (int hsic_gpio)
 
void setup_usb_drd0_phy (void)
 
void setup_usb_drd1_phy (void)
 
void reset_usb_drd0_dwc3 (void)
 
void reset_usb_drd1_dwc3 (void)
 
void setup_usb_drd0_dwc3 (void)
 
void setup_usb_drd1_dwc3 (void)
 

Variables

static struct exynos5_usb_host_phy *const exynos_usb_host_phy
 
static struct exynos5_usb_drd_phy *const exynos_usb_drd0_phy
 
static struct exynos5_usb_drd_phy *const exynos_usb_drd1_phy
 
static struct exynos5_usb_drd_dwc3 *const exynos_usb_drd0_dwc3
 
static struct exynos5_usb_drd_dwc3 *const exynos_usb_drd1_dwc3
 

Macro Definition Documentation

◆ CLK_24MHZ

#define CLK_24MHZ   5

Definition at line 8 of file usb.h.

◆ EHCICTRL_ENAINCR16

#define EHCICTRL_ENAINCR16   (1 << 26)

Definition at line 25 of file usb.h.

◆ EHCICTRL_ENAINCR4

#define EHCICTRL_ENAINCR4   (1 << 28)

Definition at line 23 of file usb.h.

◆ EHCICTRL_ENAINCR8

#define EHCICTRL_ENAINCR8   (1 << 27)

Definition at line 24 of file usb.h.

◆ EHCICTRL_ENAINCRXALIGN

#define EHCICTRL_ENAINCRXALIGN   (1 << 29)

Definition at line 22 of file usb.h.

◆ HOST_CTRL0_COMMONON_N

#define HOST_CTRL0_COMMONON_N   (1 << 9)

Definition at line 11 of file usb.h.

◆ HOST_CTRL0_FORCESLEEP

#define HOST_CTRL0_FORCESLEEP   (1 << 5)

Definition at line 13 of file usb.h.

◆ HOST_CTRL0_FORCESUSPEND

#define HOST_CTRL0_FORCESUSPEND   (1 << 4)

Definition at line 14 of file usb.h.

◆ HOST_CTRL0_FSEL_MASK

#define HOST_CTRL0_FSEL_MASK   (7 << 16)

Definition at line 20 of file usb.h.

◆ HOST_CTRL0_LINKSWRST

#define HOST_CTRL0_LINKSWRST   (1 << 1)

Definition at line 17 of file usb.h.

◆ HOST_CTRL0_PHYSWRST

#define HOST_CTRL0_PHYSWRST   (1 << 0)

Definition at line 18 of file usb.h.

◆ HOST_CTRL0_PHYSWRSTALL

#define HOST_CTRL0_PHYSWRSTALL   (1 << 31)

Definition at line 10 of file usb.h.

◆ HOST_CTRL0_SIDDQ

#define HOST_CTRL0_SIDDQ   (1 << 6)

Definition at line 12 of file usb.h.

◆ HOST_CTRL0_UTMISWRST

#define HOST_CTRL0_UTMISWRST   (1 << 2)

Definition at line 16 of file usb.h.

◆ HOST_CTRL0_WORDINTERFACE

#define HOST_CTRL0_WORDINTERFACE   (1 << 3)

Definition at line 15 of file usb.h.

Function Documentation

◆ check_member() [1/3]

check_member ( exynos5_usb_drd_dwc3  ,
usb3pipectl  ,
0x1c0   
)

◆ check_member() [2/3]

check_member ( exynos5_usb_drd_phy  ,
linkport  ,
0x44   
)

◆ check_member() [3/3]

check_member ( exynos5_usb_host_phy  ,
usbotgtune  ,
0x40   
)

◆ reset_usb_drd0_dwc3()

void reset_usb_drd0_dwc3 ( void  )

Definition at line 19 of file usb.c.

References BIOS_DEBUG, exynos_usb_drd0_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:

◆ reset_usb_drd1_dwc3()

void reset_usb_drd1_dwc3 ( void  )

Definition at line 25 of file usb.c.

References BIOS_DEBUG, exynos_usb_drd1_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_usb_drd0_dwc3()

void setup_usb_drd0_dwc3 ( void  )

Definition at line 61 of file usb.c.

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

Here is the call graph for this function:

◆ setup_usb_drd0_phy()

void setup_usb_drd0_phy ( void  )

Definition at line 124 of file usb.c.

References BIOS_DEBUG, exynos_power, exynos_usb_drd0_phy, POWER_USB_PHY_CTRL_EN, printk, setbits32, setup_drd_phy(), and exynos5_power::usb_drd0_phy_ctrl.

Here is the call graph for this function:

◆ setup_usb_drd1_dwc3()

void setup_usb_drd1_dwc3 ( void  )

Definition at line 67 of file usb.c.

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

Here is the call graph for this function:

◆ setup_usb_drd1_phy()

void setup_usb_drd1_phy ( void  )

Definition at line 131 of file usb.c.

References BIOS_DEBUG, exynos_power, exynos_usb_drd1_phy, POWER_USB_PHY_CTRL_EN, printk, setbits32, setup_drd_phy(), and exynos5_power::usb_drd1_phy_ctrl.

Here is the call graph for this function:

◆ setup_usb_host_phy()

Variable Documentation

◆ exynos_usb_drd0_dwc3

struct exynos5_usb_drd_dwc3* const exynos_usb_drd0_dwc3
static
Initial value:
=
#define EXYNOS5420_USB_DRD0_DWC3_BASE
Definition: cpu.h:28

Definition at line 113 of file usb.h.

Referenced by reset_usb_drd0_dwc3(), and setup_usb_drd0_dwc3().

◆ exynos_usb_drd0_phy

struct exynos5_usb_drd_phy* const exynos_usb_drd0_phy
static
Initial value:
=
#define EXYNOS5420_USB_DRD0_PHY_BASE
Definition: cpu.h:29

Definition at line 70 of file usb.h.

Referenced by setup_usb_drd0_phy().

◆ exynos_usb_drd1_dwc3

struct exynos5_usb_drd_dwc3* const exynos_usb_drd1_dwc3
static
Initial value:
=
#define EXYNOS5420_USB_DRD1_DWC3_BASE
Definition: cpu.h:36

Definition at line 115 of file usb.h.

Referenced by reset_usb_drd1_dwc3(), and setup_usb_drd1_dwc3().

◆ exynos_usb_drd1_phy

struct exynos5_usb_drd_phy* const exynos_usb_drd1_phy
static
Initial value:
=
#define EXYNOS5420_USB_DRD1_PHY_BASE
Definition: cpu.h:37

Definition at line 72 of file usb.h.

Referenced by setup_usb_drd1_phy().

◆ exynos_usb_host_phy

struct exynos5_usb_host_phy* const exynos_usb_host_phy
static
Initial value:
=
#define EXYNOS5_USB_HOST_PHY_BASE
Definition: cpu.h:30

Definition at line 46 of file usb.h.