Power : Modified make file to include Trinket

Addition of powerhint.xml along with opcodes
for the product Trinket

Change-Id: I3047b82956374781dfe8d04aabe4b6da78d79c93
This commit is contained in:
Shayak Biswas
2020-09-15 11:37:18 +05:30
parent aa7e5244c9
commit b19cc004ed
2 changed files with 96 additions and 0 deletions

View File

@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
/* Copyright (c) 2016-2018,2020. The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
* * Neither the name of The Linux Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-->
<HintConfigs>
<Powerhint>
<!-- camera 30fps and camera preview -->
<!--L CPU CORE 0 SCHED LOAD BOOST -->
<!--L CPU CORE 1 SCHED LOAD BOOST -->
<!--L CPU CORE 2 SCHED LOAD BOOST -->
<!--L CPU CORE 3 SCHED LOAD BOOST -->
<!--L CPU CORE 4 SCHED LOAD BOOST -->
<!--L CPU CORE 5 SCHED LOAD BOOST -->
<!--L CPU Hispeed freq of 1017Mhz -->
<!--L CPU - Set hispeed load 95 -->
<!--BWMON - Set sample_ms 20 -->
<Config
Id="0x00001331" Enable="true" Timeout="0" Target="msmtrinket"
Resources="0x40C68100, 0xFFFFFFFA, 0x40C68110, 0xFFFFFFFA, 0x40C68120, 0xFFFFFFFA,
0x40C68130, 0xFFFFFFFA, 0x40C68040, 0xFFFFFFFA, 0x40C68050, 0xFFFFFFFA,
0x4143C100, 0x3F9, 0x41440100, 0x5F, 0x43034000, 0x14"/>
<!-- camera 60 FPS -->
<!--L CPU CORE 0 SCHED LOAD BOOST -->
<!--L CPU CORE 1 SCHED LOAD BOOST -->
<!--L CPU CORE 2 SCHED LOAD BOOST -->
<!--L CPU CORE 3 SCHED LOAD BOOST -->
<!--L CPU CORE 4 SCHED LOAD BOOST -->
<!--L CPU CORE 5 SCHED LOAD BOOST -->
<!--BWMON - Set sample_ms 20 -->
<Config
Id="0x00001332" Enable="true" Timeout="0" Target="msmtrinket"
Resources="0x40C68100, 0xFFFFFFFA, 0x40C68110, 0xFFFFFFFA, 0x40C68120, 0xFFFFFFFA,
0x40C68130, 0xFFFFFFFA, 0x40C68040, 0xFFFFFFFA, 0x40C68050, 0xFFFFFFFA,
0x43034000, 0x14"/>
<!-- camera HFR -->
<!--L CPU CORE 0 SCHED LOAD BOOST -->
<!--L CPU CORE 1 SCHED LOAD BOOST -->
<!--L CPU CORE 2 SCHED LOAD BOOST -->
<!--L CPU CORE 3 SCHED LOAD BOOST -->
<!--L CPU CORE 4 SCHED LOAD BOOST -->
<!--L CPU CORE 5 SCHED LOAD BOOST -->
<!--BWMON - Set sample_ms 20 -->
<Config
Id="0x00001333" Enable="true" Timeout="0" Target="msmtrinket"
Resources="0x40C68100, 0xFFFFFFFA, 0x40C68110, 0xFFFFFFFA, 0x40C68120, 0xFFFFFFFA,
0x40C68130, 0xFFFFFFFA, 0x40C68040, 0xFFFFFFFA, 0x40C68050, 0xFFFFFFFA,
0x43034000, 0x14"/>
<!-- Dual camera -->
<!--L CPU CORE 0 SCHED LOAD BOOST -->
<!--L CPU CORE 1 SCHED LOAD BOOST -->
<!--L CPU CORE 2 SCHED LOAD BOOST -->
<!--L CPU CORE 3 SCHED LOAD BOOST -->
<!--L CPU CORE 4 SCHED LOAD BOOST -->
<!--L CPU CORE 5 SCHED LOAD BOOST -->
<!--BWMON - Set sample_ms 20 -->
<Config
Id="0x00001334" Enable="true" Timeout="0" Target="msmtrinket"
Resources="0x40C68100, 0xFFFFFFFA, 0x40C68110, 0xFFFFFFFA, 0x40C68120, 0xFFFFFFFA,
0x40C68130, 0xFFFFFFFA, 0x40C68040, 0xFFFFFFFA, 0x40C68050, 0xFFFFFFFA,
0x43034000, 0x14"/>
</Powerhint>
</HintConfigs>

View File

@@ -15,4 +15,6 @@ else ifeq ($(TARGET_BOARD_PLATFORM),sm6150)
PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/sm6150/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/sm6150/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
else ifeq ($(TARGET_BOARD_PLATFORM),bengal) else ifeq ($(TARGET_BOARD_PLATFORM),bengal)
PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/bengal/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/bengal/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
else ifeq ($(TARGET_BOARD_PLATFORM),trinket)
PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/trinket/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
endif endif