soc/mediatek/mt8195: 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. Change-Id: I703d87e3dc49cf4e0b7ff0c75a6ea80245dd73d3 Signed-off-by: Yidi Lin <yidi.lin@mediatek.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/54007 Reviewed-by: Hung-Te Lin <hungte@chromium.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
be8621d785
commit
780f82f50e
|
@ -1,6 +1,7 @@
|
|||
ifeq ($(CONFIG_SOC_MEDIATEK_MT8195),y)
|
||||
|
||||
bootblock-y += bootblock.c
|
||||
bootblock-y += ../common/eint_event.c
|
||||
bootblock-y += ../common/flash_controller.c
|
||||
bootblock-y += ../common/gpio.c gpio.c
|
||||
bootblock-y += ../common/i2c.c i2c.c
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <bootblock_common.h>
|
||||
#include <soc/eint_event.h>
|
||||
#include <soc/mmu_operations.h>
|
||||
#include <soc/pll.h>
|
||||
#include <soc/wdt.h>
|
||||
|
@ -10,4 +11,5 @@ void bootblock_soc_init(void)
|
|||
mtk_mmu_init();
|
||||
mtk_wdt_init();
|
||||
mt_pll_init();
|
||||
unmask_eint_event_mask();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue