Commit Graph

34 Commits

Author SHA1 Message Date
Ethan Chen
48bfafcf39 power: Use log/log.h instead of utils/Log.h
Change-Id: I827c7f5ab27548eec8d6e4ee27a72fa883025002
2023-10-29 22:13:01 +00:00
Michael Bestas
0b6459f08e power: clang-format
* Using AOSP interface .clang-format
* Clean Android.mk while we are at it

Change-Id: I630f72e3dffb676ca1930e72945e897f62103ada
Signed-off-by: Arian <arian.kulmer@web.de>
2023-10-29 22:13:01 +00:00
Michael Bestas
39e18570bf power: Compile with -Wall -Wextra -Werror
* And fix the build errors

Change-Id: I183203edfd92d4672893d74aa7428bc9f5e17772
2023-10-29 22:13:01 +00:00
Michael Bestas
cbf3615141 power: Remove powerhintparser
* The usage of this code was removed in commit
  0c226b7921b421dd24363f15aefef1236aa25287
* powerhint.xml is now read by libqti-perfd

Change-Id: I498ad19d0bb43124e4518c5a4f20191a2c122997
2023-10-29 22:13:01 +00:00
Michael Bestas
d526c7c49c power: Rename power-8952.c to power-8937.c
* Latest power-8952.c is used for msm8937 with mpctl V3.
  Rename the file to reflect msm8952 is no longer supported.

Change-Id: Iccd2a3c0abed2ef10d5f6c2182c0509a2fbe611d
2023-10-26 16:40:36 +03:00
Michael Bestas
dbaf7b3edb power: Drop unsupported platforms
Change-Id: I757c0810ae24eb36bbd1a8c02108f111d96c1eca
2023-10-26 16:40:10 +03:00
LuK1337
de33daea0c power: Allow device specific hooks for setMode, isModeSupported
* Some devices may want to implement custom hooks

Change-Id: Icb2d66471ec649a69b1e69849fd86282775052cb
2023-10-26 16:39:26 +03:00
Christopher R. Palmer
a7fabc8b44 power: Allow devices to write their own platform specific bits
Using this hook, any device should be able to reuse the majority of the
powerhal and fork only power-<platform>.c if they feel that they need
the ability to provide more specific tuning of the hints/etc. for
their device.

Change-Id: I013a3ec3ddccbe6f74f3dacf456cc6e8b3ab3430
2023-10-26 16:39:26 +03:00
Steve Kondik
e2732b782f power: Allow device specific hooks for set_interactive
* Some devices may want to implement custom hooks

Change-Id: I9be8023c8134b3c262f27b43a28bec0e14c0fd7f
2023-10-26 16:39:26 +03:00
Steve Kondik
6b46a293df power: Add support for tap-to-wake feature control
Co-authored-by: Arian <arian.kulmer@web.de>
Co-authored-by: LuK1337 <priv.luk@gmail.com>
Change-Id: I545902b29f4828c127bc32def6e30b67ce4a3aa7
2023-10-26 16:38:59 +03:00
Michael Bestas
9df9caa266 power: Add -qti suffix to module name
* Prevent conflict with other HALs

Change-Id: Icf1216410db26c3bb811d7aedde03e6d2f87e3cc
Signed-off-by: Sebastiano Barezzi <barezzisebastiano@gmail.com>
2023-10-26 16:36:36 +03:00
Linux Build Service Account
091da968f5 Merge "power: Add powerhint.xml for trinket" into power.lnx.6.0 2023-08-10 23:24:12 -07:00
Shashank Simha M R
c0311cc6e8 power: Add powerhint.xml for trinket
Added powerhint.xml for trinket target.

Removing Trinket conditions from make files.

Change-Id: I9da2caabb9acaabed5284e986af10415c8cf6f38
2023-08-03 11:16:04 +05:30
Vinay Rijhwani
d56cbc9729 Power: Using only v3 powerhal version for this branch
Using only v3 powerhal version for this branch

Change-Id: Iab9bc8c83bb2f052309791aa9f76a8676bddbfd1
Signed-off-by: Vinay Rijhwani <quic_vrijhwan@quicinc.com>
2023-08-01 15:56:56 +05:30
zehugong
5ef80ed94d power: update SDK version for QSSI13.
Update SDK version in PowerHintSession to support QSSI13.

Change-Id: I7b14160f9c536e9d16f7c7b97753d5c53faef5c1
2023-05-16 23:42:14 -07:00
zehugong
7bcadd18d4 power: Add support for ADPF implementation.
ADPF provided the API for power/performance tuning. Add API support in power HAL.

Change-Id: Ie00f97650b209a890da222e5911371a270efb131
2023-05-10 13:46:08 +08:00
Shashank Sivakumar
1d6f3540d7 power: update the AIDL client ver 3
The AIDL client is updated to use version 3.

Change-Id: I6b7e559809629cf59e1359787d5e99fb151ef960
2022-08-23 17:28:46 -07:00
Siddeswar Aluganti
04373bf53e Power: Replace library name from ndk_platform to ndk
Replace library name from ndk_platform to ndk.

Change-Id: I9b471d46ba114baec555f1ead8d73a7d382ba55c
2022-06-08 23:01:37 -07:00
Vini Vennapusa
518a8d0e0c Power: Replace ndk_platform to ndk for Android-T
Replace library name from ndk_platform to ndk for
Android-T version

Change-Id: I0fa28b653e39cb5bda6a5e15217f87cc8cbd13c8
2022-05-26 12:58:35 -07:00
Siddeswar Aluganti
e636822023 Power: Replace library name from ndk_platform to ndk
Replace library name from ndk_platform to ndk.

Change-Id: Ic30b22a24e0213c687bdce0aa240202e347fee68
2022-05-09 13:39:19 +05:30
Divya Sharma
6b812f0f55 Specify stable AIDL version number.
Bug: 181709127
Change-Id: I1132378f14428bf511f3cea4f419e90a6e89f823
2021-06-15 22:26:20 -07:00
Deevana Murthy Bandaru
ffe56b0565 Revert "Specify stable AIDL version number."
This reverts commit fe5c39c5d2.

Change-Id: Ib7cf4760a2a62e7bb2dd4527004588c26850e433
2021-04-19 12:18:53 +05:30
Divya Sharma
fe5c39c5d2 Specify stable AIDL version number.
Bug: 181709127
Change-Id: I1132378f14428bf511f3cea4f419e90a6e89f823
2021-03-19 11:54:37 -07:00
Rajeswari N
dbf22f7b1a power: conversion from hidl to aidl
Added aidl specific changes

Change-Id: Iaba27ba991db960b8e0721047910de4da1c20934
2020-07-05 22:16:44 +05:30
Deevana Murthy Bandaru
c7f54f5385 power: Fixing broken condition
Fixing broken condition in make file

Change-Id: I109cb4090aabd83a1512307f18bc397fb7dc9a67
2019-09-27 19:19:15 +05:30
Deevana Murthy Bandaru
006555fdb3 Power: Porting powerhal support
Porting powerhal support to Android Q products

Change-Id: If1f1f0fed9f4138c807add639690ded090d44853
2019-09-13 12:00:27 +05:30
Ananth Raghavan Subramanian
d39ec577a6 power: Introducing PowerHAL binderized service
Moving from the default implementation to a binderized service with no
wrapping.
Now using 1.2 implementation of the IPower interface.

Change-Id: Ibefd916544f51545e6889684a051b2ecc5867fe2
2019-01-17 16:15:04 -08:00
Ananth Raghavan Subramanian
11ff7dc0e7 Power: Naming convention change
Change-Id: Ie0437a9020059f639cfb729ba292254523278672
2018-08-17 15:57:43 -07:00
David Ng
03e283993d Unconditionally include this project and create header library
Create qti_powerhal_headers library from include files and
permanently relocate power HAL from device/qcom/common
for all targets.

Change-Id: I379fde83cebf9d077b77fccf195345c4fe1c2d71
2018-06-04 16:00:03 -07:00
Rajashekar Adi
6d0ed950d1 power: Fix for VNDK compliance issue
VNDK flag enablement for P upgrade

Change-Id: I033c3d9c8a1ee1e7f52a6398ae989becd66d161e
2018-06-04 15:12:52 -07:00
Ananth Raghavan Subramanian
32e093d10d power: Notify touch of display status
PowerHAL writes to a sysfs node to inform touch when display goes on/off

Change-Id: Ia9af606ad3572d498f09d575a40c83e900a0b82a
2018-06-04 15:08:48 -07:00
David Ng
7cbc5af3e9 Rename sdm670 to sdm710
Merge and rename shared Android target paths.

Change-Id: If2f47bbff5445f4de9e6b3ddb5279920fb6c9ee0
2018-06-04 15:07:11 -07:00
Rajashekar Adi
380452d263 sdm670:power: Turn on/off display
PowerHAL writes to a sysfs node when it gets display on/off notification.

Change-Id: I58d604cf4fae169f4c9af1ae683c6f7380432220
2018-06-04 11:53:34 -07:00
David Ng
ee7c4c5831 Relocate power HAL from device/qcom/common
Split module from combined device/qcom/common project into its
own project.

Relocation of some files from device/qcom/common at
b5ce80cb1f60759a142a9338104d3adf3303ec0c.

Change-Id: I6c13729a822f6fb9b5574b759ae9ec12154be464
2018-05-24 00:32:16 -07:00