summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-03-04Adding suspend and resume functions for ALS, to ensure that it's off when ↵mindtribe-suspend-againmattis fjallstrom
the rest of the watch is. Change-Id: I8da5b894ec45fbc95de5115833b2785812b7b580
2016-03-04Read the 6D src register before suspending, to ensure the interrupt is cleared.Evan Wilson
Change-Id: I0b29164af7bb1fb044fc54eaea871276022be638
2016-03-01Adding suspend again experiment 2Evan Wilson
Change-Id: I48623c801e5b7d1c597f202930038c8b8da366d9
2016-03-01be paranoid about enabling the accelerometer interrupt before sleepingEvan Wilson
Change-Id: I7164606f092aba48f466bf1de72e37f5807a7acb Conflicts: drivers/iio/imu/st_lsm6ds3/st_lsm6ds3_core.c
2016-03-01adding in suspend_againsravanM
Change-Id: I7981062e9bb5dc91f878acb1f6d099800c0a03fc
2016-02-23Revert "Decreasing kernel log level"Evan Wilson
This reverts commit baf721a9c605a09942b22f8bf3007ba0df1b7987.
2016-02-19Increasing wake lock for 6d eventsEvan Wilson
Change-Id: Ibb7f2397ae74e82647d3ae2fdc84ff51eed1bfb1
2016-02-19Decreasing kernel log levelEvan Wilson
Change-Id: I90e53b5ae11bd53183ccc80fe6b4581b88a3501a
2016-02-19merge conflict fixsravanM
Change-Id: Id70c324fda83f82a08634f0c8128ca29d5e367cd Signed-off-by: Evan Wilson <evan@oliodevices.com>
2016-02-19accounting for LSBsravanM
Change-Id: Iec76ffa7029013bae546e9b3c1fdaa0127d02a30 Signed-off-by: Evan Wilson <evan@oliodevices.com>
2016-02-19fixing multiplicationsravanM
Change-Id: Ifb6ffdc63a3d26db7c87c90c30645791a58e2f32 Signed-off-by: Evan Wilson <evan@oliodevices.com>
2016-02-19fixing irq latency and buffer sizingsravanM
Change-Id: I62951ab83083e71ec4e3fd2b3bb42c5f8d9aa9ce Signed-off-by: Evan Wilson <evan@oliodevices.com>
2016-02-19Fixing the timestamp for fake events passed through the buffer. If the 6D ↵sravanM
event is pushed with a timestamp that is the current timestamp then any data previous to that(All of the fifo) will be ignored when pushed to the buffer. Change-Id: I8857f50b26faa2dc213824c31c786606343cd500 Signed-off-by: Evan Wilson <evan@oliodevices.com>
2016-02-10Removing a log line that can case a fatal kernel crashEvan Wilson
Change-Id: I9e8d617a8b0ebef54243b0ef4fb53158080e4c19
2016-01-27Fixing how we power cycle the accelerometer power rail,Evan Wilson
and how we keep track of the last irq Change-Id: Idda33817761cb8e3c96ab2158106814eb0fcfac7
2016-01-27Adding a recovery mechanism to the accelerometer.Evan Wilson
It will not hard reset the regulator if it detects a corrupt WAI register, or if there has not been any accelerometer events in 20 minutes. Change-Id: I3d55cb2edfba4861f7509b7cba4f1acc3efebb0e
2015-12-23SW reset the Accelerometer if it's in a bad state. Check this on every resumeEvan Wilson
Change-Id: Icd61eac39e1cfe42446c44622c92aed6df0b5b1d
2015-12-20Enabled 6D and Tap on init, and removed from other placesEvan Wilson
Change-Id: Ia6a7cd4c276a07bca6740181c517becdfc03aab6
2015-12-16Increasing vaccel to 2.7 V to prevent the Accel from dropping below the min. ↵Evan Wilson
voltage Change-Id: I8f124ef6479b427f3c8ffd03e36c3ef205f9f23e
2015-12-11Merge remote-tracking branch 'olio/android-3.10-bringup' into 1.1.45Evan Wilson
Conflicts: drivers/iio/imu/st_lsm6ds3/st_lsm6ds3_core.c drivers/iio/imu/st_lsm6ds3/st_lsm6ds3_trigger.c drivers/power/bq27x00_battery.c Change-Id: Iafb1129617680cd2705bc05eb49faaafff325692
2015-12-11ST lsm6ds3 fixes. Moved IRQ registration to end of probe, changed 6d push ↵mattis fjallstrom
function to use '01,01,01' as the 6d signifier Change-Id: Ia162ef14178cda4d9a19a72159f1d0e3bcbbcd0f
2015-12-11Adding suspend/resume functions that clear out the framebuffer (to prevent ↵mattis fjallstrom
the 'jumping watch hands' issue) Change-Id: I56cf6f54c71065ded5c49e2493e47bcfb268b5ad
2015-12-11Reducing time for alarm wake lock, from 2sec to .5.mattis fjallstrom
Change-Id: Ie2703e22e6ee5b8d28cb8cfabe6fc8aa5df8bc2f
2015-12-11Several bug-fixes. Set device up as wake-up device, since we may wake up ↵mattis fjallstrom
from interrupt. Changed cancel_delayed_work_sync to cancel_delayed_work, since we're calling from an interrupt and stopping to sync would be bad. Using managed and threaded IRQ. Finally, returning POWER_SUPPLY_STATUS_UNKNOWN when we can't communicate with the charger chip. Change-Id: I6f47769299275b60d277af3f4db0321f6f0de9d8
2015-12-09ST lsm6ds3 fixes. Moved IRQ registration to end of probe, changed 6d push ↵mattis fjallstrom
function to use '01,01,01' as the 6d signifier Change-Id: Ia162ef14178cda4d9a19a72159f1d0e3bcbbcd0f Signed-off-by: Evan Wilson <evan@oliodevices.com>
2015-12-08Adding special handling for 6d-events, so that we can recognize it higher up ↵mattis fjallstrom
the software stack. Change-Id: I00a3ebe3bbcf4cfeb8ff89e75c990d90d8e1acc9
2015-12-08Several bug-fixes. Set device up as wake-up device, since we may wake up ↵mattis fjallstrom
from interrupt. Changed cancel_delayed_work_sync to cancel_delayed_work, since we're calling from an interrupt and stopping to sync would be bad. Using managed and threaded IRQ. Finally, returning POWER_SUPPLY_STATUS_UNKNOWN when we can't communicate with the charger chip. Change-Id: I6f47769299275b60d277af3f4db0321f6f0de9d8 Signed-off-by: Evan Wilson <evan@oliodevices.com>
2015-12-08Reducing time for alarm wake lock, from 2sec to .5.mattis fjallstrom
Change-Id: Ie2703e22e6ee5b8d28cb8cfabe6fc8aa5df8bc2f Signed-off-by: Evan Wilson <evan@oliodevices.com>
2015-12-03Reducing wakelock timeoutEvan Wilson
Change-Id: Ie31a68811c31095f7b3e5d7a8422bfac9b4ad5df
2015-12-03Changing 6D thresholdEvan Wilson
Change-Id: I1276640e84310ed37c32f7ad659819c9b893c8e0 Conflicts: drivers/iio/imu/st_lsm6ds3/st_lsm6ds3_core.c
2015-11-19Tuning tap threshold, 6d threshold, and wake lock for better gesture detectionEvan Wilson
Change-Id: I501a21ebdb3dc3c9654012a66b7229a2e2b0c674
2015-11-05Tuning some values for the fuel gauge. Also, we'll request more power from ↵good-known-branchEvan Wilson
the charger if the fuel gauge CHG flag is set Change-Id: Ibc7248bfd9f7bceaf03ea2d1f7e17cdcc20d2a98
2015-11-05Decreasing the update time between charging statusEvan Wilson
Change-Id: I2566186b6493ac11e64047cc42ed795b30927729
2015-10-02Improved wakeup performance.mattis fjallstrom
Change-Id: Idd79c715744046d50736e08b07e0c937d4ff7318
2015-04-16Merge "Change to USB plat data, that caused USB to not work" into ↵Evan Wilson
android-3.10-bringup
2015-11-30Change to USB plat data, that caused USB to not workEvan Wilson
Change-Id: I3e800297501f43e0a9624fdf9ddf2cc559f2d4f3
2015-11-30Removing the debug statement in the fuel gauge irqEvan Wilson
It may be the cause of some crashes/dead devices Change-Id: Ia1f15e7a783beb984cd901112a9ec53eee39acf5
2015-11-30Tuning values for wakedector:Evan Wilson
* Reducing the 6D threshold, so it doesn't fire as often * Reducing the wake lock timeout, to conserve power * Temporarily commenting out the 6D event, because it's not used by the wakedetector service yet Change-Id: I95345b4cd8b6b9c39b26f6378eab888101b3c296
2015-11-23Adding special handling for 6d-events, so that we can recognize it higher up ↵mattis fjallstrom
the software stack. Change-Id: I00a3ebe3bbcf4cfeb8ff89e75c990d90d8e1acc9
2015-11-20Power changes: Removed dummy regulators, added cpufreq table initialization ↵mattis fjallstrom
and makes sure that cpufreq gets initialized properly. Change-Id: I679d86c150e4acee098e4a5cfe1855d46fac872a
2015-11-20First steps at making cpufreq scale properly again.mattis fjallstrom
Change-Id: Ibe4a4f1440d1b7dd2de9a285d728834eb0b87e66
2015-04-16Merge "Revert "Updated wake check mechanism - faster decisions."" into ↵Evan Wilson
android-3.10-bringup
2015-10-02Revert "Updated wake check mechanism - faster decisions."Evan Wilson
This reverts commit 335f9262ab0802ac66e79d80fddbc1f635b05d61. Change-Id: I21a02fa3db4928296a013c7349344a24eb4833a8
2015-09-30Updated wake check mechanism - faster decisions.mattis fjallstrom
Change-Id: If263a43c95f44fbc7e263c202ac521e84032c0a6
2015-09-25Merge branch 'android-3.10-bringup' of ↵mattis fjallstrom
ssh://internal.oliodevices.com:29418/kernel/omap into android-3.10-bringup Change-Id: I7ba752884099c9dafe2f336cf787945eeea3a8f1
2015-09-25Adding support for ts81001, and modifying fuel gauge bq27 to check the ↵mattis fjallstrom
status of the ts81001 when deciding if it's charging or not. Change-Id: Iff0e890eecd86c82889f91075f83073ab2fd3036
2015-09-18Switched userspace CPUfreq governor. Should be used together with the power ↵mattis fjallstrom
library from hardware/libhardware/modules/power. Change-Id: I49134517802bb65f5f16b0e09a49b57b6cdf62f6
2015-09-16Merge branch 'android-3.10-bringup' of ↵mattis fjallstrom
ssh://internal.oliodevices.com:29418/kernel/omap into android-3.10-bringup Change-Id: Id991d5735800e0fa16e76c8be372fc473453e785
2015-09-16Removing some of the most frequent debug messages.mattis fjallstrom
Change-Id: I1a1742ca75ce9eac22b70360e11566ff5df11745
2015-09-04Merge branch 'nand_reconfig' into android-3.10-bringupmattis fjallstrom
Brings the new flash layout into the main stream. Also adds sleep mode power savings (USB CS off). Change-Id: I2b3f73f58c923ca9fa89965685dfcd5a6b087bf6