Commit Graph

95285 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
Kazuhiro Ondo
e07b275795 Motorola USB flash mode driver.
Change-Id: Idf72cbceeff56523be443013c5cbda79ea829994
2010-10-06 16:33:23 -07:00
Greg Meiste
59b6367c01 mfd: cpcap-irq: Add debugfs file for CPCAP IRQ data
This change will add the file cpcap-irq to the debug fs directory. The file will
provide data for each of the cpcap interrupts. The data includes the interrupt
name, if the interrupt is enabled/disabled, if a handler has been registered
with the interrupt, and the number of times the interrupt has been generated.

Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:33:23 -07:00
Greg Meiste
5226f9f0c4 mfd: cpcap-irq: Short power button presses don't wake up
Fix for Issue 2866518: Short power button presses during suspend don't
wake up.

Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:33:23 -07:00
Colin Cross
6833fbee23 usb: fsl_udc_core: Prevent udc timeout on suspend
Change-Id: Ic4780063d432860df835c54c17b2b9249132c8c5
Signed-off-by: Colin Cross <ccross@android.com>
2010-10-06 16:33:23 -07:00
Greg Meiste
ba087e409b firmware: cpcap: Support uC control of SW2
Update the CPCAP firmware to add support to control SW2.  VDD_CORE is
connected to SW2, and therefore SW2 needs to be controlled by CORE_PWR_REQ.

Change-Id: I9526c7c14bd9c4d41d40800392ae814adae49c08
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:33:22 -07:00
Dmitry Shmidt
8c44d79e2c usb: otg: cpcap-otg: Fix section mismatch warning
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-10-06 16:33:21 -07:00
Kazuhiro Ondo
468f272738 msm6600_modem: Add TS27.010 MDM6600 modem driver.
Change-Id: Ide01d600124ade39544800cce35f09fd35918e27
Signed-off-by: Nick Pelly <npelly@google.com>
2010-10-06 16:33:21 -07:00
Benoit Goby
dded1ea2a0 mfd: cpcap-whisper: Notify the USB sub-system of USB events
Change-Id: I7707f9c0589bcc46529cab13a34a5376aca4899a
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:33:20 -07:00
Benoit Goby
6878c410f2 usb: otg: Add CPCAP USB OTG driver
This driver receives notifications from cpcap-whisper and emulates the same
behavior as when the VBUS and ID USB pins are connected to the app processor.

Change-Id: I671e64c58559a2a3036273ef1fe8acb6af516fac
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:33:20 -07:00
Greg Meiste
cd065896e8 power: bq24617: Support DETECT line on P1
Stingray P1 adds a DETECT line that needs to be used for charger
detection.

Change-Id: If904f18e0618b7cf1673fd654cc73ed27ddd5672
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:33:19 -07:00
Kazuhiro Ondo
6c1b49f901 misc: Add TS27.010 Mux driver
Change-Id: I1ab0cf0e141fcd2915b2d27d1badaa274803b73e
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:19 -07:00
Colin Cross
e3a43b2bed qtouch: Remove the powerconfig hack
Signed-off-by: Colin Cross <ccross@android.com>
2010-10-06 16:33:18 -07:00
Colin Cross
0464dd14b6 qtouch: Revert removal of the powerconfig hack
Taking out the powerconfig hack seems to break the current version
of the firmware.  Put it back in for now.

Signed-off-by: Colin Cross <ccross@android.com>
2010-10-06 16:33:18 -07:00
makarand.karvekar
6f36785b89 touch: Fix info block checksum calculation and eeprom field.
Updated info block checksum calculation to use 24-bit crc
as per Atmel data sheet.
Updated eeprom field(nv_checksum) to accommodate 24-bits.
Removed HACK(powerconfig) code for low-power mode.

Change-Id: Ic38a695010fd519af5c87ac731e8582898058bbb
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:33:18 -07:00
James Wylder
37b3acd876 misc: Add mdm6000 modem shutdown logic
Add driver to communicate shutdown request to mdm6600
modem, through gpio triplets.

Change-Id: I00ab47e64e8f398caebac83f7c734f2f2c1a2aa3
Signed-off-by: James Wylder <james.wylder@motorola.com>
2010-10-06 16:33:16 -07:00
Greg Meiste
53e35045c6 power: ds2781: Report age scalar to system
Because the battery is non-removable, the service centers would like
a way of knowing whether the battery actually needs replacing. The
driver will now report the age scalar to the system to indicate
battery age.

Change-Id: I4dcaf12d87fdf82563d5511702ee3c6b4dffeecb
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:33:15 -07:00
makarand.karvekar
23b71fa971 touch: Correct message read size for CRC feature.
Previously, Message Processor always generated
CRC byte at end of message.
Now(version 8), this CRC byte is generated only upon request.
To request that a checksum is generated, the MSBit
of the address of the Message Processor object is set to 1.

By default the CRC byte is not generated, reading the CRC byte
will remove new messages from IC causing lost touches.

Added control flag and message size correction for this feature.

Change-Id: I7d1a75528a59afcc95688ae1b7d6704d29ffe443
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:33:15 -07:00
makarand.karvekar
64ff66260b touch: request_firmware from userspace.
Removed header file with firmware structures.
Added request_firmware call.

Change-Id: If01b64a7d7489ec8f553d87b6a4a8afea92f737d
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:33:14 -07:00
Dmitry Shmidt
add4b3ab01 drivers: mfd: cpcap: Fix section mismatch warnings
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-10-06 16:33:14 -07:00
Greg Meiste
309b3f2db1 w1: slaves: ds2781: Fix warning introduced by K35
On K35, the bin_attribute structure was changed, causing a build
warning in the DS2781 w1 slave driver. Thsi patch fixes the warning
and the likely runtime error that would occur if something was
to try to read from the property.

Change-Id: I3a6ea8190a9f7e8ae8b85b25f79faa0574acc474
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:33:13 -07:00
Dan Murphy
38ed68afe3 leds: Add LM3559 flash driver support
Initial submission of the LM3559 driver for Stingray

Change-Id: Id18092f7b23248ea8e2fcca1116ddba89a9af9dc
Signed-off-by: Dan Murphy <wldm10@motorola.com>
2010-10-06 16:33:13 -07:00
Greg Meiste
69e6b46735 power: ds2781: Add DS2781 battery driver
Initial implementation of the DS2781 battery driver.

Change-Id: I97a80b81b50ffa892759fca6e8336c6ca4e62e86
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:33:12 -07:00
Greg Meiste
3e2eea466e w1: slaves: ds2781: Add DS2781 driver
Initial implementation of the DS2781 one wire slave driver

Change-Id: Id7bb79fced794105d71e64ec9f5aa719f7da7797
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:33:11 -07:00
Dmitry Shmidt
a7ba815324 [ARM] tegra: mmc: Fix built-in device detect delay
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-10-06 16:33:11 -07:00
prabhu.annabathula
1a4ec221f2 GPS: Add gpio controller driver for brcm 4750
driver provides ioctls for broadcom gps guci library to set gps
reset and standby lines for brcm 4750 chip

Signed-off-by: prabhu.annabathula <prabhu.annabathula@motorola.com>
2010-10-06 16:33:10 -07:00
Greg Meiste
b669f1939b mfd: cpcap-whisper: Accessory detection updates
1) Added detection of Whisper Smart dock
2) Now enable VBUS for USB hosts
3) Added support for Whisper daemon to enable/disable UART
4) Fixed issue resulting in extra ID Float interrupt

Change-Id: I1531429bc90241de6139390eb7a2ac19f13ca78b
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:33:10 -07:00
Dan Murphy
b85228c188 leds: lp8550 driver update.
Fix the EEPROM writing as there was a typo in the data sheet.
Fix the brightness set function to correctly change the brightness
of the LEDs.  And turn the LEDS off appropriately

Change-Id: Ie0f07c7f8433014729d8108c4785e8dddf962859
Signed-off-by: Dan Murphy <wldm10@motorola.com>
2010-10-06 16:33:09 -07:00
Greg Meiste
0d86ae97a7 mfd: cpcap-whisper: Report audio cable
Whisper detection driver will now report to the system when an audio cable
is attached to the Whisper accessory.  The presence of the audio cable
can be found at /sys/class/switch/usb_audio/state.  The audio status will
not be reported until the accessory is validated by the Whisper daemon.

Change-Id: I7883403abdc8e86096e241e5a7e656b233db5296
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:33:07 -07:00
Dan Murphy
6ecd61845c leds: National LP8550 LED driver for the display
Initial submission of the National LP8550 driver for p1

Change-Id: I2d2dc42a1c06fbc682fd8f556fa89c864c749db8
Signed-off-by: Dan Murphy <wldm10@motorola.com>
2010-10-06 16:33:06 -07:00
makarand.karvekar
547ba01648 touch: qtouch_obp: Add 12bit resolution for x,y co-ordinates.
Added 12-bit support for x,y co-ordinates.
x,y > 1023, x,y is reported as 12-bit.
x,y < 1024, x,y is reported as 10-bit.

Add firmware for second touch panel type.

Change-Id: Icfd687a37f5b3fcbb784665bac7d270317421a9a
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:33:04 -07:00
Dan Murphy
8432c34322 leds: Create generic CPCAP led driver
Commonized the CPCAP LED driver into a single driver for all LEDs
connected to the CPCAP.

Change-Id: Ic62356010f3e1b355f7da757c3f08608765a71da
Signed-off-by: Dan Murphy <wldm10@motorola.com>
2010-10-06 16:33:02 -07:00