Commit Graph

12 Commits

Author SHA1 Message Date
Christopher N. Hesse
1226350ee7 power: Get panel backlight brightness from lights helper
Change-Id: I3f28fc4abac947cc4a30d95ba74f45bf24c12c20
2016-12-21 14:24:03 -08:00
Christopher N. Hesse
4139d85cc6 power: Allow devices to override node paths
Change-Id: Ida7f41ddce2ef458cc77348c0b44ec0a7a86df72
2016-12-08 15:11:18 +01:00
ishantvivek
987dcca825 power: Update DT2W_PATH
* 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
2016-11-21 06:29:20 +00:00
Christopher N. Hesse
1c47466906 power: Fix unused argument
Change-Id: Ia4048aa48b32ea344c303ca24289ade1b7dfae7a
2016-11-18 18:59:55 +01:00
Christopher N. Hesse
e143419bff power: Simplify read_panel_brightness()
Overengineering.

Change-Id: Ifef79a7e8f2249fdd22099a043303f9686ac014b
2016-11-18 18:56:19 +01:00
Christopher N. Hesse
e480d89ce5 power: Add double tap to wake support
Change-Id: Icb0b6d442544b39576ec74e70e97751d6bc70590
2016-07-13 01:59:31 -07:00
Ethan Chen
3ecf3c4648 power: Fix compilation failure
Change-Id: Ib0923ba5c0976e2d00e6f190b370936a14a9b6df
2016-07-12 18:38:00 -07:00
Christopher N. Hesse
2879c69f2b power: Fix I/O business parameter setting
This parameter should be set even if we bail out early.

Change-Id: Iae78a13db229538960f1c7ec4c1f95f530810d71
2016-07-12 17:32:47 -07:00
Christopher N. Hesse
3360b09389 power: Add support for auto power modes
Do not disable input devices in case of the screen still
being enabled.

Change-Id: Ide6bd7ca3d41ac64b472c5e68fdc545c8f851b2b
2016-07-12 17:32:30 -07:00
Andreas Schneider
f15d7f4b0b powerhal: Add set_profile support
Change-Id: I0d7fb8c5a7e5e06c300cbb4b78b6e1013d7bff6a
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-03-06 13:26:07 +01:00
Christopher N. Hesse
22da313eb2 power: Ensure node_path is a string literal
Change-Id: I20a87b04789e7fe2ae5938331e9d2fcef8134035
2016-02-01 12:36:54 +01:00
Christopher N. Hesse
de5e3c618d Initial unified Samsung power HAL
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
2016-01-21 16:01:27 +01:00