lcd: add lcd resume alarm filter function [1/1]
authorShaochan Liu <shaochan.liu@amlogic.com>
Tue, 18 Dec 2018 03:31:35 +0000 (11:31 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 25 Dec 2018 11:16:46 +0000 (03:16 -0800)
PD#SWPL-3362

Problem:
add lcd resume alarm filter function

Solution:
add lcd resume alarm filter function

Verify:
verified by t962x_r311

Change-Id: Ia4c219c76d253b4ecc16784193dc06a164d7a217
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>
drivers/amlogic/media/vout/lcd/lcd_vout.c

index ffff538..10db108 100644 (file)
@@ -36,6 +36,7 @@
 #ifdef CONFIG_OF
 #include <linux/of.h>
 #endif
+#include <linux/amlogic/pm.h>
 #include <linux/amlogic/cpu_version.h>
 #include <linux/amlogic/media/vout/vinfo.h>
 #include <linux/amlogic/media/vout/vout_notify.h>
@@ -1459,6 +1460,10 @@ static int lcd_remove(struct platform_device *pdev)
 
 static int lcd_resume(struct platform_device *pdev)
 {
+       if ((get_resume_method() == RTC_WAKEUP) ||
+               (get_resume_method() == AUTO_WAKEUP))
+               return 0;
+
        if ((lcd_driver->lcd_status & LCD_STATUS_VMODE_ACTIVE) == 0)
                return 0;