interfaces: Add reverse engineered mtkpower 1.2 interface
Signed-off-by: bengris32 <bengris32@protonmail.ch>
diff --git a/mtkpower/1.2/.hidl-autogen b/mtkpower/1.2/.hidl-autogen
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/mtkpower/1.2/.hidl-autogen
diff --git a/mtkpower/1.2/Android.bp b/mtkpower/1.2/Android.bp
new file mode 100644
index 0000000..d0791ba
--- /dev/null
+++ b/mtkpower/1.2/Android.bp
@@ -0,0 +1,18 @@
+// This file is autogenerated by hidl-gen -Landroidbp.
+
+hidl_interface {
+ name: "vendor.mediatek.hardware.mtkpower@1.2",
+ root: "vendor.mediatek.hardware.mtkpower",
+ system_ext_specific: true,
+ srcs: [
+ "IMtkPerf.hal",
+ "IMtkPower.hal",
+ "IMtkPowerCallback.hal",
+ ],
+ interfaces: [
+ "android.hidl.base@1.0",
+ "vendor.mediatek.hardware.mtkpower@1.0",
+ "vendor.mediatek.hardware.mtkpower@1.1",
+ ],
+ gen_java: true,
+}
diff --git a/mtkpower/1.2/IMtkPerf.hal b/mtkpower/1.2/IMtkPerf.hal
new file mode 100644
index 0000000..93c6046
--- /dev/null
+++ b/mtkpower/1.2/IMtkPerf.hal
@@ -0,0 +1,7 @@
+package vendor.mediatek.hardware.mtkpower@1.2;
+
+import @1.1::IMtkPerf;
+
+interface IMtkPerf extends @1.1::IMtkPerf {
+ perfLockReleaseSync(int32_t param_1, int32_t param_2) generates (int32_t ret);
+};
\ No newline at end of file
diff --git a/mtkpower/1.2/IMtkPower.hal b/mtkpower/1.2/IMtkPower.hal
new file mode 100644
index 0000000..6a5f45a
--- /dev/null
+++ b/mtkpower/1.2/IMtkPower.hal
@@ -0,0 +1,8 @@
+package vendor.mediatek.hardware.mtkpower@1.2;
+
+import @1.1::IMtkPower;
+import IMtkPowerCallback;
+
+interface IMtkPower extends @1.1::IMtkPower {
+ setMtkScnUpdateCallback(int32_t clientId, IMtkPowerCallback callback) generates (int32_t ret);
+};
\ No newline at end of file
diff --git a/mtkpower/1.2/IMtkPowerCallback.hal b/mtkpower/1.2/IMtkPowerCallback.hal
new file mode 100644
index 0000000..e795466
--- /dev/null
+++ b/mtkpower/1.2/IMtkPowerCallback.hal
@@ -0,0 +1,7 @@
+package vendor.mediatek.hardware.mtkpower@1.2;
+
+import @1.1::IMtkPowerCallback;
+
+interface IMtkPowerCallback extends @1.1::IMtkPowerCallback {
+ oneway notifyScnUpdate(int32_t param_1, int32_t param_2);
+};
\ No newline at end of file