blob: 328dc54e8d68416957627934923c068f6da2c9e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* This file is created based on MT8186 Functional Specification
* Chapter number: 5.5
*/
#include <device/mmio.h>
#include <gpio.h>
#include <soc/gpio.h>
#include <soc/usb.h>
static void usb3_hub_reset(void)
{
gpio_output(GPIO(PERIPHERAL_EN2), 1);
}
void mtk_usb_prepare(void)
{
usb3_hub_reset();
gpio_output(GPIO(USB_DRVVBUS_P1), 1);
}
|