mediatek: mt8195: add rtc power off sequence
mt8195 also uses mt6359p RTC. Revice mt8192 RTC and share the
driver with mt8195.
Change-Id: I20c73f6e0af67ef9d4c3d4e0ff373f93950e07db
Signed-off-by: Yidi Lin <yidi.lin@mediatek.com>
diff --git a/plat/mediatek/mt8195/plat_pm.c b/plat/mediatek/mt8195/plat_pm.c
index 7cc2565..522d443 100644
--- a/plat/mediatek/mt8195/plat_pm.c
+++ b/plat/mediatek/mt8195/plat_pm.c
@@ -20,6 +20,7 @@
#include <plat_params.h>
#include <plat_pm.h>
#include <pmic.h>
+#include <rtc.h>
/*
* Cluster state request:
@@ -355,6 +356,7 @@
{
INFO("MTK System Off\n");
+ rtc_power_off_sequence();
pmic_power_off();
wfi();