summaryrefslogtreecommitdiffstats
path: root/power
Commit message (Collapse)AuthorAgeFilesLines
* power: Allow POWER_HINT_DISABLE_TOUCH in low power modeChristopher N. Hesse2018-02-231-2/+1
| | | | | | Remove the unused len var while we're at it. Change-Id: Iabaf3b8704072a8758b213a54530eaffbf0c7ae5
* power: Silence excessive loggingChristopher N. Hesse2018-02-191-1/+1
| | | | Change-Id: I519122aaa77e73cf0290610a3d9d4aa79700e843
* power: Keep boost fd opened as wellChristopher N. Hesse2017-07-311-28/+39
| | | | Change-Id: I016b28c29786fc948a007d4ec3106be8a662eafd
* Revert "power: Temporary logging fix"Christopher N. Hesse2017-07-131-4/+13
| | | | | | This reverts commit ff86846e97f2d159cc98af80938246db0d53c39a. Change-Id: I46aa4d6606c3c519322b2e2cd048bd312a15fa4d
* power: Allow for a dynamic cluster configurationChristopher N. Hesse2017-07-132-68/+85
| | | | Change-Id: I542b36d26cad23f29e70ab70d996c95ca3ab11a7
* power: Temporary logging fixChristopher N. Hesse2017-07-091-13/+5
| | | | | | | | | | | This will be reverted once the more advanced mechanism (https://review.lineageos.org/#/c/179092/) goes in. The boost fd logging will be restored once https://review.lineageos.org/#/c/180313/ makes it into the code base. Change-Id: Ifc1b4a2ba3e1c4283d74eafec45c5fbf07153f03
* power: Print information on bootChristopher N. Hesse2017-07-091-0/+19
| | | | Change-Id: I1a8ba54f1b27c2e96c6bae77046dc207cdf35025
* power: sysfs_read: Do not store newlinesChristopher N. Hesse2017-07-091-1/+6
| | | | Change-Id: If20b509b489b056ac3b37c208c42bc5407f61802
* power: Write IO busy parameter for big clusterChristopher N. Hesse2017-05-291-2/+8
| | | | Change-Id: I9e09f640b956be87729df735225fcfe8f066ab48
* power: Allow POWER_HINT_LOW_POWER hint to disable power save modeChristopher N. Hesse2017-05-061-1/+2
| | | | Change-Id: I3b4c90f05267ca4182187361e5d373adb6de25d7
* power: Sanity check touchscreen pathPaul Keith2017-04-241-1/+4
| | | | | | | * Let's not always assume this isn't NULL Change-Id: I181cb014fc06d0f0ca795c3ecc374ccf9dbb57f1 Signed-off-by: Paul Keith <javelinanddart@bestas.gr>
* power: Align to AOSP APIChristopher N. Hesse2017-04-051-7/+6
| | | | | | | AOSP power hints can have a NULL data parameter, only our custom hints are guaranteed to provide data. Change-Id: Ibea874e75a7092b3f9c1c56dc5182cdf73f35532
* power: Remove unused variablesChristopher N. Hesse2017-04-051-2/+0
| | | | Change-Id: I805a12837bd013e71c098479279dcc5895ea1e1d
* power: Add POWER_HINT_DISABLE_TOUCH supportChristopher N. Hesse2017-04-021-0/+8
| | | | Change-Id: I363df278598e3402692424539638f3547c648e26
* PowerHAL: Update the hispeed_freq value before using itMartin Bouchet2017-03-281-0/+5
| | | | | | | | | | The hispeed_freq value is read only in the inizialization process. If we decide to change it later writing a new value to the node this new value wont be taken into consideration by the power hal. Lets update the hispeed_freq value in the power hal before using it to limit the max cpu freq when we go into power save mode. Change-Id: I4b8c7f67259750b2931b18c3871874022aa6054d
* power: Rework governor path abstractionChristopher N. Hesse2017-03-182-8/+13
| | | | | | | Construct the paths for the driver based on the device specific header data. Change-Id: Ic7c72a2bbe6f199e1297f41817840059595f516d
* power: Cleanup hint handlingChristopher N. Hesse2017-03-141-12/+15
| | | | Change-Id: I828a68105272fef3fe454561d98825f8703bca0b
* power: Discard hints in power save modeChristopher N. Hesse2017-03-141-4/+6
| | | | Change-Id: I9c3701261e49023761599ebaa8cd3e09a88a40c6
* power: Keep boostpulse fd openedChristopher N. Hesse2017-03-141-27/+20
| | | | | | | No one else should be writing to this, so keep the fd opened. Change-Id: I4258f7f7d69250f4832a67807031ab3faa9ff586
* power: Initialize device power pathsChristopher N. Hesse2017-03-071-0/+2
| | | | Change-Id: I56481946e2e3f4a80f2d3a7713ce61ed7923666d
* power: Cleanup touchkey handlingChristopher N. Hesse2017-03-071-22/+36
| | | | | | | | | * Simplify interactive changes * Better support for non-touchkey devices * Only perform read I/O in samsung_power_set_interactive if needed (improves wake->panel_on delay) Change-Id: If7bd6a1833ac7605db437ef3664230f9a452d58b
* power: Remove superfluous log newlinesChristopher N. Hesse2017-03-041-19/+19
| | | | Change-Id: I33da39a89544f3580d395f4165b8cff4de5a4224
* power: Add support for POWER_HINT_CPU_BOOSTChristopher N. Hesse2017-02-092-0/+26
| | | | Change-Id: I75030eb2dabfed518e961d71efb9d55670d2808a
* power: Make boostpulse_warned staticChristopher N. Hesse2017-01-251-4/+4
| | | | Change-Id: I8bd557c637402922702fcb75a1c0633947ded41a
* power: Add PROFILE_MAX to enumChristopher N. Hesse2017-01-251-3/+8
| | | | Change-Id: If7349c98598d346f5b03b32dceb5f797c8b02ce7
* power: Directly compare charsChristopher N. Hesse2017-01-251-2/+1
| | | | Change-Id: I6da2d9cfcecd7177e2c1a74051e2ad46e2349f64
* power: Remove unused local variablesChristopher N. Hesse2017-01-171-5/+0
| | | | Change-Id: I8f45398eba884fee3c3833a67f37ffd28186cf24
* power: Consolidate verbose loggingChristopher N. Hesse2017-01-171-4/+4
| | | | Change-Id: I8b2a5d9c625273220d43a3d39e6fd977bbc1247d
* power: Update module authorChristopher N. Hesse2017-01-171-1/+1
| | | | Change-Id: I4ec64beb57729f5dd299ae04a68770e4f5943c61
* power: Remove outdated commentsChristopher N. Hesse2017-01-171-64/+6
| | | | | | Always redirect to power.h for updated documentation. Change-Id: I066f3b6f83483bdf3a0db315c1381c670df47b12
* power: Get panel backlight brightness from lights helperChristopher N. Hesse2016-12-212-24/+4
| | | | Change-Id: I3f28fc4abac947cc4a30d95ba74f45bf24c12c20
* power: Allow devices to override node pathsChristopher N. Hesse2016-12-083-12/+45
| | | | Change-Id: Ida7f41ddce2ef458cc77348c0b44ec0a7a86df72
* power: Update DT2W_PATHishantvivek2016-11-212-3/+3
| | | | | | | | * TARGET_TAP_TO_WAKE_NODE is defined in if condition. But in DT2W_PATH, TARGET_DT2W_PATH is defined. Why? * Use same flag for both, otherwise we need to define two flags for the dt2w path. * Use TARGET_TAP_TO_WAKE_NODE instead of TARGET_DT2W_PATH, for similarity with qcom powerHAL. Change-Id: I87cbdc3f2aa1a3f9f6509580f2c1f001129a0fda
* power: Fix unused argumentChristopher N. Hesse2016-11-181-1/+1
| | | | Change-Id: Ia4048aa48b32ea344c303ca24289ade1b7dfae7a
* power: Simplify read_panel_brightness()Christopher N. Hesse2016-11-181-8/+7
| | | | | | Overengineering. Change-Id: Ifef79a7e8f2249fdd22099a043303f9686ac014b
* power: Add double tap to wake supportChristopher N. Hesse2016-07-132-1/+22
| | | | Change-Id: Icb0b6d442544b39576ec74e70e97751d6bc70590
* power: Fix compilation failureEthan Chen2016-07-121-2/+2
| | | | Change-Id: Ib0923ba5c0976e2d00e6f190b370936a14a9b6df
* power: Fix I/O business parameter settingChristopher N. Hesse2016-07-121-2/+1
| | | | | | This parameter should be set even if we bail out early. Change-Id: Iae78a13db229538960f1c7ec4c1f95f530810d71
* power: Add support for auto power modesChristopher N. Hesse2016-07-121-4/+37
| | | | | | | Do not disable input devices in case of the screen still being enabled. Change-Id: Ide6bd7ca3d41ac64b472c5e68fdc545c8f851b2b
* powerhal: Add set_profile supportAndreas Schneider2016-03-061-30/+73
| | | | | Change-Id: I0d7fb8c5a7e5e06c300cbb4b78b6e1013d7bff6a Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* power: Ensure node_path is a string literalChristopher N. Hesse2016-02-011-2/+4
| | | | Change-Id: I20a87b04789e7fe2ae5938331e9d2fcef8134035
* Initial unified Samsung power HALChristopher N. Hesse2016-01-212-0/+483
This is a power HAL for non-qcom Samsung devices. It currently supports standard multi-core systems as well as big.LITTLE configurations. This HAL auto-detects your touchscreen and touchkey input switches and handles the interactive state requests. I also implemented a check to make sure your touchkeys won't turn on when they're not supposed to (for example when a CMHW class disables the capacitive buttons and activates a software navigation solution). This previously needed a kernel hack to make sure the touchkeys wouldn't be activated when resuming from suspend. Change-Id: I22888c5ac490c85c417c5457ea4f457f78ed3521