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>
Pull-ups on ULPI pins must be disabled to select the Link ULPI
PHY interface (TRM 25.3.3.2).
Change-Id: Ic9a4a798954c97c10360a5968ad4184a07cc6ee4
Signed-off-by: Benoit Goby <benoit@android.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>
The cpcap-otg driver will register the device when ID pin is grounded
Change-Id: Ibe95dcd00d7e1dfe0103ca94b59afe8769d91759
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>
UARTE used by GPS is a 3-wire connect between
Broadcom chip and Tegra.
uart5_cts_n is not connected, pull down on the
pin group keeps cts line low.
Change-Id: I8c9fa70058e92fce3c09e036051cb89b4c808434
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
Removed threshold boundaries as they are no longer needed.
Change-Id: Ie395f9042fbf3e61ca0c6ff448441f52fc5929f9
Signed-off-by: Praveen Bharathi <pbharathi@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>
Also remove management of vcam ioctl, it will now be managed by
the focuser driver
Change-Id: I8114d831bbe62019ec022003fb61bd354093ee85
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.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>
the AVP kernel modifies the AVP reset vector after it starts to its
own value; poll this register to verify that the AVP kernel has
started properly.
Change-Id: I5d9f36dd2763c0df28576f3cb86de20f6aae0ef2
Signed-off-by: Gary King <gking@nvidia.com>
rather than storing the address message in the mailbox when the shared
message memory is allocated during kernel init, send the message after
the AVP is initialized.
this prevents the message from being "lost" if the system enters LP0
before initializing the AVP.
Change-Id: I14634e2a53abacf840ed906451f1a07016a99015
Signed-off-by: Gary King <gking@nvidia.com>
touch interrupt has moved from PV2 to PZ2 on P2 HW.
Change-Id: Ic9375e1e081c3ac746f5fa2c21657bd1af1668a3
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
SW5 is no longer connected on newer hardware. Turn it off.
Change-Id: I56442e70adf4fdf7357bf8fc0b634f8b6d4f18cd
Signed-off-by: Greg Meiste <w30289@motorola.com>
This new firmware fixes the issue where the uC was stopping during a
soft reset power up.
Change-Id: I6c495c4d4765d0210f0451617c32a7401580c35e
Signed-off-by: Greg Meiste <w30289@motorola.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>
Previously, the uC was only turning on/off SW2 by changing the
switcher mode. It must also return SW2 and SW4 to 1.2v in case
DVS has set the voltages lower before entering LP0.
Change-Id: I9900d36f50c43b8ba3f6d38d8ddb8647789e020f
Signed-off-by: Greg Meiste <w30289@motorola.com>
Signed-off-by: Nick Pelly <npelly@google.com>
CPCAP should not be automatically dropping SW2 and SW4 to 0.95v
when the primary standby line drops. This must be controlled by
DVS as per nVidia.
Change-Id: I336dd3fc30ec0ff8672c88eeed81a6b0a8617b00
Signed-off-by: Greg Meiste <w30289@motorola.com>
Signed-off-by: Nick Pelly <npelly@google.com>