summaryrefslogtreecommitdiffstats
path: root/plat/mediatek/drivers/usb/mt8188/mt_usb.c
blob: c9e7a561d44b32115a35980affa6e657f642c255 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright (c) 2023, MediaTek Inc. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#include <arch_helpers.h>
#include <common/debug.h>
#include <lib/mtk_init/mtk_init.h>
#include <lpm/mt_lp_api.h>
#include <platform_def.h>

int mt_usb_init(void)
{
	INFO("[%s] mt_usb initialization\n", __func__);

	/* Keep infra and peri on to support wake-up from USB */
	mtk_usb_update(LPM_USB_ENTER);

	return 0;
}
MTK_PLAT_SETUP_0_INIT(mt_usb_init);