coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
usb.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <soc/addressmap.h>
4
#include <
device/mmio.h
>
5
#include <soc/usb.h>
6
7
#define REG_SPM_POWERON_CONFIG_EN (void *)(SPM_BASE + 0x000)
8
#define REG_SPM_SSPM_PWR_CON (void *)(SPM_BASE + 0x390)
9
10
void
mtk_usb_prepare
(
void
)
11
{
12
/* power on SSUSB SRAM FIFO */
13
setbits32
(
REG_SPM_POWERON_CONFIG_EN
, 0xB160001);
14
clrbits32
(
REG_SPM_SSPM_PWR_CON
, 0x000001FF);
15
}
mmio.h
setbits32
#define setbits32(addr, set)
Definition:
mmio.h:21
clrbits32
#define clrbits32(addr, clear)
Definition:
mmio.h:26
mtk_usb_prepare
__weak void mtk_usb_prepare(void)
Definition:
usb.c:143
REG_SPM_SSPM_PWR_CON
#define REG_SPM_SSPM_PWR_CON
Definition:
usb.c:8
REG_SPM_POWERON_CONFIG_EN
#define REG_SPM_POWERON_CONFIG_EN
Definition:
usb.c:7
src
soc
mediatek
mt8192
usb.c
Generated by
1.9.1