From 0b1186a3e6fd6daffaef3f6cf59650bb9121191c Mon Sep 17 00:00:00 2001 From: Rex-BC Chen Date: Fri, 14 Oct 2022 16:19:25 +0800 Subject: [PATCH] feat(mt8188): enable MTK_PUBEVENT_ENABLE Enable MTK_PUBEVENT_ENABLE for subscribing CPUPM events. This patch also corrects the header file naming. Signed-off-by: Bo-Chen Chen Change-Id: Iabd89a4ead21ccafa833390367484bfea5d351f6 --- plat/mediatek/build_helpers/options.mk | 1 + plat/mediatek/lib/pm/armv8_2/pwr_ctrl.c | 2 +- plat/mediatek/lib/pm/mtk_pm.h | 2 +- plat/mediatek/mt8188/plat_config.mk | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plat/mediatek/build_helpers/options.mk b/plat/mediatek/build_helpers/options.mk index 7b63a3e28..027964809 100644 --- a/plat/mediatek/build_helpers/options.mk +++ b/plat/mediatek/build_helpers/options.mk @@ -12,6 +12,7 @@ $(eval $(call add_defined_option,MTK_BL31_AS_BL2)) $(eval $(call add_defined_option,MTK_BL33_IS_64BIT)) $(eval $(call add_defined_option,PLAT_XLAT_TABLES_DYNAMIC)) $(eval $(call add_defined_option,MTK_ADAPTED)) +$(eval $(call add_defined_option,MTK_PUBEVENT_ENABLE)) $(eval $(call add_defined_option,MTK_SOC)) $(eval $(call add_defined_option,UART_CLOCK)) $(eval $(call add_defined_option,UART_BAUDRATE)) diff --git a/plat/mediatek/lib/pm/armv8_2/pwr_ctrl.c b/plat/mediatek/lib/pm/armv8_2/pwr_ctrl.c index ccd04e6d3..6caabcdc8 100644 --- a/plat/mediatek/lib/pm/armv8_2/pwr_ctrl.c +++ b/plat/mediatek/lib/pm/armv8_2/pwr_ctrl.c @@ -12,7 +12,7 @@ #include #include #ifdef MTK_PUBEVENT_ENABLE -#include +#include #endif #include #include diff --git a/plat/mediatek/lib/pm/mtk_pm.h b/plat/mediatek/lib/pm/mtk_pm.h index 892a0b0f3..4a2943956 100644 --- a/plat/mediatek/lib/pm/mtk_pm.h +++ b/plat/mediatek/lib/pm/mtk_pm.h @@ -9,7 +9,7 @@ #include #if MTK_PUBEVENT_ENABLE -#include +#include #endif #define MTK_CPUPM_E_OK (0) diff --git a/plat/mediatek/mt8188/plat_config.mk b/plat/mediatek/mt8188/plat_config.mk index cff97cb44..137318e7a 100644 --- a/plat/mediatek/mt8188/plat_config.mk +++ b/plat/mediatek/mt8188/plat_config.mk @@ -42,6 +42,7 @@ CONFIG_MTK_CPU_PM_ARCH := 3_2 CONFIG_MTK_SMP_EN := y CONFIG_MTK_CPU_SUSPEND_EN := y CPU_PM_TINYSYS_SUPPORT := y +MTK_PUBEVENT_ENABLE := y MACH_MT8188 := 1 $(eval $(call add_define,MACH_MT8188)) -- 2.39.5