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>
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>
USE ABS_MT_TRACKING_ID to report the finger tracking id
Change-Id: I8198eea12c5a90607a6dab48d96c6872a1c5e783
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
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>
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>
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>
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>
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>
-- 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
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>
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>
8975 does have accelerometer and temperature features.
corrected flag values.
Change-Id: Ie061bd67ab34fb2da7ddcd7c44d362bfc5016dde
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
report gyro events as EV_REL.
clean up gyro data calculation.
Change-Id: I3327e58ef5a99d52bdd6aeabacf63c41172958ba
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
Allow userspace to set policy on sensor enable/disable
Change-Id: I901edeaf6ab3bddb79220c4ba7248b8873e6338e
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
-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>
Previously this used a callback to the board file
Change-Id: Idaca0ef5f77fde73e0ae2e8fd510f0ca985ec051
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
-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>
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>
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>
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>
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>
Allows individual led to support blink capability
Change-Id: If2c7bd8a4bc617e3049b0db3a6fec4f92b06c0e5
Signed-off-by: Praveen Bharathi <pbharathi@motorola.com>
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>
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>
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>
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>