sdm: Define client interface to enable/disable idle pc

1. Define client interface to enable/disable idle power collapse
2. Maintain refcount to handle concurrent enable/disable
3. Trigger the screen refresh and wait for the next frame commit
   done event before returning the control to the client on disable
   idle pc
4. Enable idle pc on suspend and reset the refcount
5. Add binder support to enable/disable idle pc

CRs-Fixed: 2255316
Change-Id:Ibcaf9d4edca502cc91e9b201be822bd48313a635
diff --git a/common.mk b/common.mk
index a620d06..a039e5f 100644
--- a/common.mk
+++ b/common.mk
@@ -6,6 +6,9 @@
 display_config_version := $(shell \
     if [ -d "$(TOP)/vendor/qcom/opensource/interfaces/display/config/1.2" ];\
     then echo DISPLAY_CONFIG_1_2; fi)
+display_config_version := $(shell \
+    if [ -d "$(TOP)/vendor/qcom/opensource/interfaces/display/config/1.3" ];\
+    then echo DISPLAY_CONFIG_1_3; fi)
 #Common C flags
 common_flags := -Wno-missing-field-initializers
 common_flags += -Wconversion -Wall -Werror -std=c++14
@@ -21,6 +24,9 @@
 ifeq ($(display_config_version), DISPLAY_CONFIG_1_2)
     common_flags += -DDISPLAY_CONFIG_1_2 -DDISPLAY_CONFIG_1_1
 endif
+ifeq ($(display_config_version), DISPLAY_CONFIG_1_3)
+    common_flags += -DDISPLAY_CONFIG_1_1 -DDISPLAY_CONFIG_1_2 -DDISPLAY_CONFIG_1_3
+endif
 
 ifeq ($(TARGET_USES_COLOR_METADATA), true)
     common_flags += -DUSE_COLOR_METADATA