Commit Graph

1593 Commits

Author SHA1 Message Date
Jake Weinstein 66f00d232b common: enable interaction boost by default
Change-Id: I1f5570ee9be9551628a01da94256b6ddb8be6a99
2016-01-30 22:10:39 -05:00
Anshuman Dani a31e0e46c8 init_msm8960: Overwrite ro.opengles.version for 8960
Overwrite the ro.opengles.version property with 0x2000.
This change is specific to 8960 Classic, which can only
support upto Open GLES vesion 2.0

This change fixes the CTS test failure
android.opengl.cts.OpenGlEsVersionTest

CRs-Fixed: 575502

Change-Id: I7e90ddde44fef596d1446e6f1acfe7070ef9337b
2016-01-30 22:10:39 -05:00
dhacker29 1a5d47b426 common: init: Add hook for target specific libinit defines
* Set TARGET_LIBINIT_DEFINES_FILE := path to your file in BoardConfig

Change-Id: I2cc84a0c82875b2cf57c2b94a544a30c9ada546b
2016-01-30 22:10:39 -05:00
Jake Weinstein bdf1abf3af common: build vendor init static library as C++
* This is necessary in order to match f3cf438714

* Based on the following commit to CyanogenMod eda5f3cca0

Change-Id: Ib3f2e4c533129aba8fba9eda8509762c7fc5d7c7
2016-01-30 22:10:39 -05:00
Jake Weinstein 9209b72a30 common: include common Qualcomm boot jars
Change-Id: I53840f5984bbbb48d02ebb82c8fb79229f2d021c
2016-01-30 22:10:39 -05:00
Jake Weinstein 13a230671c common: imply certain variables for Qualcomm targets using a common BoardConfig
Change-Id: I6bbaf55c0c89d90dc55e77128d5f43e2ef88d62b
2016-01-30 22:10:39 -05:00
Jake Weinstein 8e5b8684ae build: import kernel building script and clean generate extra images
* Based on AndroidKernel.mk from CAF kernel source.

Change-Id: I104dd9931daf23bb063a0b769dcadc7b7d654fd3
2016-01-30 22:10:39 -05:00
Jake Weinstein 7401873d75 dtbtool: allow devices to use a custom dtbtool
* Many devices require custom dtbtools to generate working
  kernels.

Change-Id: Ib0879d9cfb6040ed21fa6a5f5e1501d5ad92f870
2016-01-30 22:10:13 -05:00
Jake Weinstein d9efe0322b power: use power.$(TARGET_BOARD_PLATFORM)
* power.qcom works on devices only when ro.hardware=qcom, which isn't true on all.

Change-Id: I24a5fef153d4075f38bf1ff9508b7b10764fed74
2015-12-07 21:54:51 +00:00
Tanya Finkel 889088c372 display: Fix resolution for SBC8016 platform
The default display for the SBC platform is HDMI display.

Change-Id: I41003b140a7201f681fcc5005106ccdd0e5736e3
2015-11-06 04:58:41 +00:00
Pushkaraj Patil 0dc9940a9c common: Set separate system property for 8929
8929 is using 8939 system property to select hw hevc
decoder solution but this may lead to other CTS issues
as 8929 have different specification. Use separate
system property for 8929.

Change-Id: I8687279c7fa2957ddf16dfeeba4f0c859c3bf01b
2015-11-06 04:58:41 +00:00
Pushkaraj Patil 78b7be083c common: use hw hevc decoder for msm8929
8929 target is using software hevc decoder. Set a system
property so as to use hw hevc decoder, for all variants of
8929.

Change-Id: I156a26e905859a23f96a32ca4b98cdee688833df
2015-11-06 04:58:41 +00:00
Manikanta Kanamarlapudi e2385f88ee common: Set system property to differentiate 8916 and 8939 hw
Set system property to differentiate 8916 and 8939 hw based
on soc-id to select appropriate media_codecs.xml

Change-Id: I043e00c9c580994b511f8fcec4a0890da90645a6
CRs-Fixed: 770327
2015-11-06 04:58:41 +00:00
Pushkaraj Patil 9ca09baa10 init: disable narrow search range
For 8916 narrow search range should be disable.
Disable set property vidc.enc.narrow.searchrange,
if target is 8916.

Change-Id: I501eaf1de72334a0a86baa222d29387b4da66860
2015-11-06 04:58:41 +00:00
Praveena Pachipulusu 114f2242da init_msm8916: Properly handle reading sysfs node
Properly handle failure to read sysfs file used to
determine the lcd density.

Change-Id: I864f67e9c9489b20f3634179e277fb5ad6096af0
2015-11-06 04:58:41 +00:00
Praveena Pachipulusu 755ea2e467 init: Add MSM-specific init extension library
Implement MSM-specific initialization during boot
up at "init" stage. Set DPI property based on panel
resolutions by reading virtual_size sysfs entry.

Change-Id: Ie0e1b5e68c72abe4aa11edbd4700bef3208dd461
2015-11-06 04:58:41 +00:00
Manikanta Kanamarlapudi 2eb5cdf7ca common: Add setprop to differentiate sw/hw HEVC
Add setprop to differentiate sw/hw HEVC based on
msm_id

Change-Id: I15421fa9217597a541e0ee042ba48662fcda59b4
2015-11-06 04:58:41 +00:00
Manikanta Kanamarlapudi 4850063265 common: Add init_msm for 8916 file
Add init_msm for 8916 file and do setprop's
for hw/sw HEVC based on msm_id

Change-Id: I4cde44765e017add364a3632632a4c78cdab33f5
2015-11-06 04:58:41 +00:00
Shruthi Krishna e51bd6991f Renaming thulium to msm8996
Change-Id: I912a7bc3a107341e7d413937c0d1e9580e0a20d6
2015-11-06 04:58:41 +00:00
Bruce Levy fb14db9279 init: Add MSM-specific init extension library for thulium
- Implements MSM-specific initialization during bootup
- Sets the lcd density to 480

Change-Id: I30259948edf866b0e288d33ae1965aa1bd980f93
2015-11-06 04:58:41 +00:00
Ilia Lin 06902886c8 init: qcom: Set ro.sf.lcd_density for SBC APQ8084
Set the property ro.sf.lcd_density value to comply the
SBC APQ8084 display size.
qemu.hw.mainkeys is set to 0, because SBC is headless device
and doesn't have HW buttons.

Change-Id: I3e4e56245f95a061ea218f16c0af3f10a797ad4b
2015-11-06 04:58:41 +00:00
Vijay Ganti 3a04bbdd8b apq8084: Update LCD density setting for APQ8084 MTP and Liquid
Update LCD density on Liquid to 320 and MTP to 480
based on UX profiling and Jank analysis

CRs-fixed: 612032
Change-Id: I1d2ee7671b7fd388967087df4f4bf8711f010478
(cherry picked from commit e47e385274)
2015-11-06 04:58:41 +00:00
Jake Weinstein 1bb753951d init: add support for MSM8952/MSM8976
Change-Id: I045bab35a8b97e84b41612e0ac0e33d43995ef60
2015-11-06 04:58:41 +00:00
Jake Weinstein 8fa270fcc4 init: add support for MSM8909
Change-Id: I852690234de1b2ffd0b6cf457106fff353a89a53
2015-11-06 04:58:41 +00:00
Prabhanjan Kandula 77b2be061e init : display: Add permission to camera bw node.
Allow surfaceflinger process to access fb0/mdp/bw_mode_bitmap,
so that framework can hint the camera usage to limit the bw.

Change-Id: I566010e1b988ab06f6618967f5b9c6d0cfb68890
2015-11-06 04:58:40 +00:00
Ilia Lin 4406b7b8d7 init: qcom: Set LCD density for Dragonboard APQ8094
Set proper LCD dencity for the FWVGA display on the
Dragonboard APQ8094.

Change-Id: I6bd657ee90a21ed8a13e6456b05feaf79b5c5c95
2015-11-06 04:58:40 +00:00
Arun Kumar K.R 515ddd0a47 init: Add MSM-specific init extension library for 8994
- Implements MSM-specific initialization during bootup
- Sets the lcd density at the bootup

Change-Id: I2bbc3e724682b8b11329b87c26aca1e4faf8d357
2015-11-06 04:58:40 +00:00
Jeykumar Sankaran b5c9c4c670 init: Add MSM-specific init extension library for 8992
- Implements MSM-specific initialization during bootup
- Sets the lcd density to 480

Change-Id: I2997e902c3bdafefda0bb98b8d8b3c1279c7b5dc
2015-11-06 04:58:40 +00:00
Saurabh Shah 5a8cc2ab60 device/qcom/common: Add permissions for mode and modes
Add permissions, owners for /sys/class/graphics/fb0/{mode, modes}
These are meant to be read/written to by hwc.

Change-Id: I43f38b8106ac066b37912a3ebd2af2375f3e7b09
2015-11-06 04:58:40 +00:00
Jeykumar Sankaran 98f88d6286 init: Set permissions for dynamic partial update node
Set file permissions for dynamic partial update system node to
control the feature at runtime.

Change-Id: Icd4799907d168c2606c8811c73f4fedd847d55f0
2015-11-06 04:58:40 +00:00
Arun Kumar K.R 6bfa2abe8e init_msm: Add usergroup permission to dynamic_fps node.
HWC will be writing to this sysfs node to set the variable
refresh rate, hence set proper usergroup

Change-Id: If668003463f580050d5843af97bf8f8761eb7f88
2015-11-06 04:58:40 +00:00
Naseer Ahmed 3edc4294a4 init: Set permissions for physical address
Change-Id: Ic7f0b296e9ab5f1738aae4f46dcb47e935da8045
CRs-Fixed: 795622
2015-11-06 04:58:40 +00:00
Naseer Ahmed f2b345ceea init: Add permissions for CEC nodes
Change-Id: I220fd52e33690ee6d4de39f121464571c7ce91e0
2015-11-06 04:58:40 +00:00
Naseer Ahmed 423dac5ea8 init_msm: S3D mode permissions
Allow HWC write permissions on this node.

Change-Id: I732c2003f1130f9ebefb17e0fcd0f14044dc24f9
2015-11-06 04:58:40 +00:00
Tatenda Chipeperekwa de541be681 init: Add persmissions to access res_info node for HDMI timing info
The HDMI driver now provides timing information through the res_info
sysfs node. The display HAL will need permissions to read/write this
node as part of HDMI initialization.

Change-Id: I2d767534a877368f55d614118676edb5f4f90b9e
2015-11-06 04:58:40 +00:00
Dilip Gudlur 9caa82e608 power: Enable 4+0 core config for display off cases
This change enables 4+0 core config for display off
sceanrios and in display off scenario system should
go back to default core config.

Change-Id: I57795988e7e0f1b2c1e160e2e454549a14bbde50
2015-10-11 21:06:47 +00:00
Dilip Gudlur 9d329156cc power: introduce 8992-specific handling
Creates framework for handling special cases like
display off, video encode differently for 8992.

Change-Id: I195a96f0787c0d2dc2696c75a6f281774e2345cb
2015-10-11 21:06:46 +00:00
Dilip Gudlur 31d31b2a3b power: modify return value for display off hint in 8994
This change bypasses execution of deprecated
code path in the power.c for dispaly off hint.

Change-Id: I3e6f5d2f5a9f1d55015149a0f7abc3c3f1f445e1
2015-10-11 21:06:46 +00:00
Dilip Gudlur 26681ee223 power: update powerhal to remove deprecated calls
Updates powerhal hint to avoid calling deprecated nodes.

Change-Id: Id0fe83d375e9867d1806f1ee5b86d2b521d0bba4
2015-10-11 21:06:33 +00:00
Dilip Gudlur ef58944c09 power: Introduce specific handling for encode use case
Adds ability to modify cpufreq/sched params for encode use case
specific to 8994.

Change-Id: I96b8b7e4246eaf870a4f8b6b947a2b24af1a515c
2015-10-11 21:05:43 +00:00
Dilip Gudlur 7e7217c69f power: introduce 8994-specific handling
Creates framework for handling special cases like
display off, video encode differently for 8994.

Change-Id: Ib4c2cf1d6b4a615d70c92a9f54665e2ba0895adb
2015-10-11 21:05:21 +00:00
Nikhil Kumar Kansal e7e2674364 common: Fix to handle min freq changes when CPU cores hotplugged.
Finds which CPU cores is online and does following below
            1.Gets scaling governor
            2.Sets scaling min freq

Change-Id: I209a6228294c945e943ff285ac8f38b7f97337d6
2015-10-11 20:23:22 +00:00
Nikhil Kumar Kansal 242a2aa6ac power: Modifying resource IDs for video encode power Hint
Modifying resource IDs for video encode power Hint in power HAL

Change-Id: I9dcce251ef62c1618169e5b6e92cc1bcebae9836
2015-10-11 20:23:22 +00:00
vaibhav bhalla 9fd3410d1b power: Change timer rate to 40ms for video encode
This change is specific to 8952, 8956 and 8976 targets.
This is to reduce CPU scaling in encoding case.

Change-Id: I72627311e1b60aeb29c6b83883932994ca75e53d
2015-10-11 20:23:22 +00:00
Nikhil Kumar Kansal 1c58bd0a02 power: Modify power HAL hint for Interactive governor
Added support for disabling sched guided during video encode.

Change-Id: Ia4a75e437c61b01c9ed52d2a4f77b5889ff7ab5c
2015-10-11 20:23:22 +00:00
Sravan Kumar Ambapuram 546053a9ba common: Changes timer rate during display off scenario.
1.Changes to set CPU0 and CPU4 interactive timer rate values
        -Display off cases:Set CPU0 and CPU4 to 50ms.
       2.Removed min freq code change due to permission restriction.

Change-Id: Ibcec0551e305137e5e465c21b61ab7db5ffcc2a3
2015-10-11 20:23:22 +00:00
Nikhil Kumar Kansal dc9f759ebb common: Change minfreq to 499.2Mhz during display off scenario.
1.Changes to set CPU0 min freq for 8952 target as below:.
          Display off case :  set to  499.2Mhz
          Display on case  :  set to  960Mhz.
        2.Changes to set CPU0 and CPU4 interactive timer rate values
          Display off cases : Set cpu0 and cpu4 to 50ms.

Change-Id: I4a16e37191431f7299791696ab91c12f758c500c
2015-10-11 20:23:22 +00:00
vaibhav bhalla c7efec1e1e common: Change the Hi-Speed freq to 800Mhz for camcorder case
Changes to set Hi-Speed freq for 8909  target as below:
         -Camcorder ON  : set to  800Mhz
         -Camcorder OFF : set to  998.4Mhz.

Change-Id: I8e4ca512c137a137fabe7762695e336a3ed37fdd
2015-10-11 20:23:22 +00:00
vaibhav bhalla 68cc660bfd common: Changed the minfreq to 400Mhz for display off scenario.
1. Changes to set CPU0 min freq for 8939 target as below:
        Display off case :  set to  400Mhz
        Display on case  :  set to  960Mhz.

Conflicts:
	power/Android.mk

Change-Id: Ie8cf31484e70f83594778c899485910b9ff2578e
2015-10-11 20:23:22 +00:00
vaibhav bhalla 934c67fba7 power: override encode hint for 8909
Default encode hint was setting hispeed_freq to 1.1GHZ
This is not needed for 8909 hence overrode that.

Change-Id: I4c3695dbe82d43ebb34732559043b59815f7d49d
2015-10-11 20:23:21 +00:00