Commit graph

95,336 commits

Author SHA1 Message Date
Greg Meiste
c4f99cbeb9 power: ds2781: Report charging correctly
Previously, charging was being reporting whenever a charger was present.
While true most of the time, there are cases where that won't be the
case.  This patch updates the driver to only report charging if charging
is actually occurring.

Change-Id: Ibc5881fed5d11f89d87d0c7adcd7ac1c2b273688
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:51:08 -07:00
Greg Meiste
ed28235171 power: bq24617: Add support to report charging separately
Just because the charger is present, doesn't mean that the battery is
being charged.  For example, the battery can be overheating, which
will prevent charging.

Change-Id: If5d8dc325fc6dc507808216f1e45a180d74b5d73
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:51:07 -07:00
makarand.karvekar
17ab6bba46 input: touchscreep :qtouch: report the finger tracking id
USE ABS_MT_TRACKING_ID to report the finger tracking id

Change-Id: I8198eea12c5a90607a6dab48d96c6872a1c5e783
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:51:06 -07:00
Benoit Goby
79c16b80a2 mfd: cpcap-whisper: Workaround for the enumeration issue
The Tegra root hub sometines does not enumarate the device when the OTG
cable is first inserted. Delaying the activation of vbus, to leave time
for the controller to initialize seems to fix the problem.

Change-Id: I2c374a98b2931bc724efb1678fad4fbb873b2a3b
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:51:02 -07:00
Benoit Goby
6aa29592b2 usb: otg: Remove the force_irq hack
Dynamically add/remove the ehci platform device and use
vbus_connect/vbus_disconnect to notify the gadget driver of
OTG state changes.
Only enable the clock when needed, as we rarely need to access
the registers.

Change-Id: Id198822c58f50252361333c3a99c416a3baaace2
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:51:01 -07:00
Greg Meiste
b92b93a514 mfd: cpcap-whisper: Detect invalid chargers
Change-Id: Iaea0ebc594ac8b050f241ff5eef3d2ed7441a19a
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:50:59 -07:00
Greg Meiste
3fee717f42 input: qtouch: Change suspend level
Touch should be disabled after the display is suspended and enabled
before the display is resumed.  Resuming after the display can cause
touch to stop functioning.

Change-Id: Ib9861b325994ebfbf3e93554aaa86747f7bde469
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:50:58 -07:00
Praveen Bharathi
5fa7790654 misc: max9635: Fix issues with LUX register read
Modified driver to report lux every 2 secs.
Also rearranged data/removed unused variables in header file.

Change-Id: I3261a51497b2a55be735fbc73a6f15f7838b0b27
Signed-off-by: Praveen Bharathi <pbharathi@motorola.com>
2010-10-06 16:50:54 -07:00
Greg Meiste
69726d2f7e mfd: cpcap-whisper: Config EMUMODE for audio when MODE_PU set
When the 100K ID PU is enabled, it puts the basic dock into audio
mode.  The EMUMODE bits in CPCAP should also be configured so
audio can be routed out the D+/D- lines.

Change-Id: I9bc7718391156932c116c980ccb4d41942356c8b
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:50:53 -07:00
Iliyan Malchev
79e9ed9b2d [ARM] tegra: stingray: cpcap-audio: integrate Motorola's driver
This reverts commit 02e784126d67e77c039123fed3f2ece48b6559f9.
2010-10-06 16:50:52 -07:00
Rebecca Schultz Zavin
8b05fe70e1 Revert "[ARM] tegra: stingray: cpcap-audio: integrate Motorola's driver"
This reverts commit f01ee18d3d1f7e03216b652a04ba82161fd069aa.
2010-10-06 16:50:51 -07:00
Andrei Warkentin
c063995751 media: video: tegra: Add dw9714l focuser driver
Change-Id: I4e3c690c782ea25c50fec25bf6252acd32a64242
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:50:47 -07:00
Andrei Warkentin
14be139209 media: video: tegra: ov5650: Several changes to 5MP imager sensor
Add ability to read sensor otp.
Add support for pattern generators.
Cleans up the ioctl parameters.

Change-Id: I78b585fb94b5d97e2adebe718972019e4e2142de
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:50:46 -07:00
Rebecca Schultz Zavin
5646436ff6 media: video: tegra_camera: Change value written into clock register for vi
Change-Id: I5e4d4a14f055ea8a19f715f8bf8fb3d7b88b7cda
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:50:45 -07:00
Iliyan Malchev
571945428c [ARM] tegra: stingray: cpcap-audio: integrate Motorola's driver
-- Replace the board-file table-based CPCAP audio with Motorola's original
-- Rename drivers/mfd/cpcap-audio.c to tegra-cpcap-audio.c
-- In tegra-cpcap-audio, use Motorola's CPCAP-audio driver
-- Enable support for headsets with microphones
-- Add support for muting a microphone
-- Enable routing of audio through speaker and headset simultaneously
2010-10-06 16:50:44 -07:00
Rebecca Schultz Zavin
cbcebda4a1 w1: master: tegra_w1: Hold the mutex around w1_setup as well
Change-Id: I4989ebd892e35e0fdd49bd529ac8bc4f54a8f15e
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:50:43 -07:00
Rebecca Schultz Zavin
8f3a4f8447 w1: masters: tegra_w1: Clear device ready flag when suspended
This will prevent any device from trying to read/write via w1
before the w1 master has resumed.

Change-Id: Ic3a27f07db6fcefb76937adf471d2fd44033b178
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:50:42 -07:00
Nick Pelly
67740b029f mdm6600: implement reset_resume
Change-Id: I39dbc4f611691acac62e48f47da9e743230cbb3c
Signed-off-by: Nick Pelly <npelly@google.com>
2010-10-06 16:50:37 -07:00
Colin Cross
9996c9d0d2 video: tegra: fix syncpoint timeouts in host1x driver
Change-Id: Ief81ad3ce74cc446e21e54c2d2acca977f0fa934
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:50:36 -07:00
Erik Gilling
15fde47564 HACK: host1x mega commit
Change-Id: Ibf5d4d58c24ca4db26450bb7a5c68154ba73d7c5
2010-10-06 16:33:51 -07:00
Rebecca Schultz Zavin
54a1c40c99 Revert "staging: android: lowmemkiller: Substantially reduce overhead during reclaim"
This reverts commit db0c96452e4c9e2f14e54f1fa648d90ef894bcc6.

Conflicts:

	drivers/staging/android/lowmemorykiller.c

Change-Id: Iac522ffa3f751d4ef8d2fb2e0f2e08dee8e6b118
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:51 -07:00
Rebecca Schultz Zavin
83dd90a8d9 Revert "staging: android: lowmemorykiller: Fix task_struct leak"
This reverts commit 8e46542d2f8dc730d4fc1b9cd3df0fe9fc236ed1.
2010-10-06 16:33:50 -07:00
Rebecca Schultz Zavin
abe997b06f Revert "staging: android: lowmemorykiller: Remove bitrotted codepath"
This reverts commit d3cf24cfefda01d1dfcafd63fe1f6e6179908878.
2010-10-06 16:33:50 -07:00
Nick Pelly
5e82e54db9 mdm6600: First pass at suspend/resume support.
Add suspend/resume handler. Usb framework will no longer de-register tty on
suspend/resume now. Kill URB's with usbcore while in suspend.

Switch from dev_foo() to pr_foo() printk helpers. The dev_ ones are a pain to
find the right device struct, and occasionally caused null pointer panics.

Change-Id: I38769dc3befaef1a783ec5ab77169db2e963a9bc
Signed-off-by: Nick Pelly <npelly@google.com>
2010-10-06 16:33:50 -07:00
makarand.karvekar
f083fd3f14 magnetometer: akm8975: remove accelerometer and temperature code
8975 does have accelerometer and temperature features.
corrected flag values.

Change-Id: Ie061bd67ab34fb2da7ddcd7c44d362bfc5016dde
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:33:49 -07:00
makarand.karvekar
b547c606a0 misc: l3g4200d: fix gyro data calculation
report gyro events as EV_REL.
clean up gyro data calculation.

Change-Id: I3327e58ef5a99d52bdd6aeabacf63c41172958ba
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:33:49 -07:00
Rebecca Schultz Zavin
27b8647606 misc: max9635: Remove early suspend/resume handlers
Allow userspace to set policy on sensor enable/disable

Change-Id: I901edeaf6ab3bddb79220c4ba7248b8873e6338e
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:47 -07:00
Rebecca Schultz Zavin
1cdd046275 misc: l3g4200d: Several fixes to l3g4200d driver
-Remove early suspend/resume handlers, allow userspace to set
policy on sensor enable/disable
-Use regulator api instead of calls into the board file to
control power

Change-Id: I0e0a08f1cbaf450cabb2e555692aec60498fc182
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:47 -07:00
Rebecca Schultz Zavin
416c552d44 misc: kxtf9: Use regulator api to control power to sensor
Previously this used a callback to the board file

Change-Id: Idaca0ef5f77fde73e0ae2e8fd510f0ca985ec051
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:47 -07:00
Rebecca Schultz Zavin
c89c91442d misc: akm8975: Sevearl fixes to akm8975 driver
-Remove early suspend/resume handlers, allow userspace to set
policy on sensor enable/disable
-Use regulator api instead of calls into the board file to
control power

Change-Id: I0550a1bc9ee37f93ba02a7024afb6c44ababbe9d
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:46 -07:00
Greg Meiste
4cbbb2dce3 Revert "Revert "firmware: cpcap: Add workaround to support soft reset""
This reverts commit a56ac084c7f8c23e22af1c968bca7bb7a89e4d4b.
2010-10-06 16:33:45 -07:00
Amol Bhatkar--NJ05
ea0a94441f moto_flashmdm: add PID 0x4281 for MDM600 flash interface
Keep the old PID for backward compatibility

Change-Id: Ic77a7fe6e32b386f867a2047c099160d5fe3f81a
Signed-off-by: Amol Bhatkar--NJ05 <amolbhatkar@motorola.com>
Signed-off-by: Nick Pelly <npelly@google.com>
2010-10-06 16:33:45 -07:00
Colin Cross
f8b9c518a6 Revert "firmware: cpcap: Add workaround to support soft reset"
This reverts commit 7d8d274f2cca4fb00e8b119321ca58d52526137e.
2010-10-06 16:33:44 -07:00
Greg Meiste
b289ead1ee firmware: cpcap: Add workaround to support soft reset
The CPCAP uC needs to be stopped before a soft reset.  Macro 15 can be
used to stop the uC with the SYS_RESTART line.

Change-Id: I7a7711d771881320a4b6f1a462411b8a4b21b0fc
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:33:43 -07:00
Paul Eastham
1235333f8a leds: leds-lp8550: Properly set poweron state / brightness on resume.
Signed-off-by: Paul Eastham <eastham@google.com>
2010-10-06 16:33:42 -07:00
Paul Eastham
0ec76d85fc leds: leds-lp8550: Fix and extend brightness debug messages
Signed-off-by: Paul Eastham <eastham@google.com>
2010-10-06 16:33:42 -07:00
Benoit Goby
4b81605b11 usb: otg: cpcap-otg should return IRQ_NONE when appropriate
Change-Id: I94c4cf415778a59dc665e1b5353342067ba4f894
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:33:42 -07:00
Benoit Goby
efddedb611 mfd: cpcap-whisper: Ignore the SE1 bit to detect host mode
The Nexus One data pins are in the SE1 state until vbus is powered.
Ignore the SE1 bit to fix host mode detection when a Nexus One is
attached.

Change-Id: Ia2314b26acdb1d20fa0a43812f88c232c919cba3
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:33:41 -07:00
Nick Pelly
e6a9d0cc99 mdm6600: Don't panic on wrong port.
Lack of power management on the mdm6600 driver causes it to sometimes
open with a bad port after USB re-unemeration. WARN_ON_ONCE instead of
BUG_ON.

Change-Id: Iae6c7aa2c1f2b30ff879a1b744a5efeef01664f9
Signed-off-by: Nick Pelly <npelly@google.com>
2010-10-06 16:33:40 -07:00
Praveen Bharathi
2f0fcdc5df leds: stingray: add blink support for cpcap leds
Allows individual led to support blink capability

Change-Id: If2c7bd8a4bc617e3049b0db3a6fec4f92b06c0e5
Signed-off-by: Praveen Bharathi <pbharathi@motorola.com>
2010-10-06 16:33:39 -07:00
Ramesh Sudini
4c29ebbdc0 HID: hid-motorola: whisper HID driver
Signed-off-by: Ramesh Sudini <ramesh.sudini@motorola.com>
Signed-off-by: Nick Pelly <npelly@google.com>

Change-Id: I63a1c5358f8536916e29d18e298ea495deddcbae
2010-10-06 16:33:38 -07:00
Rebecca Schultz Zavin
444ab21ed8 media: video: tegra: Move tegra_isp to tegra_camera and add functionality
The tegra_camera device has been extended to include all clock and
regulator functionality needed by to support camera on tegra.

Change-Id: Ie1611a79c24f7ebe3ae570d38a9f470683af91dd
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:38 -07:00
Iliyan Malchev
f67a5ef4d6 [ARM] tegra: cpcap-audio: enable turning off audio-output paths
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 16:33:37 -07:00
Iliyan Malchev
8e26d94c6c [ARM] tegra: cpcap-audio: add support for selecting audio inputs
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 16:33:37 -07:00
Greg Meiste
d7904f2cbb mfd: cpcap-whisper: Tweak to support real Whisper docks
The real Whisper basic dock behaves a bit different than the prototype.
Detection must be tweaked to properly detect the accessory when it is
plugged into the wall.

Change-Id: I7e2c4708b7c6642c3b58ebed199632be59804740
Signed-off-by: Greg Meiste <w30289@motorola.com>
Signed-off-by: Nick Pelly <npelly@google.com>
2010-10-06 16:33:36 -07:00
Greg Meiste
4078885fa3 mfd: cpcap-whisper: Update configuration for Whisper Smart
Smart Whisper accessories need a different configuration, so they are
now their own accessory

Change-Id: I16167a01ae3f3cdfd0c9765771459ff38cbc6b31
Signed-off-by: Greg Meiste <w30289@motorola.com>
Signed-off-by: Nick Pelly <npelly@google.com>
2010-10-06 16:33:36 -07:00
Greg Meiste
520f195ed1 mfd: cpcap-whisper: Report dock ID to system
Add support for whisper driver to report the dock ID to the system
via sysfs. The dock ID can be found at:
/sys/class/switch/dock/dock_addr

Change-Id: Iafcc738c5e9bd10f94ee2cab1ab0d39a10b9932e
Signed-off-by: Greg Meiste <w30289@motorola.com>
Signed-off-by: Nick Pelly <npelly@google.com>
2010-10-06 16:33:36 -07:00
Dmitry Shmidt
7b39f695d8 mmc: sdhci-tegra: Set MMC_PM_KEEP_POWER flag in case of built-in device
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-10-06 16:33:36 -07:00
Erik Gilling
c9d9f5e92b video: tegra: unpin nvmap handles after flip
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:33:36 -07:00
Sergey Kudakov
9b6427fb24 leds: leds-lp8550: fix a typo in suspend/resume handlers
Change-Id: I1445b90b9f31ec69d8ec298cae68ed9d75fb5abd
Signed-off-by: Sergey Kudakov <sergey.kudakov@motorola.com>
2010-10-06 16:33:35 -07:00