Commit graph

252 commits

Author SHA1 Message Date
Rox-
569b83700c Revert "msm8226: Use common cyanogen hardware repo"
We only use DisplayColorCalibration from there and AdaptiveDisplay is duplicated ( one exist in samsung/cmhw ) and causes build error
This reverts commit bd5ba43a61.
2015-12-31 12:02:33 +01:00
Rox-
e57053e2fa msm8226-common: Stop QC-QMI message spam 2015-12-30 14:25:24 +01:00
Rox-
b08ac9cd48 msm8226-common: Update GPS header for M 2015-12-27 14:02:57 +01:00
Rox-
3bbe9c0c97 msm8226-common: Update media_codecs and media lib listing 2015-12-27 14:02:43 +01:00
Gabriele M
17591b33ae Custom PowerHAL implementation
PowerHAL highlights:
* The CPU governor is always interactive. Governor changes are not
  expected and permissions are set once on boot.
* Powersave profile: the CPU frequency is limited 787MHz and the CPU
  is never boosted on user interaction. This will save power without
  making the phone unbearably slow.
* Performance profile: the CPU is constantly boosted.
* Balanced profile: the CPU is boosted on user interaction.
  When the screen is turned off, the governor is tuned to lower the
  power consumption to save power in case of long lasting screen off
  activities such as music playback.
* Currently there are no restrictions on the number of active cores.

With this PowerHAL cpu-boost is not needed, so keep it disabled.

In addition to that, drop all the properties based profiles and set
config_perf_profile_prop to "powerhal" to make the framework send
hints to PowerHAL when the power profile is changed.

msm8226-common: PowerHAL: Initialize mutex

Since the mutex is declared as static, this went unnoticed, but mutexes
should always be initialized, so do it.

msm8226-common: PowerHAL: Don't override user selected profiles

Save and restore the last selected profile so that the user preference
is not lost when transitioning out the low power mode. Also, don't
actually change the profile if in low power mode, but don't discard
the user preference.

msm8226-common: Refactor PowerHAL

Make the HAL generic by keeping the device dependent configuration
separate. This allows to easily add or edit the profiles.

The HAL should behave exactly as before, except for the fact that now
there might be some useless writes when the screen is turned off.

Change-Id: I6bb01a14f0058c59986989568e7766f4203150cc
2015-12-27 13:13:57 +01:00
Rox-
bdeca00d33 msm8226-common: Cleanups
*GPS update for M
*Newline
*Drop USB charging mode - not needed in M
*Specify persist.sys.ssr.enable_debug
2015-12-26 15:53:57 +01:00
Thierry Strudel
0f01aab1fc msm8226-common: force dex2oat not to use swap file
Bug: 20658562
Change-Id: Ib8e47b3edd94b1977c294959cdde01a54b64f123
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2015-12-26 15:53:50 +01:00
Apavayan Sinha
1dde331fec msm8226-common: ril: update constructors for M
Change-Id: Ia749bc1ab58a83947520945e49138522237492a4
2015-12-26 15:30:34 +01:00
Jackeagle
647f63136b rootdir: Add more permissions
- Required for S5 Mini

Change-Id: Ib88ae9eec4ca4da5d390c75580509c3f9f2ec684
Signed-off-by: Jackeagle <jackeagle102@gmail.com>
2015-12-11 05:21:58 -05:00
Jackeagle
ebfbceee15 rootdir: Add more usb parameters
- Needed for other devices

Change-Id: Ib8f90006bfd55f3227714bfd5f79e7163e0fecd8
Signed-off-by: Jackeagle <jackeagle102@gmail.com>
2015-12-11 05:16:07 -05:00
Zhao Wei Liew
47a350f43e msm8226: Enable idle power collapse in charge mode
No reason to disable this, stick to default. Also disable thermal
driver before setting low power modes for sanity's sake.

Change-Id: I54457176494b295ca2e78c8ce306fa1838350962
2015-12-02 18:48:59 +08:00
Zhao Wei Liew
5d90599f1a msm8226: Remove unused encryption properties
We are building these modules inline, so these properties are unused.

Change-Id: If6597f51cf9675f09804f34ab508616e81effffc
2015-12-01 23:09:50 +08:00
Zhao Wei Liew
e7b55c62d7 msm8226: Reference inline WLAN module
We have switched to building the module inline, make the appropriate
changes to recognize the change.

Change-Id: I2e6e5114f4241c1b694f678dbdd59f4efd173d5b
2015-12-01 23:07:45 +08:00
Zhao Wei Liew
c2ee69951d msm8226: Remove last unused mm-dash lib
With the recent removal of QC AV enhancements, we no longer use
these libs.

Change-Id: Ic7c4fd8056e88c278d7f11bdfeaf24af5aede124
2015-11-30 18:47:37 +08:00
Zhao Wei Liew
e6db609a6c msm8226: Move dalvik config to system prop file
Change-Id: Iac6d9c5263ea958dc8bbadee1eacb880bba7af76
2015-11-30 18:45:45 +08:00
Steve Kondik
9ef5fdbe38 msm8226: Drop all the janky proprietary stuff we don't even use
Change-Id: I6832ca9b57b171590e8f257b92e45fa9777c6ed4
2015-11-30 18:40:17 +08:00
Zhao Wei Liew
fe00f1ba4d msm8226: Optimize key disabler
* Skip the conversion of types, compare directly.
 * Declare keydisabler path as static final

Change-Id: Ie18d5f43b49f6efd95615d1ec3846d78bbe3a316
2015-11-30 15:22:25 +08:00
Zhao Wei Liew
42a19d3d39 msm8226: Disable in-kernel input boost
We have 1.1 GHz input boosting for 3 seconds in PowerHAL, so this
is definitely unneeded, wasting more power.

Furthermore, this will hurt performance. The in-PowerHAL solution will
race with the in-kernel solution due to difference in boost freqs,
hurting performance.

Change-Id: Id4381af400d94a9c7690274d10b1b4ea011b6b32
2015-11-30 08:48:12 +08:00
Steve Kondik
686eb762e9 msm8226: Adjust cpufreq timer rate
* We're no longer managing timer_rate from the PowerHAL, so set it to
   30000 which will improve battery live.

Change-Id: I5a25533b674b37961e975537fc7b905f4e3497b3
2015-11-30 08:10:42 +08:00
Rox-
3d97fb58c1 [WIP]msm8226-common: Update sepolicy for M 2015-11-29 17:06:30 +01:00
Zhao Wei Liew
d687a9499e msm8226: Commonize system properties
Respective devices need to add a reference to their target
system properties in BoardConfig.mk.

Change-Id: Ic79498519f53fac1cf0e4a37aefa1ca18db5d5e2
2015-11-29 16:30:20 +01:00
Rox-
7045e1cd5f msm8226-common: Update FM packages for M 2015-11-27 21:51:51 +01:00
Steve Kondik
1d271edc07 msm8226: Speed up scroll response
* Lower the touchslop

Change-Id: Id0a16fad5e35fe85c05637085057a1bac81bf4a1
2015-11-27 21:51:42 +01:00
Steve Kondik
e8bc18546a msm8226: Build the kernels with gcc-4.9
This requires appropriate GCC warning fixes in the kernel.

Change-Id: Ia0c0cc45b2c192ad7262d797ee3c469b94644194
2015-11-27 22:47:31 +08:00
Zhao Wei Liew
bd5ba43a61 msm8226: Use common cyanogen hardware repo
Change-Id: Iea20d73a6d29217a30c0ba4c2b85d4f35efdf7b3
2015-11-27 21:28:42 +08:00
Rox-
e7423d0351 msm8226-common: rootdir: Clean up init and move outside etc
*Remove some device specific permissions, add them to init.target.rc
2015-11-27 12:22:27 +01:00
Zhao Wei Liew
13df128ae6 msm8226: Refactor low power set-up
* Use a trigger to enable low power modes in recovery and boot.
* Enable L2 low power modes in charger.
* Set up low power modes earlier to keep device cool during dexopt.
* Slight clean up.

Change-Id: Ida7a62e457e2eda052e4a83b050df673eda743e0
2015-11-26 15:20:08 +08:00
Zhao Wei Liew
2556302858 msm8226: Enable low power modes in recovery
Build the power config for recovery too.

Change-Id: I238a38a7fd54b510123962b003eaecca5f3d68ab
2015-11-26 14:49:04 +08:00
Zhao Wei Liew
5459fe2415 msm8226: Use VENDOR_PATH for local directory
Stop using LOCAL_PATH as it breaks CMHW build. Also remove
a redundant definition of LOCAL_PATH.

Change-Id: Ib79072aba4d429a290300c9026752adac5129017
2015-11-26 14:41:44 +08:00
Zhao Wei Liew
ffeea9fa32 msm8226: Remove duplicate USB package
This is built in one of the common device makefiles.

Change-Id: If2f4c8865c04c5b2d308ebdad1e087b9f1d1fdf8
2015-11-26 14:18:41 +08:00
Zhao Wei Liew
12f4a093bf msm8226: Actually build the init scripts
Change-Id: I92b336a54c04548fb5cb5dd3830ecfaff9b1eb11
2015-11-26 14:18:18 +08:00
Zhao Wei Liew
7bfcb69873 msm8226: Switch to deep buffer audio output by default
This was missed out. Actually enjoy lower power consumption.

Change-Id: I818d24a5531750fa90664d1c14d5cbad2b5565cf
2015-11-25 13:44:13 +08:00
Zhao Wei Liew
7c1e6cf7e1 msm8226: Commonize init scripts
Change-Id: Iab43f5a4174edd758e0654f127d7820f9912fdb4
2015-11-25 13:31:34 +08:00
Zhao Wei Liew
4b3a03195c msm8226: Remove duplicate repo dependencies
FM HAL is synced by default.

Change-Id: If05a017568b6cc8fed965a49e9f815a625acf8d4
2015-11-25 12:29:06 +08:00
Zhao Wei Liew
167c0c676f Revert "msm8226: Wait for keymaster to be loaded in TZ"
Our blobs don't support this.

This reverts commit 12ca0b8029.
2015-11-25 12:28:46 +08:00
Apavayan Sinha
d0c866c306 msm8226-common: RIL: Remove leftover
Change-Id: Ic768b3e9df4b40854c7015cb38e0b1d4b6c61914
2015-11-17 12:02:56 +01:00
Rox-
2bab516116 msm8226-common: remove persist.sys.usb.config override 2015-11-15 16:45:25 +01:00
Rox-
20ac341ea7 msm8226-common: Update media_codecs for M 2015-11-15 16:40:23 +01:00
Rox-
8a84b90f1f msm8226-common: Update RIL for LP blobs 2015-11-15 14:32:52 +01:00
Ethan Chen
6d1e6cf542 msm8226-common: Add RIL shim library 2015-11-15 14:26:39 +01:00
Rox-
9e98008c0a msm8226-common: Build libextmedia_jni and libqcmediaplayer 2015-11-15 14:23:21 +01:00
Apavayan Sinha
0a303128d3 msm8226: Enable camera compatibility flag
Change-Id: I4993cf0de6f38da9c7d24e880fc3bd6768d8e3f2
2015-11-15 14:22:05 +01:00
Apavayan Sinha
12ca0b8029 msm8226: Wait for keymaster to be loaded in TZ
Change-Id: I5e3774b0ed0b19fe2be9a1c71346c8ab6b4e2682
2015-11-15 14:21:49 +01:00
Apavayan Sinha
c178d9c31f sepolicy: Fix denials init tmpfs on boot
Change-Id: Ic4bde2010c1d90b7ff05498c804273a5e6683693
Signed-off-by: Apavayan Sinha <info@apavayan.com>
2015-11-15 14:21:13 +01:00
Apavayan Sinha
227611e6a2 msm8226-common: remove duplicates and non existent
Change-Id: Idcce4722a5ec77a801386316e81c5d3047866e08
2015-11-15 14:20:36 +01:00
Apavayan Sinha
def3327562 msm8226-common: Add MIDI support
needed for audio on android 6.0.0

more info: https://source.android.com/devices/audio/midi.html

Change-Id: Ic14277511f73d79795e5f890f009f0e5dd5913a8
Signed-off-by: Apavayan Sinha <info@apavayan.com>
2015-11-15 14:20:02 +01:00
Rox-
a5b0450082 msm8226-common: Remove USB OTG property 2015-11-15 14:15:58 +01:00
Apavayan Sinha
61d675e0d8 msm8226: Load BoringSSL compatibility library
Change-Id: Ibec2776d39e77f72ea82ece1019ac847135c4e55
2015-10-23 11:28:00 +05:30
Apavayan Sinha
bde988a18d msm8226: Compile libstlport
Change-Id: I3f0dcd8fbb33610c583a9e40b11a5314acdac531
2015-10-23 10:48:43 +05:30
Apavayan Sinha
ececd0f1e5 gps: fix build with M
Change-Id: Ibe8799714547cffb5e4505a08fa85d30075afd9d
Signed-off-by: Apavayan Sinha <info@apavayan.com>
2015-10-18 13:41:21 +05:30