Parcourir la source

touch: Insertion of DRM and RUNTIME macros

Inclusion of the DRM notifier callback macros and RUNTIME macros
in header file.

Change-Id: Ie23e7e5f94028cc9a80de47906f13b0eb5e2f8cf
Signed-off-by: Surya Teja Kudiri <[email protected]>
Surya Teja Kudiri il y a 2 ans
Parent
commit
ef5fab8765
1 fichiers modifiés avec 19 ajouts et 4 suppressions
  1. 19 4
      pt/pt_regs.h

+ 19 - 4
pt/pt_regs.h

@@ -41,12 +41,17 @@
 #define PT_PIP2_MAX_FILE_SIZE           0x18000
 #define PT_PIP2_FILE_SECTOR_SIZE        0x1000
 
+#ifndef CONFIG_DRM
+#define CONFIG_DRM
+#endif
+
 #include <linux/device.h>
+#include <linux/fb.h>
+#include <linux/notifier.h>
 #ifdef CONFIG_HAS_EARLYSUSPEND
 #include <linux/earlysuspend.h>
-#elif defined(CONFIG_FB)
-#include <linux/notifier.h>
-#include <linux/fb.h>
+#elif defined(CONFIG_DRM)
+#include <drm/drm_panel.h>
 #endif
 
 #include <asm/unaligned.h>
@@ -116,6 +121,15 @@
 #endif
 
 /* Power Management Macros Enablement */
+
+#ifndef CONFIG_PM
+#define CONFIG_PM
+#endif
+
+#ifndef CONFIG_PM_RUNTIME
+#define CONFIG_PM_RUNTIME
+#endif
+
 #ifndef CONFIG_PM_SLEEP
 #define CONFIG_PM_SLEEP
 #endif
@@ -1453,6 +1467,7 @@ struct pt_core_data {
 	bool irq_wake;
 	bool irq_disabled;
 	bool hw_detected;
+	bool runtime;
 	u8 easy_wakeup_gesture;
 #ifdef EASYWAKE_TSG6
 	u8 gesture_id;
@@ -1494,7 +1509,7 @@ struct pt_core_data {
 	int raw_cmd_status;
 #ifdef CONFIG_HAS_EARLYSUSPEND
 	struct early_suspend es;
-#elif defined(CONFIG_FB)
+#elif defined(CONFIG_FB) || defined(CONFIG_DRM)
 	struct notifier_block fb_notifier;
 	enum pt_fb_state fb_state;
 #endif