diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 17:43:51 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 17:43:51 +0000 |
commit | be58c81aff4cd4c0ccf43dbd7998da4a6a08c03b (patch) | |
tree | 779c248fb61c83f65d1f0dc867f2053d76b4e03a /plat/mediatek/drivers/usb/mt8188 | |
parent | Initial commit. (diff) | |
download | arm-trusted-firmware-upstream.tar.xz arm-trusted-firmware-upstream.zip |
Adding upstream version 2.10.0+dfsg.upstream/2.10.0+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | plat/mediatek/drivers/usb/mt8188/mt_usb.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/plat/mediatek/drivers/usb/mt8188/mt_usb.c b/plat/mediatek/drivers/usb/mt8188/mt_usb.c new file mode 100644 index 0000000..c9e7a56 --- /dev/null +++ b/plat/mediatek/drivers/usb/mt8188/mt_usb.c @@ -0,0 +1,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); |