[Feature][T8TSK-116]check whether or not wakeup by RTC

Change-Id: I099122d8fc23228b8cb769138f36dcc46b708da6
diff --git a/src/kernel/linux/v4.19/drivers/rtc/rtc-proc.c b/src/kernel/linux/v4.19/drivers/rtc/rtc-proc.c
index a9dd921..9256596 100644
--- a/src/kernel/linux/v4.19/drivers/rtc/rtc-proc.c
+++ b/src/kernel/linux/v4.19/drivers/rtc/rtc-proc.c
@@ -106,12 +106,27 @@
 
 	return 0;
 }
+/*jb.qi change for rtc resume API on 2022.11.18 start*/
+#ifdef CONFIG_PM_SLEEP
+extern bool isWakeupByRTC(void);
+#endif
 
+static int rtc_wakeup_proc_show(struct seq_file *seq, void *offset)
+{
+#ifdef CONFIG_PM_SLEEP
+	seq_printf(seq, "%d\n", isWakeupByRTC());
+#endif
+	return 0;
+}
+/*jb.qi change for rtc resume API on 2022.11.18 end*/
 void rtc_proc_add_device(struct rtc_device *rtc)
 {
-	if (is_rtc_hctosys(rtc))
-		proc_create_single_data("driver/rtc", 0, NULL, rtc_proc_show,
-				rtc);
+	if (is_rtc_hctosys(rtc)) {
+ 		proc_create_single_data("driver/rtc", 0, NULL, rtc_proc_show,
+ 				rtc);
+		proc_create_single_data("driver/rtc_wakeup", 0, NULL, rtc_wakeup_proc_show,
+				rtc); //jb.qi change for rtc resume API on 2022.11.18
+	}
 }
 
 void rtc_proc_del_device(struct rtc_device *rtc)