From 159e64ca25adfb0ccd3ad0d79308f61221b71e11 Mon Sep 17 00:00:00 2001 From: Johnson Wang Date: Fri, 11 Nov 2022 17:31:49 +0800 Subject: soc/mediatek/mt8188: Enable and initialize EINT Issue: Device can't wake up using power key. Root cause and solution: EINT event mask register is used to mask EINT wakeup sources. All wakeup sources are masked by default. So we add a driver here to unmask all wakeup sources. BUG=none TEST=wake the device up by power key on MT8188 EVB. Signed-off-by: Johnson Wang Change-Id: I94b20909b0b8d77f75c41bc745f892baded7a54b Reviewed-on: https://review.coreboot.org/c/coreboot/+/69688 Reviewed-by: Rex-BC Chen Reviewed-by: Yidi Lin Tested-by: build bot (Jenkins) Reviewed-by: Yu-Ping Wu --- src/soc/mediatek/mt8188/bootblock.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/soc/mediatek/mt8188/bootblock.c') diff --git a/src/soc/mediatek/mt8188/bootblock.c b/src/soc/mediatek/mt8188/bootblock.c index 75fab9a90b..32ef4af2e3 100644 --- a/src/soc/mediatek/mt8188/bootblock.c +++ b/src/soc/mediatek/mt8188/bootblock.c @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only OR MIT */ #include +#include #include #include #include @@ -12,4 +13,5 @@ void bootblock_soc_init(void) bustracker_init(); mtk_wdt_init(); mt_pll_init(); + unmask_eint_event_mask(); } -- cgit v1.2.3