Commit Graph

211879 Commits

Author SHA1 Message Date
Iliyan Malchev
6fa391ed2b [ARM] tegra: tegra_i2s_audio: add wakelocks
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 16:33:41 -07:00
Benoit Goby
efddedb611 mfd: cpcap-whisper: Ignore the SE1 bit to detect host mode
The Nexus One data pins are in the SE1 state until vbus is powered.
Ignore the SE1 bit to fix host mode detection when a Nexus One is
attached.

Change-Id: Ia2314b26acdb1d20fa0a43812f88c232c919cba3
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:33:41 -07:00
Dima Zavin
7833216d52 ARM: tegra: stingray: temporarily disable LP0 (AVP suspend)
Change-Id: Iaedd594aba25649f934dea6d0e715de72f08ed1a
Signed-off-by: Dima Zavin <dima@android.com>
2010-10-06 16:33:41 -07:00
Kaz Fukuoka
00c1159858 [ARM] tegra: stingray: CPU-AVP RPC in kernel
- /dev/nvfw ioctl interface to load AVP firmware.
- Use request_firmware() for AVP modules
- /dev/nvrpc ioctl interface to call RPC on AVP.
- Server thread to serve RPC from AVP.

Change-Id: I1694dc49d69b677cd225f8b68a4f84edf9bf0a23
Signed-off-by: Dima Zavin <dima@android.com>
2010-10-06 16:33:41 -07:00
Mike Lockwood
4b22249a61 [ARM] tegra: stingray: defconfig: Enable CONFIG_USB_ANDROID_RNDIS
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-10-06 16:33:41 -07:00
Mike Lockwood
a74cbe3f91 [ARM] tegra: stingray: Add support for RNDIS USB function.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-10-06 16:33:41 -07:00
Nick Pelly
e6a9d0cc99 mdm6600: Don't panic on wrong port.
Lack of power management on the mdm6600 driver causes it to sometimes
open with a bad port after USB re-unemeration. WARN_ON_ONCE instead of
BUG_ON.

Change-Id: Iae6c7aa2c1f2b30ff879a1b744a5efeef01664f9
Signed-off-by: Nick Pelly <npelly@google.com>
2010-10-06 16:33:40 -07:00
Rebecca Schultz Zavin
1a4c8af49e [ARM] tegra: nvrm: Remove NvRm reset and clock controls for camera
These controls are no longer used.

Change-Id: I5259a799777471272b54682d4bfef9a0739964ec
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:40 -07:00
S. Holmes
2fa2329a6f tegra: nvrm: Add VDE, VCP, and BSEA to RM clock & module APIs
Add the VDE, VCP, and BSEA blocks to the RM clock and module APIs so that
video and audio playback will work.

Change-Id: I4a7d9121239967f6b76b0a585a818d1047a56993
2010-10-06 16:33:40 -07:00
Jay Cheng
1f4b083280 [ARM] tegra: stingray: change uartc clock source to pll_m.
With PLL_M (600Mhz) as clock source, it produces the closest 3M baud rate
required by BT module.

Change-Id: I9a33f415a8a13fbb68589d5b2575f7c7beab5c44
Signed-off-by: Jay Cheng <jacheng@nvidia.com>
2010-10-06 16:33:40 -07:00
Praveen Bharathi
1639beeb66 board-stingray-power: add notification led driver
Change-Id: Ia2a6f7d2f5734e815a6fabc1d4752eb3bcddde9d
Signed-off-by: Praveen Bharathi <pbharathi@motorola.com>
2010-10-06 16:33:40 -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
Greg Meiste
0182709057 [ARM] tegra: stingray: Charge LED GPIO moved on P2
Support the charge LED on P2 hardware.

Change-Id: I2e8733f11d98c29015282520f8f560b5734f8696
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:33:39 -07:00
James Wylder
c1e2bd770a [ARM] tegra: stingray: USB current drain reduction.
At boot time the kernel should:
   USB_FORCEON_N (GPIO_TEGRA_PC5) should be initialized output high.
   ULPI_PHY_RESET_B (GPIO_TEGRA_PG2) should be initialized output low.

Signed-off-by: James Wylder <james.wylder@motorola.com>

Change-Id: I92a59c5fff4a9d3dd68a3ce3bd6a6c134241146d
2010-10-06 16:33:39 -07:00
Greg Meiste
9c31f973fd [ARM] tegra: stingray: Configure CPCAP Switchers for low power
CPCAP switchers 2, 3, and 4 need to be set to PSM mode in normal mode
and PFM mode in low power mode.  CPCAP switchers 2 and 4 should be set
to 0.95v in low power mode.  This will provide some current drain
savings.

Change-Id: Ie506305dd011dfc14fda5fd24562539149352bb9
Signed-off-by: Greg Meiste <w30289@motorola.com>
Signed-off-by: Nick Pelly <npelly@google.com>
2010-10-06 16:33:39 -07:00
Ramesh Sudini
bb7951a29a [ARM] tegra: stingray: defconfig: enable whisper HID
Change-Id: I29ad1993a06adf6ac6a7b5093cc7cba9b4111fa1
Signed-off-by: Ramesh Sudini <ramesh.sudini@motorola.com>
Signed-off-by: Nick Pelly <npelly@google.com>
2010-10-06 16:33:39 -07:00
Ramesh Sudini
4c29ebbdc0 HID: hid-motorola: whisper HID driver
Signed-off-by: Ramesh Sudini <ramesh.sudini@motorola.com>
Signed-off-by: Nick Pelly <npelly@google.com>

Change-Id: I63a1c5358f8536916e29d18e298ea495deddcbae
2010-10-06 16:33:38 -07:00
James Wylder
fa09c72b83 [ARM] tegra: stingray: implement display suspend/resume callbacks
Implement the init/suspend/resume callbacks to initialize,
clear, and set the lvds gpio respectively.

Change-Id: Id7b7481ceff481088089b7b914cea321ad04350f
Signed-off-by: James Wylder <james.wylder@motorola.com>
2010-10-06 16:33:38 -07:00
Rebecca Schultz Zavin
4b2f75922f [ARM] tegra: Modify board-stingray to use correct name for tegra_camera device
Change-Id: I2dfd8100b264ecbfb43eed669881ec535c8a7bcd
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:38 -07:00
Rebecca Schultz Zavin
444ab21ed8 media: video: tegra: Move tegra_isp to tegra_camera and add functionality
The tegra_camera device has been extended to include all clock and
regulator functionality needed by to support camera on tegra.

Change-Id: Ie1611a79c24f7ebe3ae570d38a9f470683af91dd
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:38 -07:00
Colin Cross
5b44d92a70 [ARM] tegra: stingray: Enable LP0 suspend
Change-Id: I263eee7206c7109cb766e3dbad991304a6ebc9ab
Signed-off-by: Colin Cross <ccross@google.com>
2010-10-06 16:33:38 -07:00
Rebecca Schultz Zavin
4be18d0597 [ARM] tegra: Specifiy regulator by device name in stingray board file
This change adds the ability to specify a regulator by device name
and modifies one consumer to use this functionality.

Change-Id: I7f4df5f60458717049c3a8abe52d7eb0b99dad89
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:38 -07:00
Rebecca Schultz Zavin
1a7b610467 [ARM] configs: Enable soc2030 2MP imager in stingray defconfig
Change-Id: I58f571c78a64adda4f70e7f3c87b3e3d218cc185
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:33:37 -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
Iliyan Malchev
55a9b7e2b4 [ARM] tegra: stingray: add mic2 and correct mic1 configuration
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 16:33:37 -07:00
Jaikumar Ganesh
2add71e998 [ARM] tegra: stingray: Add HID drivers.
Signed-off-by: Jaikumar Ganesh <jaikumar@google.com>
2010-10-06 16:33:37 -07:00
Greg Meiste
d7904f2cbb mfd: cpcap-whisper: Tweak to support real Whisper docks
The real Whisper basic dock behaves a bit different than the prototype.
Detection must be tweaked to properly detect the accessory when it is
plugged into the wall.

Change-Id: I7e2c4708b7c6642c3b58ebed199632be59804740
Signed-off-by: Greg Meiste <w30289@motorola.com>
Signed-off-by: Nick Pelly <npelly@google.com>
2010-10-06 16:33:36 -07:00
Greg Meiste
4078885fa3 mfd: cpcap-whisper: Update configuration for Whisper Smart
Smart Whisper accessories need a different configuration, so they are
now their own accessory

Change-Id: I16167a01ae3f3cdfd0c9765771459ff38cbc6b31
Signed-off-by: Greg Meiste <w30289@motorola.com>
Signed-off-by: Nick Pelly <npelly@google.com>
2010-10-06 16:33:36 -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
Dmitry Shmidt
7b39f695d8 mmc: sdhci-tegra: Set MMC_PM_KEEP_POWER flag in case of built-in device
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-10-06 16:33:36 -07:00
Mike Lockwood
525d29ca29 [ARM] tegra: stingray_defconfig: Enable CONFIG_FUSE_FS
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-10-06 16:33:36 -07:00
Erik Gilling
c9d9f5e92b video: tegra: unpin nvmap handles after flip
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:33:36 -07:00
Colin Cross
fec7a0ca5b [ARM] tegra: stingray: Configure SYS_RESTART_B gpio
Change-Id: I8ccdf18a0b34877a5689a968ad253b2eb7a7a4f3
Signed-off-by: Colin Cross <ccross@google.com>
2010-10-06 16:33:35 -07:00
Sergey Kudakov
9b6427fb24 leds: leds-lp8550: fix a typo in suspend/resume handlers
Change-Id: I1445b90b9f31ec69d8ec298cae68ed9d75fb5abd
Signed-off-by: Sergey Kudakov <sergey.kudakov@motorola.com>
2010-10-06 16:33:35 -07:00
Nick Pelly
35411c3fa3 mdm6600: Use pre-allocated, dma-coherent bulk buffer pool.
The generic bulk handlers use dynamic buffer allocation. This is likely
to be a performance issue.

Change-Id: I9a66131d500b6152d9af118d739f3a2f3dea97c9
Signed-off-by: Nick Pelly <npelly@google.com>
2010-10-06 16:33:35 -07:00
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