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
This commit is contained in:
Yu(Swim) Chih Ren 2021-06-04 06:54:11 +00:00 committed by TreeHugger Robot
parent e89080c7a6
commit 09706755b6

View file

@ -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": [
@ -321,6 +339,24 @@
"Duration": 0,
"Value": "2"
},
{
"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",