7 years agoregulator: tps80031: Proper configuration for PREQ1 control
Laxman Dewangan [Thu, 13 Oct 2011 07:04:58 +0000]
regulator: tps80031: Proper configuration for PREQ1 control

When any rail is configured such that it can be enable by PREQ1
then only control the sleep mode of rails through TRANS register,
not the STATE register.
PREQ1 control the rail to switch from active to sleep and
sleep to active mode.

Reviewed-on: http://git-master/r/58278
(cherry picked from commit 6a8db3200c3119673b85769b1caa56422a22b4f9)

Change-Id: I9763a4d283f0171eb9b7755d44ca3b9059755033
Reviewed-on: http://git-master/r/59289
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R25d191b2429a5f60e77d70aed1eefecaa3b75ba3

7 years agomfd: richo583: Configure pins in gpio mode if used as gpio
Laxman Dewangan [Wed, 12 Oct 2011 15:49:51 +0000]
mfd: richo583: Configure pins in gpio mode if used as gpio

Configuring the pins in gpio mode when it is used as gpio.
Configuring the correct value of bits when setting the output value.

bug 822562

Reviewed-on: http://git-master/r/58276
(cherry picked from commit b854f309151342689b82bd653738eb94c87db4a4)

Change-Id: I7474d1771d83650db9be71db1f578fd0a50ad19d
Reviewed-on: http://git-master/r/59288
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: Rf0619d6a3d24059dab15c39c5800a5fd7ee6779b

7 years agoarm: tegra: cardhu: Support Fab A05
Laxman Dewangan [Tue, 27 Sep 2011 09:50:07 +0000]
arm: tegra: cardhu: Support Fab A05

Support for E1291-A05 board.

bug 881745

Reviewed-on: http://git-master/r/58053
(cherry picked from commit be104b795f0c46b8bbe1e45ca618fed74d81a7c6)

Change-Id: I0137f9e13ee9c01bd60125589b16023c899389c9
Reviewed-on: http://git-master/r/59287
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: R6450506e02427f4bae13857a52ed43dd530e720a

7 years agoarm: tegra: defconfig: support for ADT7461
Alexandre Courbot [Thu, 20 Oct 2011 05:53:51 +0000]
arm: tegra: defconfig: support for ADT7461

Enable support for ADT7461 thermo sensor, used in Whistler boards.

Bug 884322

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Change-Id: I3b69ea8bb2328419a7246f7978ac5b6154bde340
Reviewed-on: http://git-master/r/59264
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>

Rebase-Id: R071328b072562ace714e9092effda32585e478ad

7 years agomisc: nct1008: extended range enable sequence change
Bitan Biswas [Wed, 12 Oct 2011 12:41:06 +0000]
misc: nct1008: extended range enable sequence change

Extended range mode enable sequence for nct1008 updated as per
recommended steps

bug 869823

Reviewed-on: http://git-master/r/57552
(cherry picked from commit 75c6f5173cd4cfa3b0cf114cbbbf6ac1e355a09b)

Reviewed-on: http://git-master/r/58328
(cherry picked from commit 9f2c9004b4f30f9297ef3a7aa8def8a8000934b7)

Change-Id: Ic339d322450187f0ad417030d5da717fa5020592
Reviewed-on: http://git-master/r/59150
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Re46ba9dba83b3e12d6341f9afc913514a9a1031a

7 years agomisc: nct1008: debugfs support for reg dump
Bitan Biswas [Mon, 12 Sep 2011 19:56:09 +0000]
misc: nct1008: debugfs support for reg dump

Debugfs support added in nct1008 driver to enable register dump.

Reviewed-on: http://git-master/r/51856
(cherry picked from commit 4e7b8c8e1a7a43e4d745289fc9f20a11556eca96)

Reviewed-on: http://git-master/r/54992
(cherry picked from commit 5b512a6c63bd65375c9362057105f76a7ef97d4a)

Change-Id: Icf9607b12462146e3e046cfc10c3e89424142e5f
Reviewed-on: http://git-master/r/58598
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

Rebase-Id: R95221409d54694937ef226f01572b58c009a8361

7 years agousbnet: Fix data transfer issue for website browsing
pyu [Tue, 13 Sep 2011 07:41:19 +0000]
usbnet: Fix data transfer issue for website browsing

The parameter of NET_IP_ETHERTYPE needs to be configured correctly
for ethernet header and then can transfer data properly.

BUG 870395

Reviewed-on: http://git-master/r/51986
(cherry picked from commit 89bf27954e890e11a11ce45b12fcfce68ad0a45c)

Change-Id: I95c81b73072fe0c64b7cc7fcee0a2a6857969500
Reviewed-on: http://git-master/r/59103
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R512dbe7fc37c82dc158ca933ea78fd04b3366821

7 years agosdhci: Enable SDIO IRQ in sdhci_resume_host
Pavan Kunapuli [Thu, 13 Oct 2011 14:21:24 +0000]
sdhci: Enable SDIO IRQ in sdhci_resume_host

When MMC_PM_KEEP_POWER and MMC_CAP_SDIO_IRQ are
set, enable sdio irq in sdhci_resume_host as it
is overwritten in sdhci_init.

Bug 883715

Change-Id: Icbd433748f03383b8ea780ad953a092f984f03a0
Reviewed-on: http://git-master/r/57872
Tested-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R51bbf535ab8e66f5570c4c23274ed3365368bd35

7 years agosdhci: tegra: Add context restore support for SDIO
Pavan Kunapuli [Thu, 13 Oct 2011 14:17:14 +0000]
sdhci: tegra: Add context restore support for SDIO

Set MMC_CAP_SDIO_IRQ to use interrupts rather than
polling for SDIO function handling.
Set MMC_PM_KEEP_POWER for embedded SDIO devices.
Add controller reset and power on for devices with
MMC_PM_KEEP_POWER flag set.

Bug 883715

Change-Id: I35c98ba879b564752662f60365ee8a5e72d3a587
Reviewed-on: http://git-master/r/57869
Tested-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rc95d4035ea4569cf1742d5785efff7df7ffa2ade

7 years agoregulator: gpio_switch: Fix set_voltage to return selector value
Antti P Miettinen [Fri, 7 Oct 2011 12:18:26 +0000]
regulator: gpio_switch: Fix set_voltage to return selector value

Current regulator_ops interface expects selector value to be returned.
Not doing so results in uninitialized variables used.

Bug 886170

Change-Id: I5b7ca77badbd517f161f8c5c7a92fdf18e1ef7bb
Reviewed-on: http://git-master/r/56661
Reviewed-by: Antti Miettinen <amiettinen@nvidia.com>
Tested-by: Antti Miettinen <amiettinen@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R2b693750ff84e9f8dadd88a835bc06b66d0a3129

7 years agoARM: tegra2: clock: Update bus operations
Preetham Chandru [Thu, 8 Sep 2011 15:13:56 +0000]
ARM: tegra2: clock: Update bus operations

Relaxed bus set rate success condition: instead of checking for the
exact rate check for the closest rate. This makes bus clocks configurable
from sources/PLLs with variable frequencies.

Bug: 869054
Signed-off-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/50747
(cherry picked from commit 61313ed2494424513cb6e42c22cb7ca31f21473e)

Change-Id: Id4c9ff63da4cefb1d13888a627f0757a3b941994
Reviewed-on: http://git-master/r/56659
Tested-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Mursalin Akon <makon@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>

Rebase-Id: R57ac9f6cebe9df5e02dadac345653e2f3cf23e83

7 years agoregulator: tps80031: Fix set_voltage to return selector value
Antti P Miettinen [Fri, 7 Oct 2011 12:03:52 +0000]
regulator: tps80031: Fix set_voltage to return selector value

Current regulator_ops interface expects selector value to be returned.
Not doing so results in uninitialized variables used.

Bug 886170

Change-Id: I23e664790311e434303eb23fafd194502ae2909c
Reviewed-on: http://git-master/r/56654
Reviewed-by: Antti Miettinen <amiettinen@nvidia.com>
Tested-by: Antti Miettinen <amiettinen@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R72759360aeca354ef82d0ec7431e8c9f2fcafdfb

7 years agoregulator: tps6236x: Fix set_voltage to return selector value
Antti P Miettinen [Fri, 7 Oct 2011 11:14:54 +0000]
regulator: tps6236x: Fix set_voltage to return selector value

Current regulator_ops interface expects selector value to be returned.
Not doing so results in uninitialized variables used.

Bug 886170

Change-Id: I206117fbb1524e5c272e0c94bdaef3b605978717
Reviewed-on: http://git-master/r/56652
Reviewed-by: Antti Miettinen <amiettinen@nvidia.com>
Tested-by: Antti Miettinen <amiettinen@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R6015e7534c82212f3b28f7fe450e635f0274f80d

7 years agoregulator: tps6591x: Fix set_voltage to return selector value
Antti P Miettinen [Tue, 18 Oct 2011 15:24:25 +0000]
regulator: tps6591x: Fix set_voltage to return selector value

Current regulator_ops interface expects selector value to be returned.
Not doing so results in uninitialized variables used.

Bug 886170

Change-Id: I004ee168eb0f003eb71c36d5fcd6c8106a1fc054
Reviewed-on: http://git-master/r/56648
Reviewed-by: Antti Miettinen <amiettinen@nvidia.com>
Tested-by: Antti Miettinen <amiettinen@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R5fa05ad3dc7cda25b634efbf956ae99280bab40d

7 years agoarm: tegra: Make kernel buildable without nvhost
Terje Bergstrom [Thu, 6 Oct 2011 07:55:04 +0000]
arm: tegra: Make kernel buildable without nvhost

Cuts dependencies to nvhost by adding a Kconfig dependency from DC to
GRHOST and from HD Audio to DC. Configure out calls to nvhost in board
panel files if GRHOST is not present.

Bug 870898

Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>

Change-Id: If7830528e321e951bcadc2a10515e6cab58a6cdf
Reviewed-on: http://git-master/r/56370
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Antti Miettinen <amiettinen@nvidia.com>
Tested-by: Antti Miettinen <amiettinen@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Chris Dragan <kdragan@nvidia.com>

Rebase-Id: R16d9286d67235b0697c914476e7d6462eec7f3ac

7 years agompu3050: Motion Libraries: Eliminate long latencies during boot.
Robert Collins [Tue, 4 Oct 2011 21:04:28 +0000]
mpu3050: Motion Libraries: Eliminate long latencies during boot.

Bug 843573

Change-Id: Ib4422a7a836c14b0f84c0ae069faf6ba0664e784
Reviewed-on: http://git-master/r/56042
(cherry picked from commit cf9063c34b6fb4d50cb9c4cd57e579f3d993c228)
Reviewed-on: http://git-master/r/56043
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R7e449d759d37b3873b468def5ffa6dbdbf1d024e

7 years agoarm: tegra: cardhu: OV14810 sensor support
kdivvela [Fri, 30 Sep 2011 13:04:14 +0000]
arm: tegra: cardhu: OV14810 sensor support

Support for OV14810 sensor on cardhu

Bug 839441

Reviewed-on: http://git-master/r/51985
(cherry picked from commit f1aea025b145a884ac4cc507c86c647ca65e348f)

Change-Id: I9db882aab6f8ae89c4d463b9d6825e7c7cfd2928
Reviewed-on: http://git-master/r/58660
Reviewed-by: Krupal Divvela <kdivvela@nvidia.com>
Tested-by: Krupal Divvela <kdivvela@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R8f2a1692deba888e2d0476ea2159a1e36722cc63

7 years agomedia: video: tegra: OV14810 sensor support
kdivvela [Tue, 13 Sep 2011 08:58:18 +0000]
media: video: tegra: OV14810 sensor support

Support for OV14810 (14MP) sensor

Bug 839441

Reviewed-on: http://git-master/r/47714
(cherry picked from commit 2a9be1047fe93fba46c32edf60054261cc90970b)

Change-Id: Ib5c55c56017f4f18312c5b4fdc2c884857003f5f
Reviewed-on: http://git-master/r/58657
Reviewed-by: Krupal Divvela <kdivvela@nvidia.com>
Tested-by: Krupal Divvela <kdivvela@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Ra0bf2a7d2fdfff8303dcdb84b8655afce11a4a12

7 years agousb: host: tegra: Fix for possible race condition in timer handler
vjagadish [Mon, 17 Oct 2011 08:44:58 +0000]
usb: host: tegra: Fix for possible race condition in timer handler

Acquire the spin lock before disabling the clock.

Bug 876433

Change-Id: Iddb39761cb85e5f4c45061f3b2753d7b0fa64944
Reviewed-on: http://git-master/r/58343
Reviewed-by: Venkata Jagadish <vjagadish@nvidia.com>
Tested-by: Venkata Jagadish <vjagadish@nvidia.com>
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

Rebase-Id: Rda16e8bd08be58b6a3304b8cc3a7520417b341d4

7 years agoasoc: max98088: fix cache restore operation
Nikesh Oswal [Mon, 17 Oct 2011 15:45:26 +0000]
asoc: max98088: fix cache restore operation

Bug: 862023

Change-Id: I17352ed290b3f1e319dc8efd112bb6dfddc51f52
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/58416
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

Rebase-Id: Re6ec1485173c3504a13d760a25d34ccd571489e5

7 years agoarm: tegra: cardhu: change i2c pll src to pll_p
Alok Chauhan [Wed, 12 Oct 2011 09:01:04 +0000]
arm: tegra: cardhu: change i2c pll src to pll_p

Change the pll source of i2c from CLK_M to PLL_P_OUT0.

Bug 856468

Change-Id: I0865d0679fcc7ae2b862b9f68900275ab05da5ec
Reviewed-on: http://git-master/r/57505
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R04fd8dd082ad497a7ca7673f593fb4e309b3a2da

7 years agoSdhci: Disable host clk after all io ops are done
Pavan Kunapuli [Tue, 20 Sep 2011 09:23:11 +0000]
Sdhci: Disable host clk after all io ops are done

Disable host clk after all io operations are done.

Bug 871369

Change-Id: I99d7f3a71920c2e6238ae8a3d192fd4f68148373
Reviewed-on: http://git-master/r/53417
Tested-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R74b661881a06a407ef87327d4787f27e45f4ac39

7 years agomedia: video: tegra: update ov2710 1080p and 720p settings
Frank Chen [Tue, 27 Sep 2011 23:26:50 +0000]
media: video: tegra: update ov2710 1080p and 720p settings

Bug 833115

Change-Id: Iaca34334e0168ac04f795eccdfa76ba414848919
Reviewed-on: http://git-master/r/54825
(cherry picked from commit 00e146071f2c034f35f6ce564e08697b7ab2ed91)
Reviewed-on: http://git-master/r/57922
Reviewed-by: Yining Deng <ydeng@nvidia.com>
Tested-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Qi Wang <qiw@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Re8d5f67f7f983ad93c20c5d04ed06227c385e9b8

7 years agosdhci: tegra: Switch OFF/ON power rails in suspend/resume
Pavan Kunapuli [Thu, 13 Oct 2011 14:48:54 +0000]
sdhci: tegra: Switch OFF/ON power rails in suspend/resume

Switching OFF the sd power rails in suspend and switching
them ON in resume.

Change-Id: I5145e211111b8144f14ee0338388eeacb34bb003
Reviewed-on: http://git-master/r/57877
Tested-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

Rebase-Id: R527ae8de0561bfedd3afb2fce62ad4d2876575bc

7 years agocrypto: tegra-se: Adding runtime PM support
venu byravarasu [Thu, 13 Oct 2011 12:52:41 +0000]
crypto: tegra-se: Adding runtime PM support

bug 886813

Change-Id: Ia016c0f783b0396d8433b202ccef1659d10085f5
Reviewed-on: http://git-master/r/57850
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: R5a13865e200c1345bc30ab86b8d3286d47af5796

7 years agomisc: nct1008: driver clean up
Bitan Biswas [Fri, 7 Oct 2011 11:03:29 +0000]
misc: nct1008: driver clean up

nct1008 driver has been changed as follows:
 1. debugfs create file error check corrected.
 2. pr_err usage replaced with dev_err calls

Reviewed-on: http://git-master/r/56651
(cherry picked from commit 5b6c784d9caf4e0551361b3601711fc9641a4dba)

Reviewed-on: http://git-master/r/57358
(cherry picked from commit eadf4dae6c4e2cd1e4daa618f69605683faaa540)

Change-Id: Ib2f914822691ac7d03bb1b2235544aff5e7abee3
Reviewed-on: http://git-master/r/57876
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

Rebase-Id: Rbab698ab6544b8e275c19e51049d9f7ec586e471

7 years agoARM: tegra: power: Force FW bit when SMP is enabled.
Alex Frid [Tue, 11 Oct 2011 03:32:49 +0000]
ARM: tegra: power: Force FW bit when SMP is enabled.

Set FW bit in CP15 auxiliary control register after LP=>G CPU mode
switch if SMP bit in the same register is set. On Tegra3 in LP mode
FW bit is always zero, even though SMP bit is retained. Hence, this
change recovers FW bit on return from LP to G-mode.

Change-Id: I9f0021ab90866cb8686d73eb6ad5bbedbb2ceb90
Reviewed-on: http://git-master/r/57203
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Antti Miettinen <amiettinen@nvidia.com>
Tested-by: Antti Miettinen <amiettinen@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R37dbe2079eafcfb47babaf41b53818a9130d2bbe

7 years agoARM: tegra: power: Do not switch Tegra3 to PLLP
Alex Frid [Sat, 1 Oct 2011 01:38:59 +0000]
ARM: tegra: power: Do not switch Tegra3 to PLLP

Do not switch Tegra3 to PLLP on sleep entry: no need - unlike Tegra2
PLLX on Tegra3 is not disabled when CPU is rail gated; also G/LP mode
switch clock configuration is set by mode switch prolog and should not
be overwritten at the last moment.

Change-Id: I9aa8463c6b1c04c0a70e70c1e2cd4113a679e100
Reviewed-on: http://git-master/r/57202
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R9a8d78a363c261d45e48832fcbed7fa2854f7da8

7 years agoarm: tegra: defconfig: Enable rtc
Preetham Chandru [Wed, 12 Oct 2011 14:43:22 +0000]
arm: tegra: defconfig: Enable rtc

Enabled rtc support for tegra2 and tegra3

Bug: 879944
Change-Id: I7ad6d7bc15ab9c3afe5e106a29a5b1fdbc4c4635
Signed-off-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/56650
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R8dde247c270e9723ddf16fa12889dec764c75e9f

7 years agoarm: dma: Drop GFP_COMP for DMA memory allocations
Sumit Bhattacharya [Thu, 13 Oct 2011 11:50:47 +0000]
arm: dma:  Drop GFP_COMP for DMA memory allocations

dma_alloc_coherent wants to split pages after allocation in order to
reduce the memory footprint. This does not work well with GFP_COMP
pages, so drop this flag before allocation.

This patch is ported from arch/avr32
(commit 3611553ef985ef7c5863c8a94641738addd04cff).

Change-Id: I455cfdc7a2180b8d9d193da5fc8aaf70f8b94ee2
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/57854
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rff955dbdf67e8222f9640910124c5ed2eb600f5a

7 years agovideo: tegra: Add HDA clock management
Sumit Bhattacharya [Thu, 13 Oct 2011 10:42:38 +0000]
video: tegra: Add HDA clock management

Add code to manage HDA related clocks from HDMI driver. When no HDMI
device is connected to device HDA clocks are disabled to save power.
Whenever HDMI hot plug in happend HDMI driver needs to enable these
clocks before setting HDA presense bit so that HDA controller recieves
the interrupt.

Bug 862023

Change-Id: I975daa1621098eea2175244ce5774312bc396649
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/57846
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R35c55b5c492c15bb79c1b17e29fd6293f1764d3f

7 years agoarm: tegra: cardhu: Initialize gpio pins mode
Laxman Dewangan [Tue, 4 Oct 2011 12:58:57 +0000]
arm: tegra: cardhu: Initialize gpio pins mode

Initializing the pins which is used in gpio to their inital state.

bug 876305

Reviewed-on: http://git-master/r/57516
(cherry picked from commit 3f33cb777295669e71e291bb05651d3c6c4b37d5)

Change-Id: Ie05862e5184bb95c85cf7aa96ce2eca497c01c93
Reviewed-on: http://git-master/r/57817
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rfb5311f9499f9e7c191cdd4203c328d3b8b2c333

7 years agopower: tps80031-charger:Mechanism for getting charging status
Laxman Dewangan [Fri, 23 Sep 2011 12:38:54 +0000]
power: tps80031-charger:Mechanism for getting charging status

Adding api which provides the mechanism to getting charging status.

bug 872697

Reviewed-on: http://git-master/r/56625
(cherry picked from commit 4c271cf84923cd5ae9225f41a1a665b116cb974a)
Change-Id: Ibd88cbb568ac65f992a8142934017ed468268d72
Reviewed-on: http://git-master/r/57808
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: R45759b0f319acd29663aa1c23658f094caa6a06f

7 years agoarm: tegra: cardhu: Support for E1257
Laxman Dewangan [Fri, 9 Sep 2011 05:38:01 +0000]
arm: tegra: cardhu: Support for E1257

Adding support for E1257 platform.

bug 864294

Reviewed-on: http://git-master/r/50662
(cherry picked from commit 8217615021a6ffeb992327f6b010ea9deebc34e7)

Change-Id: I3429da1bca38e1ddc5b3c2156a0db6b23aeb5555
Reviewed-on: http://git-master/r/57806
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R7fadbdc30bdca30e41e0b7fdb88628dbc8c32e82

7 years agoarm: tegra: cardhu: Change for w_disable pin on E1198-A02
Laxman Dewangan [Wed, 24 Aug 2011 06:05:17 +0000]
arm: tegra: cardhu: Change for w_disable pin on E1198-A02

The w_disable pin is connected to different gpio in
E1198-A02 compare to E1198-A01. Making related changes
to support E1198-A02.

bug 864282

Reviewed-on: http://git-master/r/48877
(cherry picked from commit 009e0b9ccf776e658c27df59716cc1cce075ad31)
Change-Id: I85b7f0b10dd3549f07c48e71ffca1a304afc753d
Reviewed-on: http://git-master/r/57790
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rbf1f0f4775d536ba198f3c5a3ff3088c75d988fb

7 years agoarm: tegra: Avoid negative number parsing for debug port
Laxman Dewangan [Wed, 28 Sep 2011 09:12:49 +0000]
arm: tegra: Avoid negative number parsing for debug port

Avoiding negative number parsing for debug port id.

bug 854995

Reviewed-on: http://git-master/r/57328
(cherry picked from commit 81ce6594db0a2b9131e3a1317ef1f10e8310aad5)
Change-Id: I38e9e545c06a61b79d292c86dcbf8c595d2eddca
Reviewed-on: http://git-master/r/57787
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R2fe0b743db9f2b87f0a0715aeda12e7c00b041a7

7 years agoarm: tegra: Support for kernel command audio_codec
Laxman Dewangan [Sun, 18 Sep 2011 11:19:10 +0000]
arm: tegra: Support for kernel command audio_codec

Adding the handler to parse the kernel command "audio_codec".

bug 876544

Reviewed-on: http://git-master/r/56623
(cherry picked from commit b82c518354864c7dba03beea3c576edfab428efd)

Change-Id: Icb42164ea1276f4f5af941b8ba2f80076759af8b
Reviewed-on: http://git-master/r/57779
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: Rf3a0eed42103ef830c9697da42eb685fde6f6fe9

7 years agovideo: tegra: dc: ioctl for setting gamma lut
David Schalig [Thu, 13 Oct 2011 03:50:14 +0000]
video: tegra: dc: ioctl for setting gamma lut

- enable gamma look-up hardware only when needed to save power
- add flags field to ioctl TEGRA_DC_EXT_SET_LUT for forward compatibility

Bug 868060

Change-Id: I690f8b8856e0b1acd6215907ca8bd78ecaf30b17
Reviewed-on: http://git-master/r/57736
Reviewed-by: David Schalig <dschalig@nvidia.com>
Tested-by: David Schalig <dschalig@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Robert Morell <rmorell@nvidia.com>

Rebase-Id: Rf6081a9372ba7d6e53a66b9b58a50a62ad409d9a

7 years agovideo: tegra: host: Check for allocation failures
Terje Bergstrom [Thu, 22 Sep 2011 12:37:17 +0000]
video: tegra: host: Check for allocation failures

Adds checks for memory allocation failures, and proper propagation
of error conditions. Adds clearing of pointers after free or unpin
has been called to catch use after free.

Bug 877551

Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/54027
Reviewed-by: Antti Miettinen <amiettinen@nvidia.com>
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Gerrit_Virtual_Submit
(cherry picked from commit bfbf2766d11a5f85781532ddce3a87b7ae762ba3)
Change-Id: I04171ee5db6a42bb1689221d4f80d5f3d35e7399
Reviewed-on: http://git-master/r/57462

Rebase-Id: Rc9f43312c8b818869d746f4b73700d8b56e4569d

7 years agoi2c: tegra: slave: Fix i2c transmit/receive issues
Chaitanya Bandi [Thu, 13 Oct 2011 13:41:19 +0000]
i2c: tegra: slave: Fix i2c transmit/receive issues

Fixed the following issues in i2c slave driver:
1) Driver was failing to receive large data
2) Driver was receiving only eight bytes in a loop
3) Incorrect arguments while calling readl

Change-Id: I5ffe76b800a24270845aced0df30a69d9625f557
Reviewed-on: http://git-master/r/57218
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bandi Krishna Chaitanya <bandik@nvidia.com>
Tested-by: Bandi Krishna Chaitanya <bandik@nvidia.com>

Rebase-Id: Rc262503e24baad814f7175c88f9fa8a6671c34b9

7 years agousb: host: tegra: Configurable USB hotplug
Artiste Hsu [Tue, 27 Sep 2011 01:47:32 +0000]
usb: host: tegra: Configurable USB hotplug

Hotplug on usb is supported when hotplug flag is set in platform data

Bug 869745

(cherry picked from commit I57ba0b18a2d4232b2df2074c91aff97c6e639e7d)
Reviewed-on: http://git-master/r/54588

Change-Id: I24e5ddf49cead14d3eebe30da0f92402015c95c7
Reviewed-on: http://git-master/r/57725
Tested-by: Artiste Hsu <chhsu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rdf4296a0b0e04733832b8b60b347a3da9cc67413

7 years agoi2c: fix crash when there is no regulator
Jihoon Bang [Sat, 1 Oct 2011 00:22:55 +0000]
i2c: fix crash when there is no regulator

Calling regulator_disable causes system to crash when there
is no regualtor. It calls regulator_disable only when regulators
exist.

Bug 871860

Reviewed-on: http://git-master/r/55603
(cherry picked from commit 042e786e9766c891b44b8e00aa05f4c42b724440)

Reviewed-on: http://git-master/r/56237
(cherry picked from commit 9607d33bfcb84f764935ea911b93e716018ab818)

Change-Id: I06cfaeedcbdf276c3a17a759d410c7b46de8e9b1
Reviewed-on: http://git-master/r/57416
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Tested-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Rb146536a30b5e0c1f06a1622e77248aa539617a8

7 years agoi2c: add regulators to PCA954x
Jihoon Bang [Wed, 12 Oct 2011 00:15:30 +0000]
i2c: add regulators to PCA954x

Add regulators to PCA954x in case PCA954x is controlled
by programmable PMIC. Add two Vcc. One is for PCA954x itself
and the other is for I2C bus.

Bug 871860
Reviewed-on: http://git-master/r/54745
(cherry picked from commit 7beddf4e72024e6f140ed306e80a7e1d19d7f36b)

Reviewed-on: http://git-master/r/55800
(cherry picked from commit 57138283d20301658ffe904577a72e9ea95b053e)

Change-Id: Ic98f33d2b8b324b7539d9b5b000a5591c5f7f742
Reviewed-on: http://git-master/r/57415
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Tested-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R9ece556f76ca88bfb74ceae1e6d520956c1b7d0a

7 years agoarm: tegra: enterprise: add I2C mux driver instance
Jihoon Bang [Tue, 27 Sep 2011 18:23:55 +0000]
arm: tegra: enterprise: add I2C mux driver instance

Add I2C mux driver instance to support two rear sensors.
Add new GPIO pin to control reset for I2C mux.
If board doesn't have I2C mux, it falls back to previous I2C tree.

Bug 871860

Reviewed-on: http://git-master/r/54763
(cherry picked from commit c53f8fc9d5d05427684aafb4ad6552eb6cff7ff7)

Reviewed-on: http://git-master/r/55799
(cherry picked from commit c5fe68c1b4b1ed1e283526c8ac057efb3a2af5af)

Change-Id: I40a35cbd301e53a8d70700043142d5cac0655b5c
Reviewed-on: http://git-master/r/57414
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Tested-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Re59baf9b13c653c366f992913622d1a46c8aecde

7 years agoARM: tegra[3]: config: Add advanced IP options
Mursalin Akon [Mon, 10 Oct 2011 22:48:06 +0000]
ARM: tegra[3]: config: Add advanced IP options

Add advanced IP options, such as Multicast, ip filter, etc.

Bug 876711, 876553

Change-Id: I5dd811078f115ea8db3b37f2896c2d1b5f6bcf0e
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/57153
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R1f5f69fc568010fd3a48c5e68bb7f9be3e694a66

7 years agoARM: tegra[3]: config: Enable some debugging features
Mursalin Akon [Mon, 10 Oct 2011 19:14:36 +0000]
ARM: tegra[3]: config: Enable some debugging features

Bug 876711, 876553

Change-Id: I64ecbc40659ab5c2e639e8f09f8453ea39ff7054
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/57152
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Raa20f4186b3e4877bd591116056dfef1ceafa464

7 years agonvhost: Wait for CDMA to end before freeing channel
Terje Bergstrom [Wed, 5 Oct 2011 12:18:20 +0000]
nvhost: Wait for CDMA to end before freeing channel

Wait for CDMA to become idle before freeing resources associated with a
channel.

Bug 877665

Change-Id: I1a25f98ba8620202d349a4c6af38fa0e20839751
Reviewed-on: http://git-master/r/56653
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Gerrit_Virtual_Submit
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Antti Miettinen <amiettinen@nvidia.com>
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: R6a00d31d4bd91f7875671af8b183a2ceac1fc242

7 years agoarm: tegra: pm: issue a pl310 cache sync for tegra2
Mayuresh Kulkarni [Thu, 15 Sep 2011 09:26:10 +0000]
arm: tegra: pm: issue a pl310 cache sync for tegra2

this needs to be done when the lp2 is aborted before the
stipulated programmed time to wake-up

for bug 867094

Change-Id: I02102ed8afa69d782de5950118352e80edc79df4
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/52581
Reviewed-by: Jin Qian <jqian@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: R5938771982b7cceb9ea23ee73852ca8b9b3490ae

7 years agoARM: tegra: Fix file permissions
Scott Williams [Wed, 12 Oct 2011 01:11:01 +0000]
ARM: tegra: Fix file permissions

Change-Id: I4668077a85d82e08db0fee537712a2e4b949007a
Reviewed-on: http://git-master/r/57426
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: R04eea53de492e784958a1c386d78646406f4d957

7 years agohwmon: tegra: tsensor: coefficient update
Bitan Biswas [Wed, 7 Sep 2011 15:30:14 +0000]
hwmon: tegra: tsensor: coefficient update

m, n and p coefficients updated for fuse revision 21 and beyond.
- code cleanup done. fixed checkpatch warnings.

bug 842208

Reviewed-on: http://git-master/r/53808
(cherry picked from commit 488785f279a5642fffde3d48d62c77f46a20b63a)

Reviewed-on: http://git-master/r/55026
(cherry picked from commit 49a5b4cf51ed43e2a9d25a2603e84ed835446832)

Change-Id: I83db5a746d5960c799fbf09e2334ecc608c44d39
Reviewed-on: http://git-master/r/57367
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

Rebase-Id: R49c36a57132c60260e1ab9d9f2aa68bf3602c962

7 years agomisc: nct1008: error handling change
Bitan Biswas [Mon, 12 Sep 2011 19:41:16 +0000]
misc: nct1008: error handling change

Error handling in the driver was not correctly done earlier. Changes
done are as follows:
- error returned stored in int data type instead of u8 or s8
- few places error was not checked, added the checks needed.

Reviewed-on: http://git-master/r/51855
(cherry picked from commit c8e014fa9d8a7cad2d78d91fad8fe056b4ea0714)

Reviewed-on: http://git-master/r/54990
(cherry picked from commit 8f9f4a8e72998fef8bea9aa00e9ac136920f8dc0)

Change-Id: Id6da54e8d6d39d47962fa8e74ac91934788267fa
Reviewed-on: http://git-master/r/57365
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

Rebase-Id: R2fd8ef10485da58395e352974384e3f20e913d38

7 years agomedia: video: nvavp: Add ioctl to set/get clock rate
Prashant Gaikwad [Tue, 27 Sep 2011 12:14:54 +0000]
media: video: nvavp: Add ioctl to set/get clock rate

These ioctls provides interface to user space for
VDE/AVP/EMC clock rate anagement. This helps to save power.

Bug 876405

Change-Id: Ic36cd78bf78a3c04dac49dd4b3040542130bc855
Reviewed-on: http://git-master/r/54697
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

Rebase-Id: Rcd1d8e536641d109c7e1db7ccaf3a8e54a169acc

7 years agoarm: tegra: gpio: API to configure pins as gpio with init value
Laxman Dewangan [Fri, 30 Sep 2011 10:44:27 +0000]
arm: tegra: gpio: API to configure pins as gpio with init value

Adding api to configure pins in gpio mode with init value before
gpio library is up. This will provide to configure the pins in
initial state and avoid any glitch in pins.

bug 876305

Reviewed-on: http://git-master/r/56630
(cherry picked from commit 9e357b69d25f96c13acb660860bcdf8e0ab0a1ef)

Change-Id: Ia14721c0bf96e1a45561139fdbbf2d995b9a4963
Reviewed-on: http://git-master/r/57265
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rc775d23898a6275d633e4474e6cf9b10395697e2

7 years agoarm: tegra: Add handle for kernel option power_supply
Laxman Dewangan [Sun, 4 Sep 2011 11:40:13 +0000]
arm: tegra: Add handle for kernel option power_supply

Adding the handler function for the kernel command line
option "power_supply".

Reviewed-on: http://git-master/r/50674
(cherry picked from commit 8d9e6bbe59ab68f44a4713f5d1bcc7877baf8180)

Change-Id: I07796b6ee5893d73ac7557e81aac5d26b299c491
Reviewed-on: http://git-master/r/57262
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rd64bf314bcdfe3f7bdbcdee946ed261bfce5938f

7 years agoarm: tegra: cardhu: Set LDO2 to 1200mV for E1208-A04
Laxman Dewangan [Wed, 28 Sep 2011 17:13:30 +0000]
arm: tegra: cardhu: Set LDO2 to 1200mV for E1208-A04

bug 875709

Reviewed-on: http://git-master/r/56632
(cherry picked from commit b7077b25dfaa7c92c5f05f50688d26710eb57348)

Change-Id: I46b0bd4d939e5ffbce9599ad2c437a7d424b1d87
Reviewed-on: http://git-master/r/57258
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rb192b1590af659143cf62938ce5ab468526216ee

7 years agoarm: tegra: cardhu: pm269: Remove SDMMC1_VDD control
Laxman Dewangan [Mon, 26 Sep 2011 12:49:49 +0000]
arm: tegra: cardhu: pm269: Remove SDMMC1_VDD control

The SDMMC_VDD control is generated from the cpld programming
for pm269 and so it is not require to have gpio control for this.

bug  880984

Reviewed-on: http://git-master/r/56627
(cherry picked from commit 38ad9be02578b64d3f5eab8c6146abfc6c842d35)
Change-Id: Id7cae7a724c02754b3abbc937a7e80b9a51d7977
Reviewed-on: http://git-master/r/57254
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R34a8cb39a5c557461ebbb540692487d357798eca

7 years agoarm: tegra: cardhu: Support for PM311
Laxman Dewangan [Wed, 31 Aug 2011 06:16:43 +0000]
arm: tegra: cardhu: Support for PM311

Adding support for PM311 based system.

bug 870139

Reviewed-on: http://git-master/r/50012
(cherry picked from commit d319d9980b6b225735ac97160fdee18fbabba2f0)

Change-Id: Iaa28921761e035e8fa29956b776f9379ae326b42
Reviewed-on: http://git-master/r/57251
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R50fc9a079bd46a050084afed2b0f460e2916ebc9

7 years agoarm: tegra: enterpeise: add debounce time in codec platform data
Nikesh Oswal [Fri, 7 Oct 2011 07:19:54 +0000]
arm: tegra: enterpeise: add debounce time in codec platform data

Bug: 862023

Change-Id: I3163c5560b9ca37f627eca477b267056e04ba4ab
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/56576
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Ra7c5aab6e023d7a8d086883e359993cb87a66464

7 years agoarm: tegra: Remove T30 SPDIF DMA resource info
Sumit Bhattacharya [Tue, 4 Oct 2011 12:02:36 +0000]
arm: tegra: Remove T30 SPDIF DMA resource info

Bug 872652

Change-Id: Iaea76918169f3270f865122f824f60678c419b50
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/55970
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R70b9408e1c66c97a63a9408dda43aacd369c3178

7 years agoasoc: max98088: add control to enable/disable digital mic
Nikesh Oswal [Mon, 3 Oct 2011 05:41:33 +0000]
asoc: max98088: add control to enable/disable digital mic

Bug: 862023

Change-Id: I1784a813ad8ef224f0587ba977518c2940b66e01
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/55674
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R960030914089aa1eefcbb0d8ac2eda28c8095785

7 years agoASoC: Tegra: WM8903: Support speaker and dmic
Sumit Bhattacharya [Sun, 2 Oct 2011 23:23:58 +0000]
ASoC: Tegra: WM8903: Support speaker and dmic

Complete DAPM route map for cardhu and ventana. Expose more alsa
controls to facilitate codec routing. Properly handle speaker,
internal mic and external mic routing events.

Bug 872652

Change-Id: I4620d08ade1f455a4075d9822fcfd5e34474133f
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/55669
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R42bcced2737f035bb1888fac064ee20fa6371143

7 years agoarm: tegra: Specify dev name for audio regulators
Sumit Bhattacharya [Sun, 2 Oct 2011 21:46:22 +0000]
arm: tegra: Specify dev name for audio regulators

Specify device names for ventana and cardhu speaker and digital mic
regulators. Also use same regulator name for ventana and cardhu
speaker supply.

Bug 872652

Change-Id: I5a254eee2037c86e208818f34cdff24aee0edad9
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/55668
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R81411e5e595ec1d9e700d08410a9d3e49f24cbee

7 years agoarm: tegra: Pass WM8903 gpio configuration
Sumit Bhattacharya [Sun, 2 Oct 2011 08:57:55 +0000]
arm: tegra: Pass WM8903 gpio configuration

On cardhu and ventana WM8903 GPIO1 is used for digital mic lrclk
output and GPIO2 is used for digital mic data input. Pass corresponding
WM8903 gpio configuration through platform data to enable cardhu and
ventana digital mic support.

Bug 872652

Change-Id: I410265f1b4f9a8c5e43e5437ed6bac4122709178
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/55654
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rb47b7afe17013d4a0d5d73a15ba19c12dab0efbf

7 years agoregulator: tps6591x: Optimize voltage change using cache
Laxman Dewangan [Mon, 12 Sep 2011 07:58:12 +0000]
regulator: tps6591x: Optimize voltage change using cache

Optimizing the time require to change the voltage by using the
register caching.

bug 870689

Reviewed-on: http://git-master/r/51754
(cherry picked from commit cb2676e3e25f3a6134f38ecb0e3dfe9e7a1f4fd4)

Change-Id: I771d6d0ebad60d05381af07cc791f5ad8b4426fd
Reviewed-on: http://git-master/r/55643
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: R89993e38c00a6e1dc0f482bd6319830548b90118

7 years agoasoc: max98088: disable the irq when entering suspend
Nikesh Oswal [Fri, 30 Sep 2011 12:23:00 +0000]
asoc: max98088: disable the irq when entering suspend

Bug: 862023
Change-Id: Ibaa3ffbb9e81736e45c2bccb0d6e1828cde4025b
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/55474
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rf4af409992ad20aa854736727df5060ce82435ed

7 years agoasoc: tegra: max98088: add jack and switch notifier code
Nikesh Oswal [Fri, 30 Sep 2011 12:00:34 +0000]
asoc: tegra: max98088: add jack and switch notifier code

Bug: 862023

Change-Id: I0302091654c5394733264712269be4fe0aefa39a
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/55466
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R3c915a05a2f6bc90ff24d9ee6625dcadd92f93e8

7 years agoasoc: max98088: add headset/headphone detection code
Nikesh Oswal [Fri, 30 Sep 2011 11:57:08 +0000]
asoc: max98088: add headset/headphone detection code

Bug: 862023

Change-Id: Ieb9247cef5feecf3e241d8980f9c4376cadf2965
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/55465
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: Rf725fad369dbbe4d5f6eaa7b667170a127fa0a08

7 years agotegra: harmony: KBC support for chicony keyboard
Ramalingam C [Tue, 11 Oct 2011 08:58:55 +0000]
tegra: harmony: KBC support for chicony keyboard

This change includes the keymapping details for chicony keyboard and registers
the platform_device called "tegra-kbc" with all board resources corresponding
to KBC.

Change-Id: I4222914f09520b60882a447fc149fd1c352be037
Signed-off-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-on: http://git-master/r/57233
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

Rebase-Id: Rb233d2e2065fa590a6e776eb81ba205efc45442b

7 years agoARM: tegra: dvfs: Add T30V SKU definition
Alex Frid [Tue, 6 Sep 2011 19:07:01 +0000]
ARM: tegra: dvfs: Add T30V SKU definition

Bug 872025

(cherry picked from commit d71aae19a06b591312703d146c9a9adf9f7e729b)

Change-Id: If1c0e3b22079b00b9cabfc1e9f4e5c4c5d206f5b
Reviewed-on: http://git-master/r/57214
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R955c084556968ce77450817b993a79aab801ea83

7 years agoARM: tegra: dvfs: Update Tegra3 speedo thresholds
Alex Frid [Tue, 6 Sep 2011 18:58:28 +0000]
ARM: tegra: dvfs: Update Tegra3 speedo thresholds

Bug 817679

(cherry picked from commit 86acefef882428c6cad6b761521f74b054adba24)

Change-Id: I992c9682fd6bcc9984968f56da661f76a04edecd
Reviewed-on: http://git-master/r/57213
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: Ra6cc62a4c7da079e18d09809973741af430ae8f9

7 years agoarm: tegra: defconfig: Enable USB storage & SCSI
Preetham Chandru [Tue, 11 Oct 2011 17:24:29 +0000]
arm: tegra: defconfig: Enable USB storage & SCSI

Enabled USB storage & SCSI support

Bug: 879944
Signed-off-by: Preetham Chandru <pchandru@nvidia.com>
Change-Id: Ifda0c387dd5fab1c4d48c7ab23abab7f3736200b
Reviewed-on: http://git-master/r/56227
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R0d7d681af41d8df2549b2eecc1437cc978f71ed8

7 years agoARM: tegra[3]: config: Enable NLSs
Mursalin Akon [Mon, 10 Oct 2011 22:52:09 +0000]
ARM: tegra[3]: config: Enable NLSs

Bug 876711, 876553

Change-Id: I7c221f5162411285e9c2c811670ba5c9010fa676
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/57154
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R9a39fec8a43b6cc3b94ddb3920a1cd933e9a2569

7 years agoarm: mm: change_page_attr support
Vinod Rex [Fri, 7 Oct 2011 18:30:35 +0000]
arm: mm: change_page_attr support

bug 865816

Adapted from x86 change_page_attr() implementation

Change-Id: I398c9d460b841484de4fcfcac10ffffdf49a4a5a
Reviewed-on: http://git-master/r/56769
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>

Rebase-Id: Rddeccf358c948ba84af52316f084814ae53dca5e

7 years agoarm: tegra: enable l2 cache data prefetch
Anshul Jain [Fri, 7 Oct 2011 00:43:21 +0000]
arm: tegra: enable l2 cache data prefetch

Bug 874120

Change-Id: I17a1cc0d8f018246e5c7a99e01c2ab8d78e102ea
Reviewed-on: http://git-master/r/56520
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rc9af15a0993dd6c9147e464d227e7446ed5a86a0

7 years agovideo: tegra: dc: revert d3408e77 for WIN_IS_ENABLED
Sachin Nikam [Wed, 5 Oct 2011 13:05:49 +0000]
video: tegra: dc: revert d3408e77 for WIN_IS_ENABLED

Revert d3408e77 partailly which was causing NULL pointer derefence on
HDMI hotplug in WIN_IS_ENABLED.

Bug 881945

Change-Id: I2aa5757a9c4d4d7d010544941e4a05a7ba4db5f7
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/56218
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R8a1ee743deca53371073b9d622d4cc171d739443

7 years agoasoc: tegra: wm8753: add jack notifier code
Nikesh Oswal [Mon, 10 Oct 2011 14:31:12 +0000]
asoc: tegra: wm8753: add jack notifier code

Bug: 862023

Change-Id: I1429549d5fd0d365075ca798430ab7a9274b0aa9
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/57052
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R22a1d25c0bb04f0fbd26b6305b2a90a66508740a

7 years agoasoc: tegra: wm8753: correct dapm map and route entries
Nikesh Oswal [Mon, 10 Oct 2011 14:25:54 +0000]
asoc: tegra: wm8753: correct dapm map and route entries

Bug: 862023

Change-Id: I8e7e1ad90e0a38bd3380d1b4c3cabd6751906288
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/57050
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R6e5a92f713a6efd6539857ec0e0dea8881ca6553

7 years agoasoc: wm8753: add headphone detection code
Nikesh Oswal [Mon, 10 Oct 2011 12:10:54 +0000]
asoc: wm8753: add headphone detection code

Bug: 862023

Change-Id: I26789c9e5bc7ebd51f086a3be650186d8e541519
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/57035
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: Rfe45465b2369c8cbb864233e33ff70367a5a1e2d

7 years agoarm: tegra: whistler: add headphone debouncetime and irq
Nikesh Oswal [Mon, 10 Oct 2011 12:06:28 +0000]
arm: tegra: whistler: add headphone debouncetime and irq

add entries for headphone detection irq and debouncetime in
whistler specific board files

Bug: 862023

Change-Id: Ia72ec10f51a1bde0f81eb488b36a8b1439cedf1d
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/57034
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Re6e96dcd5467b14054784fd6c59bd2a8c64781c0

7 years agoARM: tegra[3]: config: enable misc MMC options
Mursalin Akon [Sat, 8 Oct 2011 00:52:33 +0000]
ARM: tegra[3]: config: enable misc MMC options

Enable MMC SDIO, deferred resume and paranoid SD

Bug 876711, 876553

Change-Id: Ica05f5b30860f1814f54ce48ecd5b0d0235225d5
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/56830
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R5358adb23bd7c69f01925aa35aa191a2ebc87231

7 years agoARM: tegra[3]: config: Enable Sys V IPC
Mursalin Akon [Sat, 8 Oct 2011 00:43:45 +0000]
ARM: tegra[3]: config: Enable Sys V IPC

Enable Sys V IPC

Bug 876711, 876553

Change-Id: Icaa7c5ad619998e4868eab4a00d24d9fc332dedd
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/56829
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R118301f982b8cfdf04525f88fb9481aed9be2d98

7 years agoASoC: Tegra: SPDIF: Set 2x spdif_out clock for T30
Sumit Bhattacharya [Thu, 29 Sep 2011 07:14:31 +0000]
ASoC: Tegra: SPDIF: Set 2x spdif_out clock for T30

It is a WAR to have better audio quality for HDMI audio over SPDIF.

Bug 872652

Change-Id: I896589fd60980c155fae5900618734e1912b4a38
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/55143
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Tested-by: Gerrit_Virtual_Submit

Rebase-Id: Re1fbe68f78d561aea3f7d1f0492086ae0deea742

7 years agoASoC: Tegra: Modifiy I2s and AHUB clock management
Sumit Bhattacharya [Wed, 28 Sep 2011 16:48:46 +0000]
ASoC: Tegra: Modifiy I2s and AHUB clock management

Remove redundant ref counting for I2s and AHUB clocks.
For Tegra30 enable AHUB clocks before I2s registers are accessed.
Disable clocks when they are not in use.

Bug 872652

Change-Id: I7ec4e45cecd0391d0b5a2765214d6c03fa5cc339
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/55005
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Gerrit_Virtual_Submit

Rebase-Id: R886c4a1a472c6b68240f2899a0b0be94c7ac9966

7 years agoASoC: Tegra: Enable SPDIF DAI for Tegra30
Sumit Bhattacharya [Wed, 28 Sep 2011 15:01:23 +0000]
ASoC: Tegra: Enable SPDIF DAI for Tegra30

Bug 872652

Change-Id: Ia35ba728859bcba1bff1ce73c622203d027bc8f9
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/54989
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Gerrit_Virtual_Submit

Rebase-Id: Rd23d694c056cefb76669c510b1367128255f3835

7 years agoarch: arm: Enable SPDIF driver for Tegra30
Sumit Bhattacharya [Wed, 28 Sep 2011 12:29:22 +0000]
arch: arm: Enable SPDIF driver for Tegra30

Bug 872652

Change-Id: Ic170dc2fc86f74d9e67d3b73a6f83368597dafcb
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/54975
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R96e76083f2cf154be6c450aff9005a0057bf5cb4

7 years agoASoC: Tegra: SPDIF: Set audio sample rate to HDMI
Sumit Bhattacharya [Wed, 28 Sep 2011 11:43:55 +0000]
ASoC: Tegra: SPDIF: Set audio sample rate to HDMI

Set Audio Samplerate and source information to HDMI driver so that
it can configure HDMI registers accordingly.

Bug 872652

Change-Id: Ifdbf9a1d192a870d99846e936c6c215ee999473d
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/54972
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Gerrit_Virtual_Submit

Rebase-Id: Rec9f21701c5178208597024817f5751652528993

7 years agoASoC: Tegra: Spdif: Add Tegra30 spdif driver
Sumit Bhattacharya [Wed, 28 Sep 2011 11:31:14 +0000]
ASoC: Tegra: Spdif: Add Tegra30 spdif driver

Bug 872652

Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>

Change-Id: I2c5006a68d590b9215db056a614566b926287fda
Reviewed-on: http://git-master/r/54954
Tested-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Gerrit_Virtual_Submit

Rebase-Id: R89c166fa6563318dcbb0ca6e25f7dcce6db3c134

7 years agoARM: tegra[3]: config: Enable runtime PM
Mursalin Akon [Fri, 7 Oct 2011 23:54:22 +0000]
ARM: tegra[3]: config: Enable runtime PM

Enable runtime PM

Bug 876711, 876553

Change-Id: I62cad79b2160dec7b8d54301ae139baed55e90dc
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/56827
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: Ra9d9bafea2f272ee7592b0739377d9bec8f25319

7 years agoarm: tegra: issue a warning message per run
Liang Cheng [Fri, 7 Oct 2011 17:55:39 +0000]
arm: tegra: issue a warning message per run

A large trunk of warning message and stack trace storms kmesg
when a very small sample quantum is supplied. This eventually
causes the system unresponsive.

This change fixes this issue by warning once per run.

Bug 886286

Change-Id: I7cfeeb1358eb05bc7ef3f40bc73f621d3e4ac2bf
Reviewed-on: http://git-master/r/56740
Tested-by: Liang Cheng (SW) <licheng@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Ra45756d1879407d876a41a6af7ed2f7ed314f9f7

7 years agoarm: tegra: harmony: Add Regulators & config PMC interrupt
Preetham Chandru [Wed, 5 Oct 2011 13:24:25 +0000]
arm: tegra: harmony: Add Regulators & config PMC interrupt

Added regulators and configured the PMC interrupt polarity to low.

Bug: 879944
Change-Id: I94bc2cb78c311cc7fe9c713592b49ecfe4cf8176
Signed-off-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/56226
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>

Rebase-Id: R730736f5290a25346afdc23fd8fb2fa94083add4

7 years agopower: bq27x00: Remove extra CYCLE_COUNT
Dan Willemsen [Tue, 18 Oct 2011 21:33:48 +0000]
power: bq27x00: Remove extra CYCLE_COUNT

CYCLE_COUNT was added upstream in 3.0

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Rebase-Id: R5d0decc5408671c59c11f3367a8a2a9bfa6d8583

7 years agokernel: Add ioctl constants for audio test framework
Rahul Mittal [Wed, 5 Oct 2011 13:19:41 +0000]
kernel: Add ioctl constants for audio test framework

Added some ioctl constants required for audio test framework use cases
like DAM mixing and APBIF channel validation

Change-Id: Icc536fbb2cfd28f89ac760cd67b24e5a46892d7d
Reviewed-on: http://git-master/r/56222
Tested-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: Re03b618eb7923447c13d0732641be8a2bf80e75f

7 years agoarm: tegra: parse kernel command line for debug port id
Laxman Dewangan [Thu, 8 Sep 2011 14:06:17 +0000]
arm: tegra: parse kernel command line for debug port id

Parsing the linux command line for the debug port id.

bug 795847

Reviewed-on: http://git-master/r/51370
(cherry picked from commit f988c97564f9ecf4b78f4e935e2cfc4ca1b6db0e)

Change-Id: Ib1bbdd9f671ab4c22cffdf379d3b9fd79a5a8736
Reviewed-on: http://git-master/r/57042
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

Rebase-Id: R8b31dafaa124fb7e99d219bb464703b5696da0ff

7 years agoarm: tegra: cardhu: Set pwr_i2c speed to 400KHz
Laxman Dewangan [Thu, 8 Sep 2011 08:45:30 +0000]
arm: tegra: cardhu: Set pwr_i2c speed to 400KHz

bug 870689

Reviewed-on: http://git-master/r/51292
(cherry picked from commit f66aaace70f4327a8612913a8d5e2cb967dcdad6)
Change-Id: I1f8ac2b323b9bb135312dba2f333fb9d5ce3d44b
Reviewed-on: http://git-master/r/57026
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: Rac27549cbe8fcca75cb1734de24d066ae787c835

7 years agospi: tegra: Handles suspend when spi transfer is in progress
Laxman Dewangan [Tue, 13 Sep 2011 12:57:55 +0000]
spi: tegra: Handles suspend when spi transfer is in progress

Avoiding the suspend of the system if the spi transfer is
in progress for current transfer queue.

bug 864987

Reviewed-on: http://git-master/r/56599
(cherry picked from commit 0ba8ed371f2937a095752a0edbc15ed75664644a)
Change-Id: Ife7ae8a7d66a66d047ee2c8829d16017571b4d58
Reviewed-on: http://git-master/r/57001
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: Rc66d6c7ae51ea6709d5e47331fef30c87029b343

7 years agoARM:tegra:enterprise: Configure I_MDM_RST as input.
Frederic Bossy [Thu, 15 Sep 2011 09:55:07 +0000]
ARM:tegra:enterprise: Configure I_MDM_RST as input.

I_MDM_RST (gpio33) is connected to PMIC VMON_OUT.
It shouldn't be driven high, only low when reset is performed.
Modem reset relies on power cycle (PON low->high) today.

Bug 866051

Reviewed-on: http://git-master/r/52593
(cherry picked from commit d1800dacc1d106ef81b3b4ef98d6dbc7c8b723b4)

Reviewed-on: http://git-master/r/56575
(cherry picked from commit b76e5af29d838025946e57655603181fbd414c74)

Change-Id: Ieab0a8bc6b1818cc39cdd1a5563c5fee4bf5ed65
Reviewed-on: http://git-master/r/56957
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Frederic Bossy <fbossy@nvidia.com>

Rebase-Id: R0ee7d598d02448ee1376ad852126cd41598a9d2f

7 years agoregulator: tps80031: Optimize voltage change by register cache
Laxman Dewangan [Wed, 14 Sep 2011 11:17:50 +0000]
regulator: tps80031: Optimize voltage change by register cache

Using the register caching for optimizing the update of pmu register
through i2c. In this way, the frequent read of pmu register is
avoided.

bug 870689

Reviewed-on: http://git-master/r/56617
(cherry picked from commit 59426b56710e06b075769b4eb73723c3dcf28710)
Change-Id: I9fc339587c8c5c82443bb99489992d608fd3534e
Reviewed-on: http://git-master/r/56872
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: Reb0312eaaa88f9b082c540b752663089964ffee8

7 years agovideo: tegra: dc: disable windows on dc disable
Jon Mayo [Thu, 1 Sep 2011 01:01:45 +0000]
video: tegra: dc: disable windows on dc disable

When disabling a display, also disable its windows. This forces
applications to resend windows on hotplug and resume or they will see a
blank screen.

Bug 871107

Reviewed-on: http://git-master/r/50204
(cherry picked from commit 969fe6f1a6b5e28cf6de75937fd100c73e6a99b4)

Change-Id: I7c1fc3f45fab3d839794b7955409af8ca04bef2d
Reviewed-on: http://git-master/r/56504
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rcea75fc63222079f7db4cae95b4952aaee9a2d0d

7 years agoregulator: tps6591x: Take care of voltage slew rate
Laxman Dewangan [Thu, 8 Sep 2011 10:55:15 +0000]
regulator: tps6591x: Take care of voltage slew rate

Adding delays in set_voltage to stablize the voltage as per
voltage slew rate when changing the voltage.

bug 872382

Reviewed-on: http://git-master/r/51324
(cherry picked from commit 2aae0d2db5959b16ca73d53b4543e62ebc5c3c88)
Change-Id: Ia8ad81281dc78e121c7d701055235c490e731d09
Reviewed-on: http://git-master/r/55642
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R53948e9aa72d1dd303a4011fc2b43229df92c6b7

7 years agovideo: tegra: dc: add ioctl for setting gamma lut
David Schalig [Thu, 6 Oct 2011 11:24:07 +0000]
video: tegra: dc: add ioctl for setting gamma lut

Adds ioctl TEGRA_DC_EXT_SET_LUT to dc_ext driver for setting
a DC window's color palette.

Bug 868060

Change-Id: I57ffcf3a3f91e76efd1c7f1f972b73c2edbaed82
Reviewed-on: http://git-master/r/56392
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: R712c71151d0c3e3d274279f334bedf312e26e75d