RM6785: Initial powerhint for power-libperfmgr

 * Based on https://github.com/realme-mt6785-devs/android_device_realme_RM6785/blob/1fad0c23a810e24f2de87763de094891897e5f4c/configs/power/powerscntbl.xml

Change-Id: I093b9277e9bfbf26781fbfece8ed39e33b142c92
diff --git a/configs/power/powerhint.json b/configs/power/powerhint.json
new file mode 100644
index 0000000..4447788
--- /dev/null
+++ b/configs/power/powerhint.json
@@ -0,0 +1,79 @@
+{
+  "Nodes": [
+    {
+      "Name": "CPUFreq",
+      "Path": "/proc/perfmgr/boost_ctrl/cpu_ctrl/boot_freq",
+      "Values": [
+        "0 -1 0 -1",
+        "6 -1 8 -1",
+        "-1 -1 -1 -1"
+      ],
+      "ResetOnInit": true
+    },
+    {
+      "Name": "DramOPPMin",
+      "Path": "/proc/perfmgr/boost_ctrl/dram_ctrl/ddr",
+      "Values": [
+        "0",
+        "-1"
+      ],
+      "ResetOnInit": true
+    },
+    {
+      "Name": "SchedUclampMinTA",
+      "Path": "/proc/perfmgr/boost_ctrl/eas_ctrl/perfserv_ta_uclamp_min",
+      "Values": [
+        "100",
+        "55",
+        "0"
+      ],
+      "ResetOnInit": true
+    },
+    {
+      "Name": "DoubleTapToWakeEnable",
+      "Path": "/proc/touchpanel/double_tap_enable",
+      "Values": [
+        "1",
+        "0"
+      ]
+    }
+  ],
+  "Actions": [
+    {
+      "PowerHint": "LAUNCH",
+      "Node": "CPUFreq",
+      "Duration": 5000,
+      "Value": "0 -1 0 -1"
+    },
+    {
+      "PowerHint": "LAUNCH",
+      "Node": "DramOPPMin",
+      "Duration": 5000,
+      "Value": "0"
+    },
+    {
+      "PowerHint": "LAUNCH",
+      "Node": "SchedUclampMinTA",
+      "Duration": 5000,
+      "Value": "100"
+    },
+    {
+      "PowerHint": "INTERACTION",
+      "Node": "CPUFreq",
+      "Duration": 0,
+      "Value": "6 -1 8 -1"
+    },
+    {
+      "PowerHint": "INTERACTION",
+      "Node": "SchedUclampMinTA",
+      "Duration": 0,
+      "Value": "55"
+    },
+    {
+      "PowerHint": "DOUBLE_TAP_TO_WAKE",
+      "Node": "DoubleTapToWakeEnable",
+      "Duration": 0,
+      "Value": "1"
+    }
+  ]
+}
diff --git a/device.mk b/device.mk
index 9273c12..b1dd2a1 100644
--- a/device.mk
+++ b/device.mk
@@ -243,6 +243,9 @@
     vendor.mediatek.hardware.mtkpower@1.1.vendor \
     vendor.mediatek.hardware.mtkpower@1.2-service.stub
 
+PRODUCT_COPY_FILES += \
+    $(LOCAL_PATH)/configs/power/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
+
 # Properties
 include $(LOCAL_PATH)/vendor_prop.mk
 PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true