summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8188/usb.c
blob: 6c575cf44ba5039d19ef1708c5ec357b822c8e3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: GPL-2.0-only OR MIT */

/*
 * This file is created based on MT8188 Functional Specification
 * Chapter number: 5.5
 */

#include <device/mmio.h>
#include <gpio.h>
#include <soc/infracfg.h>
#include <soc/pll_common.h>
#include <soc/usb.h>

void mtk_usb_prepare(void)
{
	mt_pll_set_usb_clock();

	/* usb drvvbus for 5v power */
	gpio_output(GPIO(USB1_DRV_VBUS), 1);
}