mb/system76/cml-u/dt: Make use of chipset devicetree
[coreboot.git] / src / soc / mediatek / mt8192 / usb.c
blob44f2f150edaf07780bdecec4a709f6a64f72816b
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <soc/addressmap.h>
4 #include <device/mmio.h>
5 #include <soc/usb.h>
7 #define REG_SPM_POWERON_CONFIG_EN (void *)(SPM_BASE + 0x000)
8 #define REG_SPM_SSPM_PWR_CON (void *)(SPM_BASE + 0x390)
10 void mtk_usb_prepare(void)
12 /* power on SSUSB SRAM FIFO */
13 setbits32(REG_SPM_POWERON_CONFIG_EN, 0xB160001);
14 clrbits32(REG_SPM_SSPM_PWR_CON, 0x000001FF);