]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
feat(mt8188): enable MTK_PUBEVENT_ENABLE
authorRex-BC Chen <rex-bc.chen@mediatek.com>
Fri, 14 Oct 2022 08:19:25 +0000 (16:19 +0800)
committerLiju-Clr Chen <liju-clr.chen@mediatek.com>
Mon, 14 Nov 2022 01:55:07 +0000 (09:55 +0800)
Enable MTK_PUBEVENT_ENABLE for subscribing CPUPM events. This
patch also corrects the header file naming.

Signed-off-by: Bo-Chen Chen <rex-bc.chen@mediatek.com>
Change-Id: Iabd89a4ead21ccafa833390367484bfea5d351f6

plat/mediatek/build_helpers/options.mk
plat/mediatek/lib/pm/armv8_2/pwr_ctrl.c
plat/mediatek/lib/pm/mtk_pm.h
plat/mediatek/mt8188/plat_config.mk

index 7b63a3e28b9a60025d780968adfc611b388166be..02796480900360cfb13937b5aa29cc183f8331bd 100644 (file)
@@ -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))
index ccd04e6d306d6b0f470c5b5e31f1ac3ee3a80ef5..6caabcdc8c6ba5f15c016632fae5c882ff98fcf7 100644 (file)
@@ -12,7 +12,7 @@
 #include <lib/psci/psci.h>
 #include <lib/utils.h>
 #ifdef MTK_PUBEVENT_ENABLE
-#include <mtk_event/mtk_pubsub_events.h>
+#include <vendor_pubsub_events.h>
 #endif
 #include <plat/arm/common/plat_arm.h>
 #include <plat/common/platform.h>
index 892a0b0f3946a7184e544c9cfc4cd42a831b651e..4a29439561425308788913d3633cb83b89cc2eea 100644 (file)
@@ -9,7 +9,7 @@
 #include <lib/psci/psci.h>
 
 #if MTK_PUBEVENT_ENABLE
-#include <mtk_event/mtk_pubsub_events.h>
+#include <vendor_pubsub_events.h>
 #endif
 
 #define MTK_CPUPM_E_OK                 (0)
index cff97cb4484c8d81297f0a4045012688c67220b3..137318e7aad92ee72fe09309258821a4c55970de 100644 (file)
@@ -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))