Commit Graph

211843 Commits

Author SHA1 Message Date
Nick Pelly
9a659a8d41 [ARM] tegra: stingray: switch to new mdm6600 driver in defconfig
Change-Id: I24d8f1deeea99adb2dfb934a3b7984ecdada9d39
Signed-off-by: Nick Pelly <npelly@google.com>
2010-10-06 16:33:35 -07:00
Nick Pelly
3922756ef2 mdm6600: Add mdm6600 usb-serial driver.
This is a re-write of the Motorola mdm6600_modem driver.

The usb_serial_generic_* handlers actually cover the USB bulk to serial data
path. So that code disappears.

The USB interrupt data to TIOCMGET ioctl path does not appear to be used by
pppd in userspace, using a temporary BUG_ON() to confirm.

So we end up with very little but a hook to register generic usb-serial
handlers for the MDM6600 vendor id.

I have not spent time testing behavior in low-power-modes, it is likely I will
need to over-ride some of the generic handlers at that point.

Change-Id: I65fdd06c2764416f365995761aa653878c0e393b
Signed-off-by: Nick Pelly <npelly@google.com>
2010-10-06 16:33:35 -07:00
Rebecca Schultz Zavin
63746e4abb leds: leds-lp8550: Remove early suspend/resume handler from this driver
Instead just allow userspace to turn on and off the backlight when
entering suspend.  Otherwise we get a race condition on some hardware
where the backlight does not go off.

Change-Id: I81303125ebc0cfa8ef1d135a3681d6dd4d4137d9
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:34 -07:00
Rebecca Schultz Zavin
0e3892c7d8 [ARM] tegra: Add support for soc2030 camera sensor to stingray boardfiles
Change-Id: I2c83e3946a279aa9b963518ff6e600aad714276f
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:34 -07:00
Rebecca Schultz Zavin
1073deca8e media: video: tegra: Driver for 2MP SOC2030 imager for use with tegra isp
Change-Id: I5ec72fd2a06c97c8cbf496d69fe2b03c1ef0941e
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:34 -07:00
Benoit Goby
04c483c16f misc: Fix panic on suspend in TS27.010 Mux driver
Change-Id: I6af85425934961c65caf096f501f2356eac946fd
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:33:34 -07:00
Colin Cross
409ecc5a16 [ARM] tegra: stingray: Enable LP1 suspend
Signed-off-by: Colin Cross <ccross@google.com>
Change-Id: I9a7fa0cf420f962599b05831fae3209dfe28b947
2010-10-06 16:33:34 -07:00
Colin Cross
4ac993f502 [ARM] tegra: stingray: Remove cruft from defconfig, add CROSS_COMPILE
Signed-off-by: Colin Cross <ccross@google.com>
Change-Id: I6b6a3be38a23f7cf09309bb326ce020ac4dc471a
2010-10-06 16:33:33 -07:00
Rebecca Schultz Zavin
2feae44371 [ARM] tegra: Add pinmuxing for pin group dte to stingray board file
Change-Id: Ib8e30764c690a11e4962ed8c52d80225cd9f15fa
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:33 -07:00
Todd Poynor
a7ac4fced2 cpcap: suspend/resume
Disable cpcap interrupts at suspend and re-enable at resume, to avoid
processing interrupts while the SPI controller is suspended.

Change-Id: I26676b8ce8983bf5477f169a15d811c474c6f5a4
Signed-off-by: Todd Poynor <toddpoynor@google.com>
2010-10-06 16:33:33 -07:00
Benoit Goby
1fa241ab56 usb: serial: Fix memory corruption in moto-flashmdm
moto_flashmdm_attach should also override bulk_out_buffers as
usb-serial expects they have the same size as bulk_out_buffer

Change-Id: I97487fa833ed3dee40a15c485ba8565944d0f9e4
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:33:33 -07:00
Benoit Goby
1c221a13a2 [ARM] tegra: stingray_defconfig: Enable USB_SERIAL_MOTO_FLASH_MODEM
Change-Id: Ib952e1296e34669389d2783f183ce8889b9b0e27
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:33:33 -07:00
makarand.karvekar
0efe0dcfe7 touch: temporary fix for IC wake issue.
reset commented out in resume.
reset address pointer to message object.
adjusted wait time after reset upon recommendation from Atmel.

Change-Id: I0dd983ce0545c6ca2e48d4ed06b90d8c1ac1a390
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:33:33 -07:00
Jay Cheng
4a7c8dd336 [ARM] tegra: stingray: change UARTC clock source to PLL_P
Bluetooth requires 3Mpbs baud rate. Change UART clock source from
clk_m (26000000) to pll_p (216000000).

Signed-off-by: Jay Cheng <jacheng@nvidia.com>
2010-10-06 16:33:32 -07:00
Erik Gilling
539795fb38 [ARM] add tegra dc and fb to stignray_defconfig
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:33:32 -07:00
Erik Gilling
a1ecf13d20 [ARM] tegra: move stingray-panel to new display system
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:33:32 -07:00
Nick Pelly
e5dc715d9d [ARM] tegra: stingray: Enable TS MUX driver again.
No longer crashes due to fixes to mdm6600_modem

Change-Id: Ie5617b998d947cd7f2a55728e66e89a58b4fc96e
Signed-off-by: Nick Pelly <npelly@google.com>
2010-10-06 16:33:32 -07:00
Nick Pelly
0170b3bfaf mdm6600_modem: fix crash on suspend in mdm6600_modem
This allow's Motorola's mdm6600_modem driver to work with suspend.

Patch provided by Motorola.

mdm6600_modem will shortly be replaced by a re-write, but its useful to commit
this update for easier A/B testing.

Change-Id: I0489f139e59e42ba1b6fb1979cf8b3ea8196a126
Signed-off-by: Nick Pelly <npelly@google.com>
2010-10-06 16:33:32 -07:00
Greg Meiste
243777788c [ARM] tegra: stingray: Configure Charge LED
Configure GPIO_PZ5 to control the charge LED.  For now, charge LEDs
are enabled when device is powered up.  GPIO is also exported to
enable factory testing.

Change-Id: I6bf7345cc795d57c1312c2c14ab1c74863a421ce
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:33:31 -07:00
Greg Meiste
81a8a0e81e power: ds2781: Check if charger already attached when probed
If Stingray is powered up with a charger already attached, the battery
driver would not report charging to the system, even though the battery
was being charged.  This charges the DS2781 battery driver to check
if a charger is already present when the driver is probed.

Change-Id: I786e34a4699a545f5a03995db5df457cd7f63773
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:33:30 -07:00
Greg Meiste
28a370a412 [ARM] tegra: stingray: Tegra w1 timing updates
Changes to the Tegra w1 timings to meet the timing requirements
of the DS2780 and DS2781 ICs as recommended by the hardware team.

Change-Id: I5dca589d98d87c16fac82759d02d42cd4afbc659
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:33:30 -07:00
makarand.karvekar
53cdf410a6 misc: max9635: disable irq in suspend.
The device expects the irq to be disabled on resume, enable
it from suspend so enable/disables are balanced.

Change-Id: I62cf633819d8fdb3c5f7c6227f2625cfdecdc6a8
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:33:29 -07:00
Colin Cross
0fda36dc5e [ARM] tegra: stingray: Update board file for i2c-tegra changes
The latest i2c-tegra driver requires more platform data to support
multiple i2c busses on a single controller.
2010-10-06 16:33:29 -07:00
Iliyan Malchev
67f8367646 [ARM] tegra: stingray: configure CPCAP audio codec driver
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 16:33:29 -07:00
Iliyan Malchev
39108c894d [ARM] tegra: stingray: configure board for audio through i2s1
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 16:33:29 -07:00
Iliyan Malchev
f765ab45cc [ARM] tegra: stingray: platform driver for CPCAP audio codec
-- provides output-volume control
-- provides two output paths: speaker and headset

Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 16:33:29 -07:00
Iliyan Malchev
5477bfe140 [ARM] tegra: add mach header to configure cpcap-audio
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 16:33:28 -07:00
Iliyan Malchev
4cdeb0c2b8 [ARM] tegra: stingray: configure audio-related clocks 2010-10-06 16:33:28 -07:00
Iliyan Malchev
04a24b277c [ARM] public interface for CPCAP audio codec driver
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 16:33:28 -07:00
Colin Cross
1516ba0048 input: qtouch: Fix warning
Signed-off-by: Colin Cross <ccross@google.com>
2010-10-06 16:33:28 -07:00
Greg Meiste
59bc72c778 w1: Add support for DS2780 gas gauge
Stingray will initially ship with the DS2780 instead of the DS2781
gas gauge.  The same DS2781 driver will work, but need to look for
the DS2780 family code.

Change-Id: I6b47f31d6362895839af4922210dba2aee41db42
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:33:28 -07:00
Greg Meiste
5c0fcc3ff2 [ARM] tegra: stingray: Reduce Tpdl time
The Tpdl time was too large, causing some batteries to not be
detected.

Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:33:27 -07:00
Greg Meiste
8d69c3efae power: ds2781: Use correct value for Rsnsp
The current being reported by the DS2781 battery driver was off
due to the incorrect value being used for Rsnsp. The DS2781 has
a register with the correct value, so use it instead of a hard
coded value.

Change-Id: I6fbd32a2a890232a805a2d4f1e595b0b3daf30e8
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:33:27 -07:00
makarand.karvekar
0f0edcf524 touch: remove duplicate register input device call
duplicate register input called, when boot work function is triggered
via firmware update process.
This broke reboot command.

Change-Id: I78547127bfbde39f1f971806156d332883b8bf43
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:33:27 -07:00
Benoit Goby
a0f7890d10 [ARM] tegra: stingray: Configure the USB PHY as recommended by Motorola
Use ehci devices from devices.c

Change-Id: I4035b5e1ee06d5b2a561da0b1d4c0d8c55092a4d
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:33:27 -07:00
Rebecca Schultz Zavin
e7463c70c4 media: video: tegra: ov5650: Remove log messages
Some sensor ioctls are called on every frame.  Remove log messages
to prevent the kernel log from getting too spammy.

Change-Id: I0eb88eb7e7da7c5eb3e158c17ae68cca195147fc
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:27 -07:00
Rebecca Schultz Zavin
3c611418cb [ARM] tegra: Add ov5650 camera sensor to stingray board file
Change-Id: I1b5277de2ed972ef2c7235e1c7d190273ff0e069
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:26 -07:00
Rebecca Schultz Zavin
10fcfa5e7a [ARM] tegra: Add tegra isp to stingray board files
Change-Id: I84eab4cb11a90cea7e43d63a571faffd022a5cda
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:26 -07:00
Rebecca Schultz Zavin
fb64380479 [ARM] configs: Add ov5650 to stingray defconfig
Change-Id: Id0088aff7dc4f235965d834e153461f653772300
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:26 -07:00
Rebecca Schultz Zavin
b980b509ab media: video: Add support for omnivision ov5650 for use with tegra isp
Change-Id: Ifb306ff6818d46fac26d7a1a9261a4cc67d729ca
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:26 -07:00
Rebecca Schultz Zavin
3c06c14668 media: video: Add stub isp driver for tegra
Change-Id: I6ff1bf0e72ef69b59d5875bd60c7cd825fa2ca4f
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:26 -07:00
Gary King
e562176306 [ARM] tegra: nvrm: add basic implementation of clock controls
add support for enabling, disabling and configuring the ISP, VI and
CSI clocks from user-space through the RM APIs

Change-Id: I652af05d5406928721ac62371b85cb3e2cbb3f6b
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:33:25 -07:00
Gary King
11d90deeb8 [ARM] tegra: add iram heap
AVP modules expect IRAM to be allocatable through nvmap, so the
IRAM heap needs to be created

Change-Id: Idd1bdccd5ff05ae655cb59780a89002a122055c9
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:33:25 -07:00
Colin Cross
7a8b3a8e0e Revert "[ARM] tegra: stingray: Disable DS2781 1w driver"
This reverts commit 3f399eda535217497ba911cbe94af04f7f2fb724.
2010-10-06 16:33:25 -07:00
Colin Cross
325afb3d68 HACK: stingray: Don't set the memory controller frequency
The latest stingray P1s die during boot when the memory
controller frequency is changed.

Change-Id: Ia505343289d7f6066d7731d2297c585988ffa7ea
Signed-off-by: Colin Cross <ccross@android.com>
2010-10-06 16:33:25 -07:00
Dmitry Shmidt
6c1ce0b219 [ARM] tegra: stingray: Fix path to bcm4329 Wifi calibration file
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-10-06 16:33:24 -07:00
Colin Cross
80fdca15ec [ARM] tegra: stingray: Disable ts27010 mux
The ts27010 mux driver panics during suspend, disable it
temporarily.

Change-Id: I0c858bf01d1579d38048288d1e19a373307600c2
Signed-off-by: Colin Cross <ccross@android.com>
2010-10-06 16:33:24 -07:00
makarand.karvekar
6e8d4049ac [ARM] tegra: olympus: update touch object elements.
touch object elements updated as per firmware 09
protocol publication.

Change-Id: I1e3ce574859eaa25d8b46add055572ec4017855f
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:33:24 -07:00
makarand.karvekar
852dee5c7f [ARM] tegra: stingray: update touch object elements.
touch object elements updated as per firmware 09
protocol publication.

Change-Id: I8fceb69b42b3234953dfd7aa35f01ead3f300ff6
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:33:24 -07:00
makarand.karvekar
53bf9eb154 touch: firmware 09 support
Added new objects grip, palm and Digitizer HID.
Ignoring info block checksum for now, issues seen
on some HW having incorrect info data.

Change-Id: I812d3099dd273e99a87ca3fe8dfce3bcdfbede7e
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:33:24 -07:00