soc/mediatek/mt8186: Enable and initialize EINT
commitac07b03634dc5997901eae4b031b5f4975a2a71e
authorRex-BC Chen <rex-bc.chen@mediatek.corp-partner.google.com>
Mon, 27 Sep 2021 10:50:26 +0000 (27 18:50 +0800)
committerPatrick Georgi <pgeorgi@google.com>
Fri, 5 Nov 2021 13:03:51 +0000 (5 13:03 +0000)
treea7a5786edea6b5ea180b259571676ccec3278260
parenta74f443d5159dc8c0f3abccabf95cd59a113703a
soc/mediatek/mt8186: Enable and initialize EINT

EINT event mask register is used to mask EINT wakeup source.
All wakeup sources are masked by default. Since most MediaTek SoCs do
not have this design, we can't modify the kernel EINT upstream driver to
solve the issue 'Can't wake using power button (cros_ec) or touchpad'.
So we add a driver here to unmask all wakeup sources.

TEST=build pass
BUG=b:202871018

Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Change-Id: I84946c2c74dd233419cb94f013a42c734363baf7
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58938
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
src/soc/mediatek/mt8186/Makefile.inc
src/soc/mediatek/mt8186/bootblock.c