Use powerhint to increase mem, intcam, tnr clock when camera lunch to
improve camera start performace
Bug: 168654554
Test: 1. check clock freq related file when camera start
2. P21 camera checklist
Change-Id: I3447a6028846cc873e9c7195826c470bceaf03c8
diff --git a/powerhint.json b/powerhint.json
index 581cf09..6995a2b 100644
--- a/powerhint.json
+++ b/powerhint.json
@@ -188,6 +188,24 @@
""
],
"Type": "Property"
+ },
+ {
+ "Name": "INTCAMFreq",
+ "Path": "/sys/devices/platform/17000030.devfreq_intcam/devfreq/17000030.devfreq_intcam/min_freq",
+ "Values": [
+ "664000",
+ "67000"
+ ],
+ "ResetOnInit": true
+ },
+ {
+ "Name": "TNRFreq",
+ "Path": "/sys/devices/platform/17000060.devfreq_tnr/devfreq/17000060.devfreq_tnr/min_freq",
+ "Values": [
+ "664000",
+ "67000"
+ ],
+ "ResetOnInit": true
}
],
"Actions": [
@@ -323,6 +341,24 @@
},
{
"PowerHint": "CAMERA_LAUNCH",
+ "Node": "MemFreq",
+ "Duration": 1000,
+ "Value": "3172000"
+ },
+ {
+ "PowerHint": "CAMERA_LAUNCH",
+ "Node": "INTCAMFreq",
+ "Duration": 1000,
+ "Value": "664000"
+ },
+ {
+ "PowerHint": "CAMERA_LAUNCH",
+ "Node": "TNRFreq",
+ "Duration": 1000,
+ "Value": "664000"
+ },
+ {
+ "PowerHint": "CAMERA_LAUNCH",
"Node": "CPUBigClusterMaxFreq",
"Duration": 1000,
"Value": "9999999"