johnson wang has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/69688 )
Change subject: soc/mediatek/mt8188: Enable and initialize EINT ......................................................................
soc/mediatek/mt8188: Enable and initialize EINT
Issue: Device can't wake up using power button.
Root cause and solution: EINT event mask register is used to mask EINT wakeup source. All wakeup sources are masked by default. So we add a driver here to unmask all wakeup sources.
BUG=none TEST=device wakes up using power button on MT8188 EVB.
Signed-off-by: Johnson Wang johnson.wang@mediatek.com Change-Id: I94b20909b0b8d77f75c41bc745f892baded7a54b --- M src/soc/mediatek/mt8188/Makefile.inc M src/soc/mediatek/mt8188/bootblock.c 2 files changed, 22 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/88/69688/1
diff --git a/src/soc/mediatek/mt8188/Makefile.inc b/src/soc/mediatek/mt8188/Makefile.inc index 13fea31..59ec553 100644 --- a/src/soc/mediatek/mt8188/Makefile.inc +++ b/src/soc/mediatek/mt8188/Makefile.inc @@ -10,6 +10,7 @@ all-y += ../common/uart.c
bootblock-y += bootblock.c +bootblock-y += ../common/eint_event.c bootblock-y += ../common/mmu_operations.c bootblock-y += ../common/tracker.c ../common/tracker_v2.c bootblock-y += ../common/wdt.c ../common/wdt_req.c wdt.c diff --git a/src/soc/mediatek/mt8188/bootblock.c b/src/soc/mediatek/mt8188/bootblock.c index 75fab9a..32ef4af 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 <bootblock_common.h> +#include <soc/eint_event.h> #include <soc/mmu_operations.h> #include <soc/pll.h> #include <soc/tracker_common.h> @@ -12,4 +13,5 @@ bustracker_init(); mtk_wdt_init(); mt_pll_init(); + unmask_eint_event_mask(); }