summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8195/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/mediatek/mt8195/usb.c')
-rw-r--r--src/soc/mediatek/mt8195/usb.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8195/usb.c b/src/soc/mediatek/mt8195/usb.c
new file mode 100644
index 0000000000..7b6347e605
--- /dev/null
+++ b/src/soc/mediatek/mt8195/usb.c
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <device/mmio.h>
+#include <soc/infracfg.h>
+#include <soc/pll.h>
+#include <soc/usb.h>
+
+void mtk_usb_prepare(void)
+{
+ setbits32(&mtk_topckgen->clk_cfg_11_clr, BIT(7) | BIT(15));
+ setbits32(&mt8195_infracfg_ao->module_sw_cg_2_clr, BIT(1) | BIT(31));
+}