Commit Graph

211983 Commits

Author SHA1 Message Date
Greg Meiste
58dee8e83f mfd: cpcap-whisper: Fix defect introduced by I2c374a98
Fix issue where the ID Float interrupt may occur during the 200ms
where state is set to USB_POWER, causing the state machine to get
into a bad state.

Change-Id: I99e7b5de84f4b091c5b6e4f3e522876561603b61
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:51:22 -07:00
Antti Hatala
d1f8605b09 video: tegra: add multiple windows support to flip ioctl
Change-Id: I8521d1f6737e0972d8385e0ceecfc3a1bcae8550
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:51:21 -07:00
Erik Gilling
f55cfc3834 Revert "video: tegra: add multiple windows support to flip ioctl"
This reverts commit 09d367bee9da1b5ecd931dc1d26317707a8c4085.
2010-10-06 16:51:20 -07:00
Antti Hatala
e4dc6f8eda video: tegra: add multiple windows support to flip ioctl
Change-Id: I8521d1f6737e0972d8385e0ceecfc3a1bcae8550
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:51:19 -07:00
James Wylder
bfe2405cbe [ARM] tegra: stingray: boardfiles changes for mdm6600_ctrl
- give more meaningful names to ap-bp gpios,

Change-Id: I1a7eea918c15271b90fb09ce882eff1691a28c21
Signed-off-by: James Wylder <james.wylder@motorola.com>
2010-10-06 16:51:18 -07:00
James Wylder
d7eb4745b7 misc: mdm6600_ctrl: update shutdown to reset unresponsive modem.
- fix initialization of BP_PWRON (PS6), and BP_RESIN (PZ1) gpios,
    - cleanup kernel log messages,
    - assert BP_RESIN gpio to reset unresponsive modem.

Change-Id: Iaf6b7d553fec1a6e9254b7183c1beacf7ad4d555
Signed-off-by: James Wylder <james.wylder@motorola.com>
2010-10-06 16:51:17 -07:00
Greg Meiste
2e760aa5ab [ARM] tegra: stingray: Fix CPU DVFS
P0 and later models were changed to put the cpu_vdd regulator
in MODE 1, rather than the previous MODE 3 value. This caused
DVFS to appear to work but actually have no impact on the
cpu voltage.

In addition, when resuming from LP0, the CPU voltage must be
1.0v.  To guarantee this, the voltage needs to be set upon
entering suspend, so when the regulator is re-enabled, it is
the correct voltage before code begins executing.

Change-Id: I3580c832dbb4b5ce9ce7bd0089352a72b3b3869c
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:51:16 -07:00
Greg Meiste
12f6584327 regulator: max8649: Add support for suspend
With this change, the regulator framework can configure the regulator
for suspend if necessary.

Change-Id: Idf1fc085d7182368ae1bfdcc54cf3c8de0f93005
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:51:15 -07:00
Greg Meiste
4f544db43e [ARM] tegra: Setup regulators for suspend
The regulator framework may need to change certain regulators when
entering suspend.

Change-Id: I584e92b3c32cbd1a63325831822e2704a3dd2774
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:51:14 -07:00
Antti Hatala
edd4c87e4d [ARM] tegra: stingray: remove clock and powergate hacks
Remove unpowergating of 3d on board init to let the host1x driver
handle it.

Remove enabling hw module clocks on board init for modules behind
host1x.

Keep pll_m clock force-enabled for now as the pll clk disable code
path is not fully functional.

Change-Id: I4721d117b736a591b3cf3ee9f8967b88212f88b8
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:51:13 -07:00
Benoit Goby
cf853d9c88 usb: mdm6600: Remove urbs from in_flight list on completion
This fixes an issue where uncompleted urbs get added to the pending
anchor.

Change-Id: I9504fea0ca42e9d18dfe255744ba8f6638e1f324
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:51:12 -07:00
Antti Hatala
c30aa47b8e video: tegra: automatic powergating for 3d and mpe
Change-Id: I50784dec578c4c20b790ce25e53e849412c1443a
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:51:11 -07:00
Greg Meiste
d6f7c9b3c7 [ARM] tegra: stingray: CHG_DISABLE is connected to PS7 on P2
On P2 hardware, PS7 is now connected to CHG_DISABLE.  HS_DET_EN has not
been connected (or needed) since M1, so audio should not be controlling
PS7.

Change-Id: I19b96295cb956bffdd1f4b0e7ba48b1a0bec3242
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:51:09 -07:00
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