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 <gpio.h>
#include <soc/gpio.h>
#include <soc/usb.h>
Include dependency graph for usb.c:

Go to the source code of this file.

Macros

#define PERI_USB_WAKEUP_DEC_CON1   0x404
 
#define PERI_U3_WAKE_CTRL0   0x420
 

Functions

void mtk_usb_prepare (void)
 

Macro Definition Documentation

◆ PERI_U3_WAKE_CTRL0

#define PERI_U3_WAKE_CTRL0   0x420

Definition at line 14 of file usb.c.

◆ PERI_USB_WAKEUP_DEC_CON1

#define PERI_USB_WAKEUP_DEC_CON1   0x404

Definition at line 13 of file usb.c.

Function Documentation

◆ mtk_usb_prepare()

void mtk_usb_prepare ( void  )

Definition at line 16 of file usb.c.

References GPIO, gpio_output(), PERI_U3_WAKE_CTRL0, PERI_USB_WAKEUP_DEC_CON1, PERICFG_BASE, and write32p().

Here is the call graph for this function: