Commit graph

211,970 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
Rebecca Schultz Zavin
16b553082f [ARM] configs: Add config options to enable oprofile in stingray_defconfig
Change-Id: I1ea33a44ec3c963338e3dc09dee575139d801227
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:51:05 -07:00
Benoit Goby
86493f9afa [ARM] tegra: board-stingray: Add USB2 (LTE DataCard connector)
Change-Id: I59c09898394ac72966fa2057eb69130f7439c2f6
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:51:04 -07:00
Benoit Goby
d30bd86c2a [ARM] tegra: pinmux: Disable pull-ups on ULPI pins
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>
2010-10-06 16:51:03 -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
Benoit Goby
c55aca163a [ARM] tegra: board-stingray: Don't register usb1 ehci platform device
The cpcap-otg driver will register the device when ID pin is grounded

Change-Id: Ibe95dcd00d7e1dfe0103ca94b59afe8769d91759
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:51:00 -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
makarand.karvekar
efc63a9d6d [ARM] tegra: Stingray: pull down on TEGRA_PINGROUP_SDIO1 (UARTE)
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>
2010-10-06 16:50:56 -07:00
Praveen Bharathi
d6196a6f5e [ARM] tegra: stingray: remove unwanted ALS platform variables from board file
Removed threshold boundaries as they are no longer needed.

Change-Id: Ie395f9042fbf3e61ca0c6ff448441f52fc5929f9
Signed-off-by: Praveen Bharathi <pbharathi@motorola.com>
2010-10-06 16:50:56 -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
c69ae4ac42 [ARM] configs: Add focuser to stingray_defconfig
Change-Id: I3372c3c42ad7a829e438d34924373c0afbef4fb5
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:50:50 -07:00
Rebecca Schultz Zavin
c1f53d1d58 [ARM] tegra: stingray: Add specific regulator constraints for focuser
Change-Id: I45cb0331731b585ebdc021b38e87fec31fe6895f
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:50:49 -07:00
Rebecca Schultz Zavin
81726cf613 [ARM] tegra: stingray: Add focuser to board-stingray-sensors
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>
2010-10-06 16:50:48 -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
Gary King
e02c752012 [ARM] tegra: nvrm_transport: handshake AVP reset with kernel
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>
2010-10-06 16:50:41 -07:00
Gary King
0119aa9e9d [ARM] tegra: nvrm_transport: send address message after AVP init
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>
2010-10-06 16:50:40 -07:00
makarand.karvekar
3e25149b51 [ARM] tegra: updated touch interrupt line for Stingray P2 HW
touch interrupt has moved from PV2 to PZ2 on P2 HW.

Change-Id: Ic9375e1e081c3ac746f5fa2c21657bd1af1668a3
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:50:39 -07:00
Greg Meiste
5f515b956e [ARM] tegra: stingray: Disable SW5 on newer hardware
SW5 is no longer connected on newer hardware.  Turn it off.

Change-Id: I56442e70adf4fdf7357bf8fc0b634f8b6d4f18cd
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:50:38 -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
Rebecca Schultz Zavin
865d1a8664 Revert "[ARM]: tegra: Various tuning for touchpanel in stingray board file"
This reverts commit dc1c98e105e7cba173ee674e3c8f47f0c453a4fd.
2010-10-06 16:50:35 -07:00
Greg Meiste
5138d6d60c firmware: cpcap: uC was stopping on soft reset power up
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>
2010-10-06 16:50:34 -07:00
Dmitry Shmidt
891f23abae Revert "Revert "[ARM] tegra: stingray: Switch to level interrupt for wlan""
This reverts commit 48a2f6fed56c391e888368423becd2eecfa1cb31.
2010-10-06 16:50:33 -07:00
Erik Gilling
b59c4fb77a add tegrafb.h
Change-Id: If86b82253915196c2962e04286b9ac7ea400c193
2010-10-06 16:50:32 -07:00
Erik Gilling
3cbeaad195 HACK: no disp2 device
Change-Id: I5e914c907eec28b99b0d9de056a61e1ea2c63380
2010-10-06 16:50:31 -07:00
Erik Gilling
15fde47564 HACK: host1x mega commit
Change-Id: Ibf5d4d58c24ca4db26450bb7a5c68154ba73d7c5
2010-10-06 16:33:51 -07:00
Dmitry Shmidt
9a6c17ce0d [ARM] tegra: stingray: Turn Off CONFIG_RPS
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-10-06 16:33:51 -07:00
Rebecca Schultz Zavin
282e4b22b9 Revert "[ARM] tegra: stingray: Switch to level interrupt for wlan"
This reverts commit 2cfc65414e7356c0f91f8283802975fd9b5f34c8.
2010-10-06 16:33:51 -07:00
Rebecca Schultz Zavin
d534322cb6 Revert "sched: Add a generic notifier when a task struct is about to be freed"
This reverts commit 262ffb28f3c0af4cc88e33d5635fe6be5259b37b.
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
Gary King
c7c9f42ea0 [ARM] tegra: nvrm: make RM transport a bit quieter.
Change-Id: Ic82c256ed229e7c8042bd23270ae443bbe7534cf
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:33:50 -07:00
Gary King
31f9e3abeb [ARM] tegra: nvrm: remove AVP module relocation
Change-Id: I8ba0907f7c1dec77e7ca3f22874837cf044300a2
Signed-off-by: Dima Zavin <dima@android.com>
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
Dmitry Shmidt
a514d2132d [ARM] tegra: stingray: Switch to level interrupt for wlan
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-10-06 16:33:49 -07:00
Greg Meiste
e4ebb75212 firmware: cpcap: Reset SW2 and SW4 voltage to 1.2v when exiting LP0
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>
2010-10-06 16:33:49 -07:00
Greg Meiste
b669cdfaa1 [ARM] tegra: stingray: CPCAP switcher voltage settings correction
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>
2010-10-06 16:33:49 -07:00