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

Go to the source code of this file.

Data Structures

struct  utmip_ctlr
 
struct  usb_ctlr
 

Functions

 check_member (utmip_ctlr, pmc_wakeup, 0x84c - 0x800)
 
 check_member (usb_ctlr, utmip, 0x800)
 
static void usb_ehci_reset_and_prepare (struct usb_ctlr *usb, enum usb_phy_type type)
 
void usb_setup_utmip (void *usb_base)
 

Function Documentation

◆ check_member() [1/2]

check_member ( usb_ctlr  ,
utmip  ,
0x800   
)

◆ check_member() [2/2]

check_member ( utmip_ctlr  ,
pmc_wakeup  ,
0x84c -  0x800 
)

◆ usb_ehci_reset_and_prepare()

static void usb_ehci_reset_and_prepare ( struct usb_ctlr usb,
enum usb_phy_type  type 
)
static

Definition at line 108 of file usb.c.

References BIOS_ERR, usb_ctlr::ehci_usbcmd, usb_ctlr::lpm_ctrl, printk, read32(), usb_ctlr::tx_fill_tuning, type, usb_ctlr::usb_mode, and write32().

Referenced by usb_setup_utmip().

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

◆ usb_setup_utmip()

void usb_setup_utmip ( void usb_base)