drivers/wifi: Remove unnecessary data structure copy
[coreboot2.git] / src / soc / mediatek / mt8196 / usb.c
blob56fe15cb4d132e14fcd843d85093f34bd78fab81
1 /* SPDX-License-Identifier: GPL-2.0-only OR MIT */
3 /*
4 * This file is created based on MT8188 Functional Specification
5 * Chapter number: 13.1,13.2
6 */
8 #include <soc/addressmap.h>
9 #include <device/mmio.h>
10 #include <soc/usb.h>
12 #define CTRL_U3_PORT_SS_SUP_SPEED (3U << 9)
14 void mtk_usb_prepare(void)
16 /* SW sets this register to change USB3.2 speed to Gen1-5Gbps */
17 struct ssusb_ippc_regs *ippc_regs = (void *)(SSUSB_IPPC_BASE);
19 clrsetbits32(&ippc_regs->u3_ctrl_p[0], CTRL_U3_PORT_SS_SUP_SPEED, 0);