diff options
author | Niranjan Reddy Dumbala <ndumba@codeaurora.org> | 2017-03-17 17:54:52 +0530 |
---|---|---|
committer | Vara Prasad A V S G <vavsg@codeaurora.org> | 2017-03-24 12:13:47 +0530 |
commit | ba549c4e0d0f12d153b296fa2b9ed93c0fb67cd2 (patch) | |
tree | 2119ebc16f377428e70c8eeeb16c65f2c55b4318 /overlay | |
parent | fad70d44341ff96b5a3580a65685cbad5de263f0 (diff) |
SDM660_64: Intial bring up.
Intial bring up changes
Change-Id: I789911a6cd9edacdf73df41b39a80b096b9f1077
Diffstat (limited to 'overlay')
-rwxr-xr-x[-rw-r--r--] | overlay/frameworks/base/core/res/res/values/config.xml | 67 | ||||
-rwxr-xr-x | overlay/frameworks/base/core/res/res/xml/power_profile.xml | 115 |
2 files changed, 164 insertions, 18 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 1825a0b..f7cba1e 100644..100755 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -35,32 +35,47 @@ <item>0x40C00000</item> <!-- SCHEDBOOST resource opcode--> <item>0x1</item> <!-- SCHEDBOOST resource value--> <item>0x40804000</item> <!-- CPUBOOST_MAX_FREQ BIG Core resource opcode--> - <item>0xFFF</item> <!-- CPUBOOST MAX_FREQ resource value--> + <item>0xFFF</item> <!-- CPUBOOST MAX_FREQ resource value--> <item>0x40804100</item> <!-- CPUBOOST_MAX_FREQ LITTLE Core resource opcode--> - <item>0xFFF</item> <!-- CPUBOOST MAX_FREQ resource value--> - <item>0x40800000</item> <!-- CPUBOOST_MIN_FREQ BIG Core resource opcode--> - <item>0xFFF</item> <!-- CPUBOOST MIN_FREQ resource value--> - <item>0x40800100</item> <!-- CPUBOOST_MIN_FREQ LITTLE Core resource opcode--> - <item>0xFFF</item> <!-- CPUBOOST MIN_FREQ resource value--> - <item>0x41800000</item> <!-- CPUBW_MIN_FREQ resource opcode--> - <item>140</item> <!-- CPUBW_MIN_FREQ resource value--> + <item>0xFFF</item> <!-- CPUBOOST MAX_FREQ resource value--> + <item>0x40802000</item> <!-- CPUBOOST_MIN_FREQ BIG Core resource opcode--> + <item>3</item> <!-- CPUBOOST MIN_FREQ resource value--> + <item>0x40802100</item> <!-- CPUBOOST_MIN_FREQ LITTLE Core resource opcode--> + <item>2</item> <!-- CPUBOOST MIN_FREQ resource value--> + </integer-array> + <!-- Whether packing disable is enabled. --> + <bool name="config_disablePacking">true</bool> + <integer name="disablepacking_timeout_param">1500</integer> + <integer-array name="launchboost_packing_param_value"> <item>0x40400000</item> <!-- POWER COLLAPSE resource opcode--> <item>0x1</item> <!-- POWER COLLAPSE resource value--> <item>0x42C10000</item> <!-- STORAGE CLK SCALING resource opcode--> <item>0x1</item> <!-- STORAGE CLK SCALING resource value--> </integer-array> + <bool name="config_enableLaunchBoostv2">true</bool> + <integer name="lboostv2_timeout_param">15000</integer> + <integer-array name="lboostv2_param_value"> + <item>0x40C5C000</item> <!-- SCHED FREQ_AGGR_THRH resource opcode--> + <item>50</item> <!-- SCHED FREQ_AGGR_THRH resource value--> + </integer-array> + + <bool name="config_enableCpuBoostForOverScrollerFling">true</bool> <integer-array name="flingboost_param_value"> - <item>0x41800000</item> <!-- CPUBW_MIN_FREQ resource opcode--> - <item>0x33</item> <!-- CPUBW_MIN_FREQ resource value--> - <item>0x40800000</item> <!-- CPUBOOST_MIN_FREQ BIG CORE resource opcode --> - <item>1000</item> <!-- CPUBOOST MIN_FREQ resource value --> - <item>0x40800100</item> <!-- CPUBOOST_MIN_FREQ LITTLE Core resource opcode --> - <item>1000</item> <!-- CPUBOOST MIN_FREQ resource value --> <item>0x40C00000</item> <!-- SCHEDBOOST resource opcode--> - <item>0x1</item> <!-- SCHEDBOOST resource value--> - <item>0x40C28000</item> <!-- SCHEDGROUP resource opcode--> - <item>0x1</item> <!-- SCHEDGROUP resource value--> + <item>0x2</item> <!-- SCHEDBOOST resource value--> + <item>0x40802000</item> <!-- CPUBOOST_MIN_FREQ BIG CORE resource opcode --> + <item>1</item> <!-- CPUBOOST MIN_FREQ resource value --> + <item>0x40802100</item> <!-- CPUBOOST_MIN_FREQ LITTLE Core resource opcode --> + <item>1</item> <!-- CPUBOOST MIN_FREQ resource value --> + <item>0x41800000</item> <!-- CPUBW_MIN_FREQ resource opcode--> + <item>0x31</item> <!-- CPUBW_MIN_FREQ resource value--> + <item>0x41400000</item> <!-- ABOVE_HISPEED_DELAY_BIG resource opcode--> + <item>1</item> <!-- ABOVE_HISPEED_DELAY_BIG resource value--> + <item>0x41418000</item> <!-- IO_IS_BUSY_BIG resource opcode--> + <item>1</item> <!-- IO_IS_BUSY_BIG resource value--> + <item>0x40C5C000</item> <!-- SCHED FREQ_AGGR_THRH resource opcode--> + <item>40</item> <!-- SCHED FREQ_AGGR_THRH resource value--> </integer-array> <!-- Operating volatage for bluetooth controller. 0 by default--> @@ -69,7 +84,19 @@ <bool name="config_enableCpuBoostForScroller">true</bool> <integer-array name="scrollboost_param_value"> <item>0x40C00000</item> <!-- SCHEDBOOST resource opcode--> - <item>0x1</item> <!-- SCHEDBOOST resource value--> + <item>0x2</item> <!-- SCHEDBOOST resource value--> + <item>0x40802000</item> <!-- CPUBOOST_MIN_FREQ BIG CORE resource opcode --> + <item>1</item> <!-- CPUBOOST MIN_FREQ resource value --> + <item>0x40802100</item> <!-- CPUBOOST_MIN_FREQ LITTLE Core resource opcode --> + <item>1</item> <!-- CPUBOOST MIN_FREQ resource value --> + <item>0x41800000</item> <!-- CPUBW_MIN_FREQ resource opcode--> + <item>0x31</item> <!-- CPUBW_MIN_FREQ resource value--> + <item>0x41400000</item> <!-- ABOVE_HISPEED_DELAY_BIG resource opcode--> + <item>1</item> <!-- ABOVE_HISPEED_DELAY_BIG resource value--> + <item>0x41418000</item> <!-- IO_IS_BUSY_BIG resource opcode--> + <item>1</item> <!-- IO_IS_BUSY_BIG resource value--> + <item>0x40C5C000</item> <!-- SCHED FREQ_AGGR_THRH resource opcode--> + <item>40</item> <!-- SCHED FREQ_AGGR_THRH resource value--> </integer-array> <bool name="config_debugBoost">true</bool> @@ -89,4 +116,8 @@ <item>0x40800000</item> <!-- SCALING_MIN_FREQ big cluster resource opcode --> <item>0x4A6</item> <!-- SCALING_MIN_FREQ of 1190 MHz big cluster resource value --> </integer-array> + <!-- The duration (in milliseconds) for the outgoing sms authorization request to timeout.--> + <integer name="config_sms_authorization_timeout_ms">15000</integer> + <!-- Enable SMS authorization support --> + <bool name="config_sms_authorization_enabled">true</bool> </resources> diff --git a/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/overlay/frameworks/base/core/res/res/xml/power_profile.xml new file mode 100755 index 0000000..39c08d7 --- /dev/null +++ b/overlay/frameworks/base/core/res/res/xml/power_profile.xml @@ -0,0 +1,115 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (c) 2016, 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 +--> + + +<device name="Android"> + <!-- Most values are the incremental current used by a feature, + in mA (measured at nominal voltage). + The default values are deliberately incorrect dummy values. + OEM's must measure and provide actual values before + shipping a device. + Example real-world values are given in comments, but they + are totally dependent on the platform and can vary + significantly, so should be measured on the shipping platform + with a power meter. --> + <item name="none">0</item> + <item name="screen.on">63</item> <!-- ~200mA --> + <item name="screen.full">261</item> <!-- ~300mA --> + + <!-- A list of heterogeneous CPU clusters, where the value for each cluster represents the + number of CPU cores for that cluster. + + Ex: + <array name="cpu.clusters.cores"> + <value>4</value> // cluster 0 has cpu0, cpu1, cpu2, cpu3 + <value>2</value> // cluster 1 has cpu4, cpu5 + </array> --> + <array name="cpu.clusters.cores"> + <value>4</value> <!-- cluster 0 has cpu0, cpu1, cpu2, cpu3 --> + <value>4</value> <!-- cluster 1 has cpu4, cpu5, cpu6, cpu7 --> + </array> + + <!-- Different CPU speeds for cluster 0 as reported in + /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state. + + There must be one of these for each cluster, labeled: + cpu.speeds.cluster0, cpu.speeds.cluster1, etc... --> + <array name="cpu.speeds.cluster0"> + <value>633000</value> <!-- 633 MHz CPU speed --> + <value>902000</value> <!-- 902 MHz CPU speed --> + <value>1113000</value> <!-- 1113 MHz CPU speed --> + <value>1401000</value> <!-- 1401 MHz CPU speed --> + <value>1536000</value> <!-- 1536 MHz CPU speed --> + <value>1747000</value> <!-- 1747 MHz CPU speed --> + <value>1843000</value> <!-- 1843 MHz CPU speed --> + </array> + + <!-- Current at each CPU speed for cluster 0, as per 'cpu.speeds.cluster0'. + Like cpu.speeds.cluster0, there must be one of these present for + each heterogeneous CPU cluster. --> + <array name="cpu.active.cluster0"> + <value>34</value> <!-- ~34mA --> + <value>60</value> <!-- ~60mA --> + <value>85</value> <!-- ~85mA --> + <value>128</value> <!-- ~128mA --> + <value>163</value> <!-- ~163mA --> + <value>202</value> <!-- ~202mA --> + <value>253</value> <!-- ~253mA --> + </array> + + <array name="cpu.speeds.cluster1"> + <value>1113000</value> <!-- 1113 MHz CPU speed --> + <value>1401000</value> <!-- 1401 MHz CPU speed --> + <value>1747000</value> <!-- 1747 MHz CPU speed --> + <value>1958000</value> <!-- 1958 MHz CPU speed --> + <value>2150000</value> <!-- 2150 MHz CPU speed --> + </array> + + <!-- Current at each CPU speed for cluster 1, as per 'cpu.speeds.cluster1'. + Like cpu.speeds.cluster1, there must be one of these present for + each heterogeneous CPU cluster. --> + <array name="cpu.active.cluster1"> + <value>226</value> <!-- ~226mA --> + <value>331</value> <!-- ~331mA --> + <value>497</value> <!-- ~497mA --> + <value>614</value> <!-- ~614mA --> + <value>777</value> <!-- ~777mA --> + + </array> + + <!-- Current when CPU is awake --> + <item name="cpu.awake">1.6</item> + <!-- Current when CPU is idle --> + <item name="cpu.idle">0.1</item> + + <!-- This is the battery capacity in mAh (measured at nominal voltage) --> + <item name="battery.capacity">1000</item> + +</device> |