| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Based on the sources from: GT-P3110_JB_Opensource, plus:
* f25245b - espresso: sensors: get rid of omap_muxtbl, minor cleanups
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The bma180_accel_device_worklogic has to be canceled synchronously
before continue suspending, because of:
- it may sleep while accessing to I2C bus and, as result, WFI may be
reached in the middle of its execution and that may prevent system
from entering to OFF state.
- the accel device suspend handler may switch bm180 to sleep state while
bma180_accel_device_worklogic is still active.
Change-Id: I66d56c895a37cc9391cfbb095f6e9ee45be86e49
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The device is not resumed, in the case if "POWERON" button was
pressed for short time. The algorithm is following:
1. Device is resumed, and system reads the reason of resuming
from TWL status registers. But user releases the "POWERON"
button while system is in resume process. See pic1 and pic2
___
pic1 | |
real button state /|\ \|/
________| |___________
pic2 | |
system receive \|/ \|/
following state _____________|___|______
| |
/|\ \|/
where | is button pressed state | is button released state
2.We are read the cause of resume and get "button released".
3.After that we get second interrupt "Button released", because
button was really released and second interrupt was happened.
See pic2.
In this situation the system sees this, like two pairs
of "pressButton/releaseButton".
The patch removes a second "pressButton/releaseButton".
Change-Id: Ieec7227db19ed43f7964159169eee44386d7d511
Signed-off-by: Eugen Mandrenko <ievgen.mandrenko@ti.com>
Signed-off-by: Sergii Postulga <x0153364@ti.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The below patch gave a workaround to avoid Long Key Press to resume
from suspend
http://review.omapzoom.org/#change,17913
But after reboot if we go to suspend without pressing the power key
i.e. waiting for timeout, then its not resuming normally.
So with this patch, if its first time we provide press/release
event to the upper layer.
Change-Id: If4d44adcc3e95bdaf8a5eec16b3a7561ae8a7b2a
Signed-off-by: Siva Pothireddy <sivakumar.pothireddy@ti.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Logic in suspend/resume path is not correct.
Even if proximity sensor is disabled -
resume logic will enable it. This patch fixed this.
Also, patch resolve issue with disabling ALS sensor.
TSL2771's datasheet says that AEN bit should be enable,
even if only proximity sensor is used. This patch
keep AEN-bit if sensors are enabled and clear it
during disabling last of them.
Change-Id: Ib134429d36af2c640ff0b52235d91f7f0cf754ef
Signed-off-by: Sergii Postulga <x0153364@ti.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
TWL PIH interrupt gets enabled earlier than the module level interrupts.
KeyPress has 2 events. Press and Release event for each Key press. There
is only bit in the Register which maintains both the status.
Due to delay in interrupt enabling we are loosing Press event interrupts.
This patch maintains the prev state of keyevent. If current event is
same as prev event we provide press/release event to the upper layer.
Change-Id: I01808c7a52e62c951b8da178b02e1a5f9edb3b03
Signed-off-by: Sivakumar Pothireddy <sivakumar.pothireddy@ti.com>
Signed-off-by: Rajeev Kulkarni <rajeevk@ti.com>
|
|
|
|
|
|
|
|
|
| |
Fix the interrupt handling in the BMA180 accelerometer driver
The interrupt handler was not being called properly and the
delayed work would always be called.
Change-Id: Iadd2b9b053d7af053908fca204623d102b107b8d
Signed-off-by: Dan Murphy <dmurphy@ti.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
fixes several rate selection issues discovered:
sysfs store parameter validation
HMC5843_USE_WORK_QUEUES selected different sysfs rate scales
one code path didn't unlock mutex
hmc5843_sample_interval array overrun
driver data mutex locking
index register synchronization
Change-Id: I882eb11ea067d9ca2d6b0e9ee4ede099867d2fec
Signed-off-by: David Taylor <x0158378@ti.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Accelerometer work can be scheduled from work itself and from
userspace by enabling it in sysfs. The change in sysfs from
userspace was ignored and work constantly rescheduled,
keeping accelerometer always enabled.
Now mode set from userspace is saved and analyzed in work before
scheduling. If accelerometer is disable, work is not scheduled.
Change-Id: I8eacc45cc974947ef474b5e15c961e04bae611f6
Signed-off-by: Oleksandr Kozaruk <oleksandr.kozaruk@ti.com>
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* android-omap-3.0: (26 commits)
OMAP3+: Smartreflex: clear ERRCONFIG_VPBOUNDINTST only on a need
OMAP3+: Smartreflex: Fix status masking in ERRCONFIG register
OMAP3+: PM: VP: check only the VPINIDLE status bit
OMAP3+: Smartreflex: Add a shutdown hook
OMAP3+: Smartreflex: prevent dvfs during autocomp enable/disable sequences
OMAP3+: PM: DVFS: remove omap_dvfs_is_scaling
OMAP3+: PM: DVFS: simplify omap_dvfs_is_any_dev_scaling
OMAP4: PM: skip going through the LP sleep sequence if conflict with DVFS
cpufreq: interactive governor: default 20ms timer
cpufreq: interactive governor: go to intermediate hi speed before max
MFD: twl6040: Enable/disable external 32kHz clock
MFD: twl6040: Remove unnecessary pdev local variable
cpufreq: interactive governor: scale to max only if at min speed
cpufreq: interactive governor: apply intermediate load on current speed
ARM: idle: update idle ticks before call idle end notifier
ARM: omap4: PM: mask all PPIs when going into low power mode
input: gpio_input: don't print debounce message unless flag is set
ASoC: omap-mcasp: HACK: Prevent C3 power state
ASoC: omap-mcasp: Rename the omap_hw_dit_param function to omap_mcasp_setup
ASoC: omap-mcasp: Do not configure the IDLE mode in the driver
...
Change-Id: I687d9d018b17ce19b99afe5fc52a28e27385373a
Signed-off-by: Dan Murphy <dmurphy@ti.com>
|
| |
| |
| |
| |
| | |
Change-Id: I29ccb32e795c5c3e4c51c3d3a209f5b55dfd7d94
Signed-off-by: Dima Zavin <dima@android.com>
|
| |
| |
| |
| |
| |
| |
| | |
Initialize the default polling rate from the board file
Change-Id: I36abf00e843b287e9c8a2ebff56d01d1e37f9dd8
Signed-off-by: Dan Murphy <dmurphy@ti.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
There is a race condition where the work logic thread may
schedule another work item after the accelerometer was disabled
Add some intelligence in the work logic to only schedule work
items if the accel is enabled
Change-Id: Ice69bae45d2dea8d9c92406dc3ecde2c2f98564c
Signed-off-by: Dan Murphy <dmurphy@ti.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Simplify the suspend and resume routines for the
BMA180 since if the accel was off before suspend there
is no reason to turn it off again. And if the accel
was not on for resume then we should not turn on the
accelerometer.
Change-Id: I3a8ede8d8ffaaaf8c59038e14fdb080d99c55af3
Signed-off-by: Dan Murphy <dmurphy@ti.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Update the power management suspend/resume to use
the dev_pm_ops instead of legacy suspend/resume callbacks
Change-Id: Id6d89fdd72049ae1bf21053cab544253ae23437b
Signed-off-by: Dan Murphy <dmurphy@ti.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Update the power management suspend/resume to use
the dev_pm_ops instead of legacy suspend/resume callbacks
Change-Id: Iabc4ee9734214b583e4b724dc761ccdc0828c308
Signed-off-by: Dan Murphy <dmurphy@ti.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Update the power management suspend/resume to use
the dev_pm_ops instead of legacy suspend/resume callbacks
Change-Id: Ifb32f4351cf33ce5087081e06b45191ef9ac621c
Signed-off-by: Dan Murphy <dmurphy@ti.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Update the power management suspend/resume to use
the dev_pm_ops instead of legacy suspend/resume callbacks
Change-Id: I90bfe53bb36c2460c196f475be73079bf5da7cf8
Signed-off-by: Dan Murphy <dmurphy@ti.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Update the power management suspend/resume to use
the dev_pm_ops instead of legacy suspend/resume callbacks
Change-Id: I879d206b14367486e8402b124ce442655c1292c7
Signed-off-by: Dan Murphy <dmurphy@ti.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
The logging statement "not powering the device down" does not make
sense and always is shown if the device was not enabled.
Change-Id: Ic8c2eed25b2fd99791a40f66a5a0c3a0ef72113b
Signed-off-by: Dan Murphy <dmurphy@ti.com>
|
|\ \
| |/
| |
| |
| |
| |
| |
| | |
Conflicts:
sound/soc/omap/Kconfig
Change-Id: Id52a4dcc5650d22a3d732b95592bb525e8448b05
Signed-off-by: Dan Murphy <dmurphy@ti.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add a board file option to gpio_input devices to make
calling enable_irq_wake conditional. Also disable the
wake irq when removing the device.
Change-Id: If933b9d3a751d89fa95ae3b7f739dfe70fcb23c8
Signed-off-by: Mike J. Chen <mjchen@sta.samsung.com>
|
| |
| |
| |
| |
| |
| |
| | |
Port BMA180 k35 driver to k3.0
Change-Id: Ic018de4ae42db15ff50834fe726d2a77e9618678
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
|
| |
| |
| |
| |
| |
| |
| | |
Port MPU3050 k35 driver to k3.0
Change-Id: I574b4b42626b61bbd915fc6899505032f7492727
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Added __set_bit and input_set_abs_params APIs to tsl2771.c
This change stopped kernel panic from occurring
Also allows the driver to function properly
Change-Id: Ie5b9083880a90cb73e606bbbb9e0b4b84a741f88
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
|
| |
| |
| |
| |
| |
| |
| | |
Port TSL2771 k35 driver to k3.0
Change-Id: Ib35625999528711ce110e716401326d053185ffa
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
|
| |
| |
| |
| |
| |
| |
| | |
Added enable functions for Ambient Light Sensor to bh170gli.c
Change-Id: Icbb18e3191c942fc8f93158b82718e7f655b503d
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* android-omap-3.0: (227 commits)
OMAP4: irq: Make use of IRQCHIP_MASK_ON_SUSPEND flag.
ARM: gic: Allow gic arch extensions to provide irqchip flags
netfitler: fixup the quota2, and enable.
OMAP: TILER: export user_block_to_pa function
Linux 3.0-rc7
Documentation/Changes: remove some really obsolete text
netfilter: adding the original quota2 from xtables-addons
ath5k: Add missing breaks in switch/case
Documentation/spinlocks.txt: Remove reference to sti()/cli()
cifs: drop spinlock before calling cifs_put_tlink
hp-wmi: fix use after free
dell-laptop - using buffer without mutex_lock
Revert: "dell-laptop: Toggle the unsupported hardware killswitch"
PM: Reintroduce dropped call to check_wakeup_irqs
[CPUFREQ] fix cpumask memory leak in acpi-cpufreq on cpu hotplug.
hwmon: (pmbus) Improve auto-detection of temperature status register
hwmon: (lm95241) Fix negative temperature results
firewire: ohci: do not bind to Pinnacle cards, avert panic
cifs: fix expand_dfs_referral
cifs: move bdi_setup_and_register outside of CONFIG_CIFS_DFS_UPCALL
...
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
mfd_get_data() has been removed from the MFD API.
Cc: Anirudh Ghayal <aghayal@codeaurora.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Fixed array out of bounds error in hmc5843_store_rate
Change-Id: Ib3ef5424f52bc7a9f805869a777ad92620734505
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
|
| | |
| | |
| | |
| | |
| | |
| | | |
Add the power button support for the twl6030
Signed-off-by: Dan Murphy <dmurphy@ti.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Port HMC5843 k39 driver to k3.0
Change-Id: I7c56afa3884cc451bab4931d179bb76f7ab425d6
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Port BH1780GLI k39 driver to k3.0
Change-Id: Ic1cf6f7c9537ffbadc5b5e4a556adccfbff8e737
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Port BMP085 k39 driver to k3.0
Change-Id: If8173267a795523fb219caa40732ab379a903f20
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Added the SFH7741 build flags for the proximity driver
Change-Id: Ifca849bbc78d1541090c09934e146b86266d974f
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Removed SFH7741 structs from board-4430sdp.c and added them to board-blaze-sensors.c
Removed omap SFH7741 init from board-4430sdp.c and added it to board-blaze-sensors.c
Change-Id: If2ae11bdd5251e16f409f4ee93338baed61056a9
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Port SFH7741 k39 driver to k3.0
Change-Id: I9dfb7cf82b09cd24e28e1808faf84536401d9ce9
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
|
|/ /
| |
| |
| |
| |
| |
| | |
Port CMA3000 k39 driver to k3.0
Change-Id: Iaf2ab4e6adccd1e8a0ea7209b41ca30ebfe6802b
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
|
| |
| |
| |
| |
| | |
Signed-off-by: jeffbrown@android.com
Change-Id: Ie170960df3c8ab4833ed686135dc8575cb9f2d48
|
| |
| |
| |
| |
| | |
Signed-off-by: jeffbrown@android.com
Change-Id: I9bd2437503b48bf37f4d93505ccd2806e4aab977
|
| |
| |
| |
| |
| | |
Change-Id: Ib8dd0ab6554e6b0e3798bf75d41f77ea0b20b8de
Signed-off-by: Colin Cross <ccross@android.com>
|
| |
| |
| |
| |
| |
| |
| | |
lvl trigger irqs
Change-Id: Ie378600668500dcffeaaddeaba3628e5c2141aa4
Signed-off-by: Dima Zavin <dima@android.com>
|
| |
| |
| |
| |
| |
| | |
If the gpio did not exist it would crash in gpiolib.
Signed-off-by: Arve Hjønnevåg <arve@android.com>
|
| |
| |
| |
| | |
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This driver allows userspace to receive notification when client
specified key combinations are pressed.
The client opens /dev/keychord and writes a list of keychords
for the driver to monitor.
The client then reads or polls /dev/keychord for notifications.
A client specified ID for the keychord is returned from read()
when a keychord press is detected.
Signed-off-by: Mike Lockwood <lockwood@android.com>
keychord: fix to build without CONFIG_PREEMPT
Change-Id: I911f13aeda4224b6fa57863bc7e8972fec8837fb
|
| |
| |
| |
| | |
Signed-off-by: Arve Hjønnevåg <arve@android.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This is needed to support devices that put non-keyboard buttons in
the keyboard matrix. For instance several devices put the trackball
button in the keyboard matrix. In this case BTN_MOUSE should be
reported from the same input device as REL_X/Y.
It is also useful for devices that have multiple logical keyboard in
the same matrix. The HTC dream has a menu key on the external keyboard
and another menu key on the slide-out keyboard. With a single input
device only one of these menu keys can be mapped to KEY_MENU.
Signed-off-by: Arve Hjønnevåg <arve@android.com>
|
| |
| |
| |
| |
| |
| | |
KEY_MAX is no longer a power of 2.
Signed-off-by: Arve Hjønnevåg <arve@android.com>
|
|/
|
|
|
|
|
|
| |
Supports keyboard matrixces, direct inputs, direct outputs and axes connected to gpios.
Change-Id: I5e921e6e3a1cc169316ee3b665f4cc21b5735114
Signed-off-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: Nick Pelly <npelly@google.com>
|