Commit Graph

212023 Commits

Author SHA1 Message Date
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
vhiremath
6deab08b98 ARM: tegra: nvrm: add MPE module to nvrm
Change-Id: Ib4465b2e92e1650905fbf2e01847410d60d631da
Signed-off-by: Dima Zavin <dima@android.com>
2010-10-06 16:51:42 -07:00
Erik Gilling
7a03e1433e video: tegra: update overlay stride in fb_set_par
Fixes recovery graphics

Change-Id: I68824dfcd29b40eaa27a8b5ee437e5763288a49e
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:51:40 -07:00
Erik Gilling
c9b24d28c2 [ARM] tegra: remove debug printing in stingray-panel early suspend/resume
Change-Id: I3a0d125456aa6e47dc28e05a925fc8d8133cdbe1
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:51:39 -07:00
Benoit Goby
6f18ffff10 [ARM] tegra: board-stingray: Enable BP wakeup gpio
Change-Id: I357a55c897b7335627f53ee450a16344ab6e3bb7
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:51:38 -07:00
Erik Gilling
4f49ce63b2 [ARM] tegra: add early_suspend/late resume hooks to stringay panel
Signed-off-by: Erik Gilling <konkers@android.com>
Change-Id: Id8c33f04fa776bdf846b97a01081c145005c9ad5
2010-10-06 16:51:37 -07:00
Iliyan Malchev
2ebdfc7eff [ARM] cpcap-audio-core: adjust cpcap register CPCAP_REG_CC (513) values
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 16:51:36 -07:00
Iliyan Malchev
ddde999f20 [ARM] cpcap-audio-core: set gains through cpcap_audio_set_audio_state()
Remove functions cpcap_set_volume() and cpcap_set_mic_volume() and instead set
the gains through cpcap_audio_set_audio_state(), which is the correct way to do
so.

Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 16:51:35 -07:00
Iliyan Malchev
96491d9767 [ARM] tegra: stingray: fix board_boot_mode_init() return value
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-06 16:51:34 -07:00
Erik Gilling
b72ee3bd9f video: tegra: add channel command fifo debugging support
Change-Id: Iaab4b04aec8feb61000e5423ea32811cca007444
Signed-off-by: Erik Gilling <konkers@dirtysouth.mtv.corp.google.com>
2010-10-06 16:51:33 -07:00
Benoit Goby
50e6eff5fb [ARM] tegra: board-stingray: Platform data for ehci devices
Change-Id: I8a0120d016ed5cf5b0080a86af6b324b1f3e9d1c
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:51:32 -07:00
Benoit Goby
41fe752bdb usb: otg: Copy usb1 platform data
Change-Id: I878339ab53cad1687c1022137f00ecc494b60b9e
Signed-off-by: Benoit Goby <benoit@android.com>
2010-10-06 16:51:31 -07:00
James Wylder
6a20fbc570 regulator: max8649: add support for max8649s and max8952
From a driver standpoint the max8649s and 8952 variants
for the max8649 differ only in the minimum and maximum
voltages.

Change-Id: Icc90af48a6c2d99577aa479218564d2ebee71e56
Signed-off-by: James Wylder <james.wylder@motorola.com>
2010-10-06 16:51:30 -07:00
makarand.karvekar
e6c0059b6f [ARM]: tegra: Enable noise suppression for touch in stingray board file
Firmware settings for noise suppression object.

Change-Id: I6da91da6b4d17d93cfb5b26f38bae76039a8c8f4
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:51:29 -07:00
Kazuhiro Ondo
6d02b486b3 misc: mdm6600_ctrl: Add query and control of BP status via sysfs.
The following sysfs nodes will be exposed.
/sys/class/radio/mdm6600/status (query BP status)
/sys/class/radio/mdm6600/power_status (query BP power status)
/sys/class/radio/mdm6600/command (To control BP status)

Change-Id: I4ed4b6d0d9df010713732e79f3a0598e09ad5dec
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-10-06 16:51:28 -07:00
Chien-Yu Chen
c3b9e22802 media: video: tegra: ov5650: fixing exposure blip
When changing mode, also program frame length, coarse time,
and gain so it can keep the same exposure value. Without this
API change, exposure time and gain will be reset to the default
values in the mode table and the image brightness may change
suddenly.

Change-Id: I82fe8a7d838a041b27af7dd6b9b3d27030318456
2010-10-06 16:51:27 -07:00
makarand.karvekar
acf1248b63 [ARM] tegra: stingray: defconfig: Disable CONFIG_INPUT_KEYRESET
Change-Id: I268b6c6e5f9e0cce55bdfb27111e72f7e5a3433f
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:51:26 -07:00
makarand.karvekar
61c28e0091 [ARM] tegra: stingray: remove legacy keys
removed all keys except vol-up and vol-down.
remove reset_keys_device

Change-Id: I16bf3c8f663373eb0fa225bb8904655e9ccc7632
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2010-10-06 16:51:25 -07:00
Sergey Kudakov
9ba6a6a0cb [ARM] tegra: stingray: enable usblan based on kernel command line
Change-Id: I819f2fc67fb76f618b6e3c25703d3a57c9f25043
Signed-off-by: Sergey Kudakov <sergey.kudakov@motorola.com>
2010-10-06 16:51:24 -07:00
John Michelau
a8f56f8e0d Enabled LTE DataCard driver
CONFIG_USB_USBNET
    CONFIG_USB_NET_CDCETHER

Change-Id: I474a309cba80115093ba86ecf414b2b31527430e
2010-10-06 16:51:23 -07:00
Greg Meiste
58dee8e83f mfd: cpcap-whisper: Fix defect introduced by I2c374a98
Fix issue where the ID Float interrupt may occur during the 200ms
where state is set to USB_POWER, causing the state machine to get
into a bad state.

Change-Id: I99e7b5de84f4b091c5b6e4f3e522876561603b61
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:51:22 -07:00
Antti Hatala
d1f8605b09 video: tegra: add multiple windows support to flip ioctl
Change-Id: I8521d1f6737e0972d8385e0ceecfc3a1bcae8550
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:51:21 -07:00
Erik Gilling
f55cfc3834 Revert "video: tegra: add multiple windows support to flip ioctl"
This reverts commit 09d367bee9da1b5ecd931dc1d26317707a8c4085.
2010-10-06 16:51:20 -07:00
Antti Hatala
e4dc6f8eda video: tegra: add multiple windows support to flip ioctl
Change-Id: I8521d1f6737e0972d8385e0ceecfc3a1bcae8550
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:51:19 -07:00
James Wylder
bfe2405cbe [ARM] tegra: stingray: boardfiles changes for mdm6600_ctrl
- give more meaningful names to ap-bp gpios,

Change-Id: I1a7eea918c15271b90fb09ce882eff1691a28c21
Signed-off-by: James Wylder <james.wylder@motorola.com>
2010-10-06 16:51:18 -07:00
James Wylder
d7eb4745b7 misc: mdm6600_ctrl: update shutdown to reset unresponsive modem.
- fix initialization of BP_PWRON (PS6), and BP_RESIN (PZ1) gpios,
    - cleanup kernel log messages,
    - assert BP_RESIN gpio to reset unresponsive modem.

Change-Id: Iaf6b7d553fec1a6e9254b7183c1beacf7ad4d555
Signed-off-by: James Wylder <james.wylder@motorola.com>
2010-10-06 16:51:17 -07:00
Greg Meiste
2e760aa5ab [ARM] tegra: stingray: Fix CPU DVFS
P0 and later models were changed to put the cpu_vdd regulator
in MODE 1, rather than the previous MODE 3 value. This caused
DVFS to appear to work but actually have no impact on the
cpu voltage.

In addition, when resuming from LP0, the CPU voltage must be
1.0v.  To guarantee this, the voltage needs to be set upon
entering suspend, so when the regulator is re-enabled, it is
the correct voltage before code begins executing.

Change-Id: I3580c832dbb4b5ce9ce7bd0089352a72b3b3869c
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:51:16 -07:00
Greg Meiste
12f6584327 regulator: max8649: Add support for suspend
With this change, the regulator framework can configure the regulator
for suspend if necessary.

Change-Id: Idf1fc085d7182368ae1bfdcc54cf3c8de0f93005
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:51:15 -07:00
Greg Meiste
4f544db43e [ARM] tegra: Setup regulators for suspend
The regulator framework may need to change certain regulators when
entering suspend.

Change-Id: I584e92b3c32cbd1a63325831822e2704a3dd2774
Signed-off-by: Greg Meiste <w30289@motorola.com>
2010-10-06 16:51:14 -07:00
Antti Hatala
edd4c87e4d [ARM] tegra: stingray: remove clock and powergate hacks
Remove unpowergating of 3d on board init to let the host1x driver
handle it.

Remove enabling hw module clocks on board init for modules behind
host1x.

Keep pll_m clock force-enabled for now as the pll clk disable code
path is not fully functional.

Change-Id: I4721d117b736a591b3cf3ee9f8967b88212f88b8
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-06 16:51:13 -07:00