Commit graph

21,653 commits

Author SHA1 Message Date
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
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
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
Erik Gilling
15fde47564 HACK: host1x mega commit
Change-Id: Ibf5d4d58c24ca4db26450bb7a5c68154ba73d7c5
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
makarand.karvekar
f083fd3f14 magnetometer: akm8975: remove accelerometer and temperature code
8975 does have accelerometer and temperature features.
corrected flag values.

Change-Id: Ie061bd67ab34fb2da7ddcd7c44d362bfc5016dde
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:33:49 -07:00
makarand.karvekar
b547c606a0 misc: l3g4200d: fix gyro data calculation
report gyro events as EV_REL.
clean up gyro data calculation.

Change-Id: I3327e58ef5a99d52bdd6aeabacf63c41172958ba
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:33:49 -07:00
Rebecca Schultz Zavin
ed620b98d6 misc: max9635: Remove unused fields from platform data struct
Change-Id: Icc712ce96970d3808881fa22b0e5095aa1596b2e
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:48 -07:00
Rebecca Schultz Zavin
adf20c7db5 misc: l3g4200d: Remove unused fields from platform data struct
Change-Id: Iaacac3d9bbf4f87a272822c76c2cd6939059597a
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:48 -07:00
Rebecca Schultz Zavin
e70a772d8b misc: kxtf9: Remove unused fields from platform data struct
Change-Id: I5fc511b64c8381543abb00c523727df93cde1bd1
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:47 -07:00
Rebecca Schultz Zavin
02aff39c0b misc: akm8975: Remove unused platform data struct from board file
Change-Id: If8f687641069bd838359745c0df7000edf3e1bd5
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:47 -07:00
Praveen Bharathi
2f0fcdc5df leds: stingray: add blink support for cpcap leds
Allows individual led to support blink capability

Change-Id: If2c7bd8a4bc617e3049b0db3a6fec4f92b06c0e5
Signed-off-by: Praveen Bharathi <pbharathi@motorola.com>
2010-10-06 16:33:39 -07:00
Iliyan Malchev
f67a5ef4d6 [ARM] tegra: cpcap-audio: enable turning off audio-output paths
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 16:33:37 -07:00
Iliyan Malchev
8e26d94c6c [ARM] tegra: cpcap-audio: add support for selecting audio inputs
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 16:33:37 -07:00
Greg Meiste
520f195ed1 mfd: cpcap-whisper: Report dock ID to system
Add support for whisper driver to report the dock ID to the system
via sysfs. The dock ID can be found at:
/sys/class/switch/dock/dock_addr

Change-Id: Iafcc738c5e9bd10f94ee2cab1ab0d39a10b9932e
Signed-off-by: Greg Meiste <w30289@motorola.com>
Signed-off-by: Nick Pelly <npelly@google.com>
2010-10-06 16:33:36 -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
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
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
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
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
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
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
Antti Hatala
84acce0710 [ARM] tegra: Update nvmap to support new driver for host1x
This patch does some cleanup to nvmap, and adds kernel apis for
use from the new host1x driver.

Change-Id: I17dbdfe2df918f8684d09910132f69d0b244e0f3
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:14 -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
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
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
Greg Meiste
4bb0e2f4de regulator: cpcap: Add support for SW2 and SW4
Will be needed for DVS

Change-Id: I56da93ae33c1b9a01b80a703d978f6ca3cc6a0e3
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:33:01 -07:00
Dan Murphy
20ea8cc19b misc: Add ST Micro L3G4200D Gyroscope code
This is the initial submission of code for the gyroscope.

Change-Id: Ie56f79dad42b616058ea59cf05508337cc002f18
Signed-off-by: Dan Murphy <wldm10@motorola.com>
2010-10-06 16:33:01 -07:00
Dan Murphy
d2213b44d8 leds: CPCAP LED driver initial submission
Initial submission of the Home key LED code.
Code was ported from Sholes and updated with a work queue

Change-Id: Ib25313471cd21fb941b8fa4ecab3811b6ef35d74
Signed-off-by: Dan Murphy <wldm10@motorola.com>
2010-10-06 16:33:00 -07:00
Greg Meiste
ee3524207f mfd: cpcap-whisper: Changes for version 0.4
Whisper detection changes for version 0.4, enabling Whisper proto board
to be detected.  Now reporting dock type to system.

Change-Id: I22e9704a33afc0afcd02eb68fcb40c87b9b3e3fc
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:32:59 -07:00
Dan Murphy
76f5d1340b misc: Initial MAX9635 ALS driver
The MAXIM 9635 IC is used for ALS sensing.  This will report ambient
light data in LUX.

Change-Id: I93728eb804d748145fb17524cfd328c923f33eb3
Signed-off-by: Dan Murphy <wldm10@motorola.com>
2010-10-06 16:32:59 -07:00
Makarand Karvekar
56e7a19d56 touch: qtouch obp mxt1386 support
Driver has firmware flashing capability.
updated to firmware 07_E0.

Change-Id: Id3d4861fcc05fd171feffb43d013bef6fe19f906
Signed-off-by: Makarand Karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:32:58 -07:00
Dan Murphy
5474687835 misc: KXTF9 Accelerometer driver
Open source driver modified to work on K34.
Resolved open coding violations
Ensured no data would be reported if the device is not enabled

Change-Id: Ia23393a702dc193835313844260ccd1fd5b93cc0
Signed-off-by: Dan Murphy <wldm10@motorola.com>
2010-10-06 16:32:57 -07:00
Greg Meiste
c88d0874a5 mfd: cpcap: Add CPCAP drivers
Add driver for motorola's CPCAP PMIC.  This includes the core in mfd,
the rtc driver, and regulator drivers.

Change-Id: I96e3a97673002f3264ae8a71f5c8db1fcb7846e3
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:32:56 -07:00
Dan Murphy
b65bd1539f leds: Simple GPIO driver to control the AUO backlight
This is a simple driver that controls the AUO backlight and
registers to the LED class driver.

This code is not long term code.  Once new displays are available
this code can be disabled and removed.

Change-Id: I91f4fdfe25060440643597f5419f67a87ef72a96
Signed-off-by: Dan Murphy <wldm10@motorola.com>
2010-10-06 16:32:56 -07:00
Dima Zavin
e5d0414337 input: Add Quantum OBP touchscreen support
This adds a driver for the Quantum capacitive touch controllers
that use the Object Based Protocol (OBP) for communication
between the driver and the on-chip firmware.

Change-Id: Ib469d626d5f0d11562547f2cbeb71a48e11f6072
Cc: Dan Murphy <D.Murphy@motorola.com>
Cc: Mike Chan <mike@android.com>
Cc: Paul Eastham <eastham@google.com>
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:32:51 -07:00
Colin Cross
98959c8563 Merge branch 'android-2.6.36' into android-tegra-2.6.36
Conflicts:
	drivers/input/touchscreen/Kconfig

Change-Id: Ifc75266e258f9513d78c47c12e2f1de1d2344f02
2010-10-06 16:32:09 -07:00
Ravindra Lokhande
3543d53703 [ARM] tegra: driver for spdif audio
-- creates /dev/spdif_out and /dev/spdif_out_ctl for playback and control
   settings.
-- playback only

Change-Id: I19af1d41e13dedef650784835339ef9718300d0c
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 16:29:12 -07:00
Iliyan Malchev
49c9a88333 [ARM] tegra_i2s_audio: add more elaborate error counts
This patch replaces the error counter with two separate error counters, one for
late dma callbacks, and another for overruns (during recording) or underruns
(during playback).  The ioctls TEGRA_AUDIO_IN_GET_ERROR_COUNT and
TEGRA_AUDIO_OUT_GET_ERROR_COUNT now take a pointer to a struct containing both
error counters.

Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 16:29:10 -07:00
Gary King
15e4e8998b rtc: tps6586x: add alarm support to tps6586x driver
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:28:49 -07:00
Gary King
7ec6215759 mfd: tps6586x: add basic interrupt support
add support for enabling and disabling tps6586x subdevice interrupts

Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:28:49 -07:00
Benoit Goby
7b284e782b usb: host: Add power_off_on_bus_suspend option
If the device connected to a port has out-of-band wakeup
signaling, the phy and controller may be powered off on bus suspend.

Change-Id: Ia206f05d01160411b97aefa83045cd759d35b66d
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:28:37 -07:00
Gary King
e4f8b6f6c1 input: touchscreen: panjit_i2c: fix suspend
the panjit touchscreen needs to be reset when returning from
deep sleep mode; add a platform data structure to specify
the reset GPIO.

perform the reset during _probe, since the code already needs
to exist for _resume

delete a bunch of unused preprocessor defines

Change-Id: I71ae65dec45710b0eab4625036edf75064d4cc2b
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:28:30 -07:00
Gary King
2cdc235bbe mmc: subtract boot sectors from disk size for eMMC 4.3+ devices
the csd sector count reported by eMMC 4.3+ cards includes the boot
partition size; subtract this from the size reported to the disk
since the boot partition is inaccessible

Change-Id: I601b83aa0159b7aa446409ea8c945b256dd0b5b1
Signed-off-by: Gary King <gking@nvidia.com>
2010-10-06 16:28:02 -07:00