Commit Graph

212052 Commits

Author SHA1 Message Date
Erik Gilling
78a91fa99f mfd: move cpcap to unlocked_ioctl
Change-Id: I2107e164e0d75f1b8e2011e4b28d312308549128
2010-10-06 17:03:28 -07:00
Erik Gilling
1aa5151f7d media: video: move tegra/tegra_camera.c to unlocked_ioctl
Change-Id: I2b12aaf72ac0303725aa9b419cd7240e1a198fd8
2010-10-06 17:03:27 -07:00
Erik Gilling
256e784737 media: video: move tegra/soc2030.c to unlocked_ioctl
Change-Id: I8f530d09381d23815a094add40b80103efb3fab6
2010-10-06 17:03:26 -07:00
Erik Gilling
1659bd7874 media: video: move tegra/ov5650.c to unlocked_ioctl
Change-Id: Ia21593038a1c5cab0268f1f51d6d4c6b38d69922
2010-10-06 17:03:25 -07:00
Erik Gilling
f742fb433b misc: add moto_bmp085 driver
Change-Id: Ie49feb1b90dc7451f64e1fa7f07b131100e92488
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 17:03:24 -07:00
Erik Gilling
d8a04a58b0 HACK: stingray/olympus board configs
Change-Id: Ice59c4cdb6cec9ee57da7515010d36045645a288
2010-10-06 17:03:23 -07:00
Kazuhiro Ondo
7d144fc092 [ARM] tegra: stingray: Add BP boot command GPIO in mdm_ctrl platform data
Initialize BP boot command GPIOs in the platform data.

Change-Id: Ia1f41e4d3d2fa718b156c065e0661fe1ac1a9ad2
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 17:03:22 -07:00
Kazuhiro Ondo
f8f1d0d089 misc: mdm6600_ctrl: Added shutdown, powerup and bootmode commands
Added commands to control mdm6600 status from the userspace.
This change will add the capabilities of 1) shutdown, 2) switch
bootmode and 3) powerup of the modem processor.

Change-Id: Ic93c4d87af73e4b78f1aa70a35f1b4b1145ea462
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 17:03:21 -07:00
Benoit Goby
b431ff4ebe mdm6600: Reduce memory usage
buffer_sz is multiple of MaxPacketSize because the USB host controller
can split the buffer in packets.

All buffers received or sent are <2k, so MaxPacketSize * 4 (2k) should
be a better buffer size.

Change-Id: I1e0e2fd4e9a4e78d33e6b4de57ee420630298de2
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 17:03:20 -07:00
Rebecca Schultz Zavin
bfea4fcd5b net: ppp_deflate: Switch z_decomp_alloc to vmalloced decompress buffers
On systems with high memory pressure, allocating an order 4 contiguous region
for decompression can fail at run time.  Instead use virtually contigous memory
allocated via vmalloc.

Change-Id: I7821882bd183a1de0d73ab2932f6e6978e4f0970
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 17:03:19 -07:00
vcdt34
c7c0790dce [ARM] tegra: stingray: Invalid kfree in lm3559 error path
A failed write in the lm3559 driver takes an error path
that incorrectly attempted to free statically allocated
memory, resulting in a kernel crash. This bug prevents
the kernel from booting successfully on development
hardware systems that doesn't have the torch LED.

Change-Id: I96d252c5d5b6939f5d47e27aece81e1f61ba1cd1
Signed-off-by: John Poplett <john.poplett@motorola.com>
2010-10-06 17:03:18 -07:00
Ken Sumrall
178d2c3f85 Reserve the first 4K of phys ram for safety from errant drivers/hardware.
Signed-off-by: Ken Sumrall <ksumrall@android.com>
2010-10-06 17:03:18 -07:00
Erik Gilling
e4626c2429 video: tegra: make fliping asynchronous
Signed-off-by: Erik Gilling <konkers@android.com>
Change-Id: I17d53717e7f16fb4c460902582b3762180676414
2010-10-06 17:03:17 -07:00
Benoit Goby
5d59d11198 mdm6600: Wait for pending urbs on suspend
On suspend, while we are killing read urbs, some of the urbs
might succeed. Don't re-submit them and wait for the workqueue
to process them.

Fixed urbs ref count

Change-Id: I3c69926b0bec8d5425ed8bc403b8c040db5ab435
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 17:03:16 -07:00
makarand.karvekar
f156d3e483 [ARM] tegra: stingray: touch P3 HW support
touch interrupt gpio is PV2 for P3 HW.
P3 follows P1 and P2 touch configuration settings.

Change-Id: I117009ecd2146a28009082d901fc71f236f55353
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 17:03:15 -07:00
Greg Meiste
901a0e9646 power: ds2781: Always report battery data when overtemp
Change-Id: I9dca810ffdaaa3eb04f486544a894d4f55945fbd
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 17:03:14 -07:00
Sergey Kudakov
378657ab79 [ARM] tegra: stingray: support p3 version string
Signed-off-by: Sergey Kudakov <sergey.kudakov@motorola.com>
2010-10-06 17:03:13 -07:00
makarand.karvekar
0fd5a94762 input: touchscreen: qtouch: remove redundant touch processing
xy swap/flip and erroneous touch event suppression
is handled in touch IC firmware.

Change-Id: I73df7eb06c39144ba68c9a5897daa6b3625b3ba3
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 17:03:12 -07:00
Colin Cross
d560be9ffb w1: tegra_w1: Don't disable clock if it was not enabled
Change-Id: I634c24768979fc2c9754f9b1d946dcb1ef1ff213
Signed-off-by: Colin Cross <ccross@android.com>
2010-10-06 17:03:11 -07:00
Colin Cross
3fbbf04884 cpcap: Flush work in suspend
Change-Id: I9a4ef87e84b53ad52f46554ad52ca5effb260f65
Signed-off-by: Colin Cross <ccross@android.com>
2010-10-06 17:03:10 -07:00
Rebecca Schultz Zavin
3a89c9ddab media: video: tegra: ov5650: Clean up headers to match latest userspace
Change-Id: I57cbdb7aec24a1dd8942e8fa341a735fdacf08e5
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 17:01:33 -07:00
John Kramer
ce8bc1afe4 media: video: tegra: soc2030: 2MP camera tuning
Includes support for factor test and latest tuning settings

Signed-off-by: John Kramer <john.kramer@motorola.com>
Change-Id: Icc0e17317c4209cd58d0981b34cd8b60c80be09e
2010-10-06 17:01:32 -07:00
Erik Gilling
3bfc9b904f [ARM] tegra: specify panel depth for stingray
Change-Id: I3a001249fea702af9deed33219e98b5dbbd49e0c
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 17:01:31 -07:00
Greg Meiste
ea562738b0 [ARM] hid: hid-motorola: Notify system of audio cable state changes
Change-Id: Iaf0b55998d103c2793322f7ce030c503e111d614
Signed-off-by: Greg Meiste <w30289@motorola.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 17:01:30 -07:00
Greg Meiste
82bd615a2d [ARM] mfd: cpcap-whisper: Add interface to update audio switch
The Motorola HID driver needs an interface to call when an audio cable
is inserted/removed from a Smart Dock.  The interface should update
the audio switch so the audio driver can properly route audio.

Change-Id: Ifad06400c5895f7545f702cdb09be02fe716412a
Signed-off-by: Greg Meiste <w30289@motorola.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 17:01:29 -07:00
James Wylder
4720a83f9c [ARM] mfd: cpcap-audio: add debugfs interface
- create cpcap_audio debugfs with access to the audio_state
 - add cpcap_audio_state_dump call to parallel the register
   dump call.

Change-Id: Ia7331b9218ea93602833b2a99097109031035280
Signed-off-by: James Wylder <james.wylder@motorola.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 17:01:28 -07:00
Iliyan Malchev
6973a914e0 bq24617: reduce kmsg spew
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 17:01:27 -07:00
James Wylder
b031542289 [ARM] cpcap-audio: enable low-power standby mode
-- add CPCAP_AUDIO_OUT_STANDBY definition, extended ioctl interface to support
   for selecting new CPCAP_AUDIO_OUT_STANDBY output id;
-- manage VAUDIO through balanced calls to regulator_set_mode() initialize
   audio speaker to off.

Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 17:01:27 -07:00
James Wylder
a2a2b6311f [ARM] tegra: stingray: board changes for cpcap-audio suspend mode
- Initialize VAUDIO to low power mode
- Add standby_config changes to allow audio to go into low
  power state.
- remove direct references to register 512, because access
  should be through the Linux regulator framework.

Change-Id: I3ea23e2aabd183a3ecae0d30fce15a7365b168d8
Signed-off-by: James Wylder <james.wylder@motorola.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 17:01:26 -07:00
Rebecca Schultz Zavin
251633bc08 [ARM] tegra: Add camera flash support to stingray board files
Change-Id: Ib294d3a6eb356442835a221d1c0d60900def7896
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 17:01:25 -07:00
David Schalig
26833fc929 leds: led-lm3559: Enable camera flash in led driver
Streamlined LM3559 led driver implementation, fixed register
programming sequence to enable flash trigger via STROBE pin.

Change-Id: Ic2aa97cbd5da508116e7bc635876f0ef95df1df4
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 17:01:24 -07:00
Greg Meiste
dda08880ac power: ds2781: Fix reporting of negative temperatures
Need to save the temperature in a signed variable.  Otherwise, when the
temperature is below zero, an extremely hot temperature is reported to
the system, causing the device to power down.

Change-Id: I243bfc0fd1e1d76b2986e9def624de2b7782d731
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 17:01:23 -07:00
Andrei Warkentin
cb0a27a5fb media: video: tegra: dw9714l: Make focuser driver more generic
Exposes more parameters and settings to focuser HAL,
putting all specifics in the driver, queryable from the HAL.

Change-Id: Id3d8764b7f9f1853982ca9c0d403fb0e455c7185
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
2010-10-06 17:01:22 -07:00
Todd Poynor
5aa0de77c4 [ARM] tegra: stingray: remove SD/MMC host sdhci-tegra.2 (aka SDIO3)
SD/MMC host #3 not connected on Stingray.  Remove platform device so
sdhci driver won't enable clock sdmmc3.

Change-Id: Id3cd38f60069ad53ca7c354620c64350d32ff98a
Signed-off-by: Todd Poynor <toddpoynor@google.com>
2010-10-06 17:01:21 -07:00
Benoit Goby
d836d9945f mdm6600: Don't hardcode the number of ports
Change-Id: I5ca689922638fb27546d1a27aa293751bd9c9790
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:51:58 -07:00
Benoit Goby
c2bb419de5 usb: gadget: Fix dTDs allocation gfp flags
fsl_build_dtd may be called from atomic context. Don't hardcode the gfp
flag to GFP_KERNEL. Pass down to dma_pool_alloc the flag used by the
function driver to enqueue the request.

Change-Id: Iba1ccf73bbcd648b8c13228157431d2ce52979ef
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:51:57 -07:00
Greg Meiste
2b0f5d2b8c [ARM] tegra: stingray: Optimize regulator modes for better current drain
Change-Id: Ia94830c1aeb7736029711dd5f00a3a7842c839fb
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:51:56 -07:00
Greg Meiste
38ba1cc19b mfd: cpcap-uc: Add support to control regulators with secondary standby
The uC can now be used to write the secondary SPI standby bits.

Change-Id: I0f6a69d78b941fdf7b65d893c0ae8b29cc8bd740
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:51:55 -07:00
Benoit Goby
07b8b90316 mdm6600: Enable the wakeup irq on suspend
Other ports may need the wakeup irq even if the modem main port is not
opened. Enable the wakeup irq when the first opened port is suspended,
instead of enabling it when the main port is opened.

Change-Id: I15f32bb885673765cf5c7a574896e1c427d24977
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:51:54 -07:00
Greg Meiste
9e38f7aced mfd: cpcap-whisper: Increase delay before ADC
The accessory team has requested that detection wait 200ms before
taking the ADC read to give the ID line time to settle to the
correct state.  This fixes audio cable detection on real docks.

Change-Id: I7744bb3927a07c299e7efa27eee24d3267aa6856
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:51:53 -07:00
Dmitry Shmidt
adfdcfcd97 ARM: stingray: config: Enable L2TP
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-10-06 16:51:52 -07:00
makarand.karvekar
ee66dc232e [ARM] tegra: stingray_defconfig: Enable led options
CONFIG_LEDS_TRIGGERS
CONFIG_LEDS_TRIGGER_TIMER

Change-Id: I04b70f522e90a89b7a5297595ec8255501386f20
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:51:51 -07:00
makarand.karvekar
c79c4dc27c [ARM] tegra: stingray: led cpcap registers configuration
remove button led configuration.

Change-Id: I17c79c83cae6d8b2d34290fc5e3c4fb4dc54209c
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:51:50 -07:00
makarand.karvekar
78f5c78eac leds: leds-ld-cpcap: blink and timer trigger updates
Set default trigger as timer.
Seperate blink function from brightness.

Change-Id: I1dd789ae8b5df88ea26c40ed544807ec0f3bb52a
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:51:49 -07:00
Benoit Goby
1cc943e8eb [ARM] tegra: board-stingray: Add mdm6600 platform device
Change-Id: Ifb61c8f5350665c4d398da343da265f8d1e9deef
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:51:48 -07:00
Benoit Goby
b903677b4b mdm6600: Add support for auto-suspend and out-of-band wakeup
Allow auto-suspend and suspend when there are no pending writes and
no data have been received for 2s.

While the modem is suspended, enqueue write urbs and submit them once
the modem is resumed.

Request the wakeup gpio irq so that the modem can wakeup from lp0.

Change-Id: If2a47756e9a2138d6c1a7c2e7bf235dfc396cec5
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:51:47 -07:00
Erik Gilling
4a2f6d372a video: tegra: drain syncpt waits on display disable
Change-Id: I815c7be652f03b7d675200918b258950b49795d3
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:51:46 -07:00
Dmitry Shmidt
dd2c450118 misc: max9635: Fix unbalanced enable_irq() call
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-10-06 16:51:45 -07:00
Dima Zavin
9c530fd24f ARM: tegra: stingray: default mpe clock config @ 250Mhz
Change-Id: Ifad3b11da3b0c50505465e2c309dd9edb1a5b0f9
Signed-off-by: Dima Zavin <dima@android.com>
2010-10-06 16:51:44 -07:00
Dima Zavin
00087a04ad ARM: tegra: add a duplicate MPE clock for the host1x driver
Change-Id: Icf35e562a4e3f7506d826dd52905dde5f6c7cfcc
Signed-off-by: Dima Zavin <dima@android.com>
2010-10-06 16:51:43 -07:00