From 09706755b61c6e653acb76cdd51f2d011cb25cdb Mon Sep 17 00:00:00 2001 From: "Yu(Swim) Chih Ren" Date: Fri, 4 Jun 2021 06:54:11 +0000 Subject: [PATCH] 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 --- powerhint.json | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/powerhint.json b/powerhint.json index 581cf094..6995a2be 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": [ @@ -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",