7 years agomfd: ricoh583: Update with new IRQ API
Laxman Dewangan [Tue, 8 Nov 2011 12:23:55 +0000]
mfd: ricoh583: Update with new IRQ API

Using new IRQ apis.

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

Rebase-Id: Rc1be7da663c58c0093ab7c10f396968ad087e19f

7 years agoARM: Tegra: Power: use new api to get cpu regulator max_curr
Diwakar Tundlam [Thu, 20 Oct 2011 23:43:56 +0000]
ARM: Tegra: Power: use new api to get cpu regulator max_curr

used when the chip SKU is T33/T33S (cardhu case) or AP33 (enterprise case) to
initialize edp with a higher cpu regulator max_curr value.

bug 888679

Change-Id: Icb50b33b1fc9b1248886e040f4b9b927feee4242
(cherry picked from commit ea572ebf71bbced17f2df2313f03e032949fac68)
Reviewed-on: http://git-master/r/64210
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: R248e17bf5ab3541dac91815b3cabd0d1dfab8a13

7 years agovideo: tegra: dc: Skip DIDIM update if DC is disabled.
Kevin Huang [Wed, 9 Nov 2011 20:46:43 +0000]
video: tegra: dc: Skip DIDIM update if DC is disabled.

Bug 895717

Reviewed-on: http://git-master/r/63688
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
(cherry picked from commit 8463b51f4279d36074439cdae2c08fc106d34745)

Change-Id: I3d68fffe73a01c65698f1a2fb209a6a5447df618
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/64230
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

Rebase-Id: R64eed28c6990da199213f63c6a08305753117efe

7 years agoARM: tegra: dvfs: Update Tegra3 AP33 speedo thresholds
Diwakar Tundlam [Tue, 1 Nov 2011 22:21:04 +0000]
ARM: tegra: dvfs: Update Tegra3 AP33 speedo thresholds

bugid 841336

Reviewed-on: http://git-master/r/62768
(cherry picked from commit 3784f31955117064d84868f8ade148ceffa32c3d)

Change-Id: Ic1759b2a18aa960f46767538c0fb7860cd40e422
Reviewed-on: http://git-master/r/64214
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

Rebase-Id: R8bff7144287bcbe526de3343e1a5b6fd628e8c7c

7 years agoARM: Tegra: dvfs: T33 SKU EDP table
Diwakar Tundlam [Fri, 12 Aug 2011 00:22:57 +0000]
ARM: Tegra: dvfs: T33 SKU EDP table

Bug 841336

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

Change-Id: Ib1eeb8729a91162d39fc952eeb7494d8863a03c7
Reviewed-on: http://git-master/r/64204
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

Rebase-Id: Rcfa5f6c11e831c4f08e956609ea8f9d98a6111f8

7 years agoarm: tegra: cardhu: Put LDO7/8 to OFF in sleep state
Laxman Dewangan [Fri, 28 Oct 2011 13:30:55 +0000]
arm: tegra: cardhu: Put LDO7/8 to OFF in sleep state

Putting the LDO7 and LDO8 to OFF in sleep state.

bug 892613

Reviewed-on: http://git-master/r/63500
(cherry picked from commit 52897937e5c30cd7e0e6c096f166936a0d396a4f)

Change-Id: Ie51594f739e5e581dec17733550ebd4e8d28e040
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/64046
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: R58fc9d4c16f990658da18822505d0d9dbe7a31a5

7 years agomfd: tps80031: Move external pwr req to core driver
Laxman Dewangan [Tue, 8 Nov 2011 06:06:02 +0000]
mfd: tps80031: Move external pwr req to core driver

Moving the configuration function for configuring the
rail control through the PREQ line to core from regulator
driver.

Fixing the correct voltage configuration for the LDO2 based
on TRACK mode.

Reviewed-on: http://git-master/r/63503
(cherry picked from commit 9190130f6cf1ba0bae3231321841ebe4ad94a54e)

Change-Id: I7dd511da7f809a44b1e66706054c0a4c57c36323
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/64055

Rebase-Id: R433728b4c83ccaf6f3ae2734412a90d9c89b6a2c

7 years agoarm: tegra: enterprise: Pass ext power req control properly
Laxman Dewangan [Mon, 7 Nov 2011 06:49:47 +0000]
arm: tegra: enterprise: Pass ext power req control properly

Passing the external power request control information for rails
through ext_pwr_req.

Reviewed-on: http://git-master/r/63502
(cherry picked from commit 04c6af6a1b0d600acf3e7effe54ca403d713d572)

Change-Id: I109e6fa23f4794bb154197f67302642ed7aee755
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/64054

Rebase-Id: R17cfc8523a708fe2a7d4477e7c07bd0f21832c23

7 years agobq20z75: check for battery status update on resume
Pritesh Raithatha [Mon, 14 Nov 2011 06:56:26 +0000]
bq20z75: check for battery status update on resume

Bug 877456

Change-Id: Ie276daa13feb6702791fab36f7fa88c3811ed3bb
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/64030
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

Rebase-Id: R2a2430d7ae7c1a4262682bd4e537b519d055f98a

7 years agoarm: tegra: cardhu: correct supplied_to battery driver name
Pritesh Raithatha [Mon, 14 Nov 2011 09:47:39 +0000]
arm: tegra: cardhu: correct supplied_to battery driver name

supplied_to battery driver name is used to link charger
 driver with battery driver. Using that upon
 power_supply_changed() of charger, external_power_changed()
 of battery driver get called.

Bug 872590

Change-Id: Ib80c1770a5a519d21430b3fad5759a848f5db1f3
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/64078
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rced3500a496746d8186f44e2948a37f6b1cb66b8

7 years agoarm: tegra: power: add TEGRA_THERMAL_SYSFS option
Joshua Primero [Tue, 4 Oct 2011 00:43:53 +0000]
arm: tegra: power: add TEGRA_THERMAL_SYSFS option

Added option to enable the use of the Linux Thermal
Sysfs infrastructure within the tegra thermal
framework.

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

Rebase-Id: Rbb6b3261fbdf2aa997f47eb254634fc6eff3ffb9

7 years agovideo: tegra: host: Insert pattern to context save in T20
Terje Bergstrom [Thu, 10 Nov 2011 12:47:32 +0000]
video: tegra: host: Insert pattern to context save in T20

T30 code inserts a pattern to context save buffer to be able to know how
far we've gone in context save. This patch implements the same pattern
in T20.

Reviewed-on: http://git-master/r/63582
(cherry picked from commit 55108ab6ab9f5e7be91df19fe0b01afcb0a6919e)
Change-Id: Idebfd53496d6edd512a9c95f8a9c8e1c2eaaf4fc
Reviewed-on: http://git-master/r/64116
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R921b61fdffae105f9fed70b5b36781624c233574

7 years agomfd: ricoh583: Move sleep configuration to core driver
Laxman Dewangan [Mon, 7 Nov 2011 05:56:26 +0000]
mfd: ricoh583: Move sleep configuration to core driver

Moving the sleep sequence configuration for the pmu from
regulator driver to core driver so that other than power rails,
gpio can also use these APIs.

Reviewed-on: http://git-master/r/62901
(cherry picked from commit 7c2817b42785302c3d9a779c817f70163fabee71)

Change-Id: I9b8584cfd507b34596eee41e9ea799df76c26e5f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/64098

Rebase-Id: R5a6aead9fdda64bf26c0d59a17f794177e82b640

7 years agoarm: tegra: cardhu: pm299: Controls cpu power through PWRREQ2
Laxman Dewangan [Mon, 7 Nov 2011 06:26:09 +0000]
arm: tegra: cardhu: pm299: Controls cpu power through PWRREQ2

Controlling cpu power through external power request PWRREQ2.

Reviewed-on: http://git-master/r/62896
(cherry picked from commit a49db43178ed94f0f7081b18ba89bbeb7e6188b6)

Change-Id: Ie982c4839b336e5d560edd19a55c0e10589bca3f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/64095

Rebase-Id: R6521e88cf1c1854d8b8acd2d5a4990b1a7c03a60

7 years agovideo: tegra: host: Reset modules at boot-up
Terje Bergstrom [Mon, 14 Nov 2011 08:34:54 +0000]
video: tegra: host: Reset modules at boot-up

tegra_unpowergate_partition() either turns partition on, or resets
partition if the power is already on. do_unpowergate() avoided calling
tegra_unpowergate_partition() if power is already on. Some modules
require a reset at boot-up, so now we call tegra_unpowergate_partition()
even when the module is already powered.

Bug 901335

Change-Id: Ia1ae49d5ddc626204aa405521d5178bdde6079eb
Reviewed-on: http://git-master/r/64052
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: Rdeabf4280e10b06f1da655db1ff63e6f6bd0ea72

7 years agovideo: tegra: host: Sync 3D wait base only on timeout
Terje Bergstrom [Mon, 7 Nov 2011 07:02:54 +0000]
video: tegra: host: Sync 3D wait base only on timeout

Synchronize 3D wait base only when there is a timeout.

Bug 886411

Reviewed-on: http://git-master/r/62656
(cherry picked from commit 1f660b9ea615331624dcf8a923e7779fa3bcd48a)

Conflicts:

drivers/video/tegra/host/t30/channel_t30.c

Change-Id: I667dd628902906cdae983d314b0df96e39843fad
Reviewed-on: http://git-master/r/64021
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rcc6e21a4c01a55cfab5b44c4d4bc6557a810c95e

7 years agoARM: tegra: whistler: enable LP0 suspend/resume
Joshua Cha [Mon, 14 Nov 2011 01:56:06 +0000]
ARM: tegra: whistler: enable LP0 suspend/resume

To enable LP0 suspend/resume operation of whistler ref b'd,
we set combined_req flag.

Bug 862504

Change-Id: I3f146b1bd656bc653463b60a64c0b99324670581
Reviewed-on: http://git-master/r/64012
Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rb45382cce05229d1b62e7fd172e882b912d0b3f3

7 years agoARM: tegra: power: add combined power req processing
Joshua Cha [Mon, 14 Nov 2011 01:37:31 +0000]
ARM: tegra: power: add combined power req processing

For platforms where the core & CPU power requests are combined
as a single request to the PMU, we need separate processing to
enable its suspend/resume operation.

Bug 862504

Change-Id: If66282a7b069d35568147e2d64f14371e1692bfd
Reviewed-on: http://git-master/r/64011
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: R21b966a438be03b11b80ce7deb70e3036b80dab2

7 years agoASoC: Tegra: Don't allow PLL rate change while it is in use
Sumit Bhattacharya [Fri, 11 Nov 2011 13:31:19 +0000]
ASoC: Tegra: Don't allow PLL rate change while it is in use

Expose a new API to lock pll_a, pll_a_out0 and mclk rates. Any dai-link
which sets any of these clocks should call this API from hwparam() to
lock these rates and should release the lock once dai-link shutdown
is called. When lock is held by any dai-link request for change in any
of these clocks will not be granted.

Bug 872652

Change-Id: I583b4849acde7e588531e60c6c5cd5156badb4f2
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/63828
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: R044806997c82a11115a6a110196ac82402aceca5

7 years agoarm: tegra: power: Add throttle as a cooling dev
Joshua Primero [Tue, 4 Oct 2011 00:34:55 +0000]
arm: tegra: power: Add throttle as a cooling dev

Added cooling device hooks into the throttling module
to be used with the linux thermal sysfs infrastructure.

Reviewed-on: http://git-master/r/59470
(cherry picked from commit a7d0c2d23ae32cd074dc667f1ace6083273b1870)

Change-Id: I8ca4d94d838a00ea7c10423ab120329bf1b2343f
Reviewed-on: http://git-master/r/62573
Reviewed-by: Joshua Primero <jprimero@nvidia.com>
Tested-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

Rebase-Id: R1bb4b36226f8a7c13166162feabeced9a1d469ee

7 years agomedia: video: tegra: Powergate vi, csi and isp
Bhushan Rayrikar [Tue, 30 Aug 2011 21:36:12 +0000]
media: video: tegra: Powergate vi, csi and isp

Add powergating for vi, csi and isp in tegra_camera

Bug 855758

Reviewed-on: http://git-master/r/49923
(cherry picked from commit ea930f4477408724dea95d9c2f6d612e0e3d11a4)

Change-Id: I67a9be5322c3d9fa4a372c1e4338843277086dfe
Reviewed-on: http://git-master/r/60278
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Tested-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Ruicheng Dai <rdai@nvidia.com>
Tested-by: Ruicheng Dai <rdai@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R4319a27f885e83efdc2cfcfe8c195d1ac0cc4643

7 years agousb: tegra2: set emc clock to 300MHz for usb
Joshua Cha [Fri, 11 Nov 2011 06:31:39 +0000]
usb: tegra2: set emc clock to 300MHz for usb

EMC clock has been set to MAX if USB is enabled.
At that time, core voltage is also MAX.
To save power, EMC clock is set to 300MHz to use 150MHz DDR clock.

Change-Id: I17fb2a0ccdfecb6f308a64174bf43a20bd8ef5ac
Reviewed-on: http://git-master/r/64007
Tested-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rd6f2f56958e161294792e4466f403bc0c035ac71

7 years agoarm: tegra: enable pll_m_out1
Pritesh Raithatha [Fri, 11 Nov 2011 11:22:11 +0000]
arm: tegra: enable pll_m_out1

Bug 900931

Change-Id: I588e7075eda668c9b2a1d1ff9b4fa7cf3dc3531f
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/63814
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R151b9f0931ea7b32c06b8de4f23b22be1f6d4a2e

7 years agortc: max77663: Update driver for alarm interrupt
Min-wuk Lee [Fri, 4 Nov 2011 07:54:42 +0000]
rtc: max77663: Update driver for alarm interrupt

Updated rtc-max77663 driver for alarm interrupt.
- Enable alarm for sec, min, hour, mday, month and year except wday,
  because sometimes wday value is not matched with requested alarm time.
- Set alarm to wake-up event from sleep mode.
- Add max77663_rtc_irq_mask and max77663_rtc_irq_unmask functions.
- Fix incorrected wday calculation.
- Clean-up the codes.

Bug 849360

Original Author: Jinyoung Park

Reviewed-on: http://git-master/r/60655
(cherry picked from commit 80acd66deffa20a391e5324fc9038b7fab42d08d)

Change-Id: Ibd637eac7f94ebc920873c652f7776072e2832d1
Reviewed-on: http://git-master/r/62380
Reviewed-on: http://git-master/r/63763
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
Tested-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rfc8fb0c75d7514a4f0aeca69e9478a0d6572fa99

7 years agomfd: max77663: Set sleep enable bit before enter into suspend
Min-wuk Lee [Fri, 4 Nov 2011 07:51:27 +0000]
mfd: max77663: Set sleep enable bit before enter into suspend

The sleep enable is required that AP can be placed MAX77663 into sleep mode
by pulling EN1 input low.

Bug 849360

Original Author : Jinyoung Park

Reviewed-on: http://git-master/r/59477
(cherry picked from commit 469106a1f8cf8d080f06ae0d2e8d0b2aa4bf3e4b)

Reviewed-on: http://git-master/r/62378
(cherry picked from commit 42c8b2466ead1a9382b87d9753afad7d3d7b9b72)

Change-Id: Id205c691bf629c080a533e5d38ef2f3823d35703
Reviewed-on: http://git-master/r/63758
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
Tested-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rbab33031a6556f229a0bf6aef57f906a95152340

7 years agoregulator: max77663: Add safe voltage scaling step
Min-wuk Lee [Fri, 4 Nov 2011 07:46:24 +0000]
regulator: max77663: Add safe voltage scaling step

The MAX77663 PMU has under-shooting issue when voltage down scaling
on SD power rails until revision 3. So if revision is less than rev3,
set safe_down_uV for stable down scaling.

Original Author: Jinyoung Park

Reviewed-on: http://git-master/r/56950
(cherry picked from commit b685f87ea655919e0bf0efb3a1bdddf5d1a3abbb)

Reviewed-on: http://git-master/r/62376
(cherry picked from commit de2370747b224f38ac2fd87402a60e058db28b68)

Change-Id: Icf864c869775490ea0465aae23505ae7333fa80c
Reviewed-on: http://git-master/r/63757
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
Tested-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R9ebf2c4e6fbec3b3c8ec065b119fdc2c64f37cb0

7 years agoARM: Tegra: Avoid regulator info in pdata
Krishna Yarlagadda [Tue, 6 Sep 2011 09:03:26 +0000]
ARM: Tegra: Avoid regulator info in pdata

USB charger regulator info is sent through platform data
Regulator power rails do not change and hence need to be
constant and should be defined in driver file directly.

Bug 869211

Change-Id: Icf5a10968ac4207a1f9b846b714b765f78d807ac
Reviewed-on: http://git-master/r/50805
Reviewed-on: http://git-master/r/62018
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Tested-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

Rebase-Id: R102ae1f4baab37e0fe3c648a2b1fde02f34d4e45

7 years agoASoC: tegra: Support Tegra20 mono playback/capture
Sumit Bhattacharya [Wed, 2 Nov 2011 22:05:02 +0000]
ASoC: tegra: Support Tegra20 mono playback/capture

Add support for Tegra20 mono playback/capture. Mono is only supported
using DSP mode.
Also reduce minimum period bytes limit to 128 to have an acceptable
latency value for 8kHz-mono playback/capture.

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

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

Rebase-Id: R06beebb87c426eb010f1fb28aa521af25d51e2a7

7 years agovideo: tegra: dsi: Add support for DCS short write (1 parameter)
Ming Wong [Fri, 14 Oct 2011 19:29:20 +0000]
video: tegra: dsi: Add support for DCS short write (1 parameter)

Add MIPI DCS short write (1 parameter) support.
The cmds sent with this new function will be sent every frame by hardware

Bug 884157

Reviewed-on: http://git-master/r/58180
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
(cherry picked from commit df4679db62b164e33e82fe56a18787cfca431d82)
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
[jmayo@nvidia.com: cleaned up formatting]
Change-Id: Ia2b54c070c91bbb4ba59741c0c5c23dae8f71ce8
Reviewed-on: http://git-master/r/63413
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: R965eb64babd304bd66f2c057721a9dd1eedb17ca

7 years agomedia: video: tegra: Prevent sleep when cam open
peter mikolajczyk [Wed, 9 Nov 2011 22:19:06 +0000]
media: video: tegra: Prevent sleep when cam open

Adding a check for camera open in order to prevent
driver from allowing the system to go to sleep.

Application layers must release camera before
suspend is called

bug 870768

Reviewed-on: http://git-master/r/#change,60307
(cherry picked from commit I5df86a22e46af724fd2cf4d8a0440350cbd4aba2)

Change-Id: I36e8d7c3b8b8002fc195e8f6bb0e0a228a397c2d
Reviewed-on: http://git-master/r/63384
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: R35ad971920f255e1427dbb87e8c76375971a9c9a

7 years agovideo: tegra: dc: ignore unused overlays for bandwidth
Joel Kenny [Wed, 12 Oct 2011 22:15:41 +0000]
video: tegra: dc: ignore unused overlays for bandwidth

If an overlay is not being used, do not program the latency allowance.

This is to avoid underflows that occur at a resolution of 19x12.  When the
unused overlays are reenabled, they underflow if the latency allowance has
previously been increased to a very high value.

Change-Id: Id381a74f5cc602d47199cb42d17f77b1086de70e
Reviewed-on: http://git-master/r/58195
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Joel Kenny <jkenny@nvidia.com>
Tested-by: Joel Kenny <jkenny@nvidia.com>
Tested-by: Gerrit_Virtual_Submit
(cherry picked from commit cbc4e10451137a972ef694d7698c7dab26017377)

Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Change-Id: Id7101997db77e54861ef1045df5eccdfa4ee09eb
Reviewed-on: http://git-master/r/64065
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: R8338a8bee51d297d66d8e0708f91627d202269ec

7 years agovideo: tegra: dsi: use mask to control interrupts
Xin Xie [Fri, 14 Oct 2011 19:37:36 +0000]
video: tegra: dsi: use mask to control interrupts

This patch is based on "video: tegra: dc: use mask to control
interrupts", so we do not use DC_CMD_INT_ENABLE to disable IRQ.

Bug 888207
Bug 870801

Reviewed-on: http://git-master/r/58176
(cherry picked from commit 6feaad5a74a934f604f5d25220afff478c43736d)
Change-Id: I2d7f8575c7d88fa89eb18c88e09cef62228353e8
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
[jmayo@nvidia.com: fixed conflicts]
Reviewed-on: http://git-master/r/63371

Rebase-Id: R31808eb1648f8634cc183f0d92c763999909d10d

7 years agovideo: tegra: dc: use mask to control interrupts
Jon Mayo [Wed, 12 Oct 2011 18:29:49 +0000]
video: tegra: dc: use mask to control interrupts

Use the enable irq register during init, and mask irq register to
control the interrupts to avoid a race in clearing interrupt status.
Clear mask and enable during DC disable.

Bug 888207
Bug 870801

Reviewed-on: http://git-master/r/57603
(cherry picked from commit 4640498bd8d46b6c5c1898d8ca8c9760416d1eae)
Change-Id: I8d93746533da5021919cc4152a467adc6889c4c6
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/63370
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: Ra3d62939458871c4c1cc09fe6010922cc95e4a1c

7 years agoarm: tegra: cardhu: Register ricoh583 pmu driver
Laxman Dewangan [Tue, 8 Nov 2011 10:54:13 +0000]
arm: tegra: cardhu: Register ricoh583 pmu driver

Registering the ricoh583 pmu driver.

Change-Id: I3547522d661852826185e50b6958234a04ca0b4b
Reviewed-on: http://git-master/r/62948
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: R458057614dd9db4aeb34d37de20c6753e78b3e51

7 years agoarm: tegra: cardhu: pm299: Onkey support
Laxman Dewangan [Mon, 31 Oct 2011 10:08:20 +0000]
arm: tegra: cardhu: pm299: Onkey support

Enabling the onkey for pm299 based system. This
will be used to wakeup/suspend the system.

Reviewed-on: http://git-master/r/61901
(cherry picked from commit e86410259e234d0c6ab9acdab7ab0e0fa36309ca)

Change-Id: I48c1e8ad44fa1a991b357e924baf9e0b3ba74563
Reviewed-on: http://git-master/r/62914
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: R075c1d69a70af7d4b90a61315ed1b025528fce61

7 years agoArm: Tegra: Cardhu: Set slew rise/fall rates properly
Pavan Kunapuli [Wed, 14 Sep 2011 13:40:53 +0000]
Arm: Tegra: Cardhu: Set slew rise/fall rates properly

Setting the slewrise and slewfall rates properly.

Bug 811303

Reviewed-on: http://git-master/r/52367
(cherry picked from commit 337b90b5a359c4f320f58f5026fa511dca5d8031)

Change-Id: I518b4dcdad8ac338cf03d4fb6c634b0747a82836
Reviewed-on: http://git-master/r/62326
(cherry picked from commit 7a04424fb0b8c1f36f28c99f73a313cd192360e9)
Reviewed-on: http://git-master/r/63813
Tested-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: Racfd777be42f83018a9e295e1c7048ebb02f7f9e

7 years agovideo: tegra: host: Enhance FIFO/GATHER debug_dump
Terje Bergstrom [Fri, 4 Nov 2011 12:00:13 +0000]
video: tegra: host: Enhance FIFO/GATHER debug_dump

Enhance nvhost_debug_dump() output, as follows:

- Swap FIFO and GATHER dump so that even if GATHER dump blows out
  seq_printf 1k buffer, we still have FIFO information;
- Write FIFO signature pattern (0xd???d???) to indirect save input
  data to help pinpoint FIFO position within debug dumps;
- Prevent long data sequences from blowing out the seq_printf 1k
  buffer, by limiting such sequences to 64 words.

Change-Id: I83f6118f8af14a6c46fd1080c03b718a7a3bc66c
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/62424
(cherry picked from commit cb37e4212b78546411b33b32044f30feb0579b86)
Reviewed-on: http://git-master/r/63788
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R39329ae8eb252ced3da604e4f33c272e26921d27

7 years agovideo:fix buffer overflow in nvsd_lut_store
Colin Patrick McCabe [Thu, 10 Nov 2011 00:45:59 +0000]
video:fix buffer overflow in nvsd_lut_store

Change-Id: Iecd4b7a950c2276c2281d19a8a554b15c3dc0d16
Signed-off-by: Colin Patrick McCabe <cmccabe@nvidia.com>
Reviewed-on: http://git-master/r/63676
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

Rebase-Id: Rdbc1fd6cb524b2578be33b3a9147b4078c849290

7 years agohwmon: tegra-tsensor: minor cleanup
Colin Patrick McCabe [Thu, 3 Nov 2011 23:21:15 +0000]
hwmon: tegra-tsensor: minor cleanup

* when outputting to sysfs, we only have to worry about not overflowing
a single page in memory.

* don't use strcat

* avoid passing data between functions by mutating global strings

Change-Id: I8914a9ee282c63a4259c1bcaf9e550328a5664ec
Signed-off-by: Colin Patrick McCabe <cmccabe@nvidia.com>
Reviewed-on: http://git-master/r/63672
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: Rd3426d0c534a846624a4d55be851a88c67ba6d67

7 years agovideo: tegra: dc: Use FRAME_END_INT to mark completion of frame end.
Kevin Huang [Thu, 15 Sep 2011 18:57:19 +0000]
video: tegra: dc: Use FRAME_END_INT to mark completion of frame end.

V_BLANK_INT was used to mark frame end for other tasks. However, it occurs
at frame start. Switch to FRAME_END_INT to mark the end of frame.

Bug 875448

Reviewed-on: http://git-master/r/52694
(cherry picked from commit 078a2688c67c46cf840f191405cd4324cb9c4574)
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
[jmayo@nvidia.com: wrapped commit message, fixed bug in S_TO_MS()]

Change-Id: I507148772c2f3037befd30289e5b3a56fe417ee9
Reviewed-on: http://git-master/r/63369
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>

Rebase-Id: R5dbcf2d7ff3fd627194ae1a6163a300e6e48ff7c

7 years agovideo: tegra: ov9726: follow linux convention
Charlie Huang [Thu, 1 Sep 2011 02:17:19 +0000]
video: tegra: ov9726: follow linux convention

move the set mode table from odm driver to the kernel driver.

Bug 856739
Original Gerrit: http://git-master/r/#change,60741
(cherry picked from commit 18e2d9f8b61767a4dc0df7621531d1b040fe3ca0)

Change-Id: I22fd3e012c3f91a0c7cd07a00ae25987b4cb75dd
Reviewed-on: http://git-master/r/61666
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Tested-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R75397527d8b9b33c186b71d87866f8ca5ab2f9c3

7 years agogcov-kernel: Add GCOV_KERNEL := y to Makefiles
Juha Tukkinen [Tue, 8 Nov 2011 13:48:34 +0000]
gcov-kernel: Add GCOV_KERNEL := y to Makefiles

These changes have no effect if CONFIG_GCOV_KERNEL is not set in
defconfig. It is easier to trigger GCOV for kernel if this patch
is in by only setting the before mentioned flag.

Change-Id: I8aade309da2da62c4b3889bd84e4123ba8f182da
Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/62999
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: R4c238f707f1db600f188ae83426336753992b7be

7 years agogcov-kernel: Add ARM eABI support
Juha Tukkinen [Tue, 8 Nov 2011 13:40:22 +0000]
gcov-kernel: Add ARM eABI support

Based on work by George G. Davis <gdavis@mvista.com>.
See http://lwn.net/Articles/390419/

Change-Id: I8df700d20a154e179f8cf6cdfe4015efc5d384f2
Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/62998
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R2607a46c8bd1e521abe44a57a5ccf7317333d6c9

7 years agogcov-kernel: patch for Android toolchain 4.4.x support
Juha Tukkinen [Tue, 8 Nov 2011 13:28:08 +0000]
gcov-kernel: patch for Android toolchain 4.4.x support

Based on work done for LTP in
http://ltp.cvs.sourceforge.net/viewvc/ltp/utils/analysis/gcov-kernel

Patch originates from Motorola kernel team (mkw348@motorola.com).

Change-Id: Ibb2a7c8afd79051e8d6c7fde83f04745be14f5fd
Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/62997
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R67557d023bc94fbe900bfc9deef2f5de9955ea43

7 years agoarm: tegra: Fix sync point intr registration issue.
Krishna Reddy [Tue, 18 Oct 2011 23:46:25 +0000]
arm: tegra: Fix sync point intr registration issue.

Perform sync point interrupt registration only when CONFIG_TEGRA_GRHOST
is enabled.

Reviewed-on: http://git-master/r/62719
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
(cherry picked from commit 0f1a8ad77749a1abee7893b7a1a8829a95a4711f)

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

Rebase-Id: R94f39f55f13637998ea41456621b67adc506130a

7 years agoARM: tegra: power: Update CPU rate after mode switch
Alex Frid [Sun, 30 Oct 2011 04:12:44 +0000]
ARM: tegra: power: Update CPU rate after mode switch

Update Tegra3 CPU clock rate after G=>LP mode switch is completed to
synchronize with cpufreq target rate.

(cherry picked from commit 870d21e5e23eff476cdd841b4ce2605393d638ef)
(cherry picked from commit 11b20d7d6206c557f00e3f7a40dec1d498345d79)

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

Rebase-Id: Rdd1548389896521fddb2e239d6236706eb102f73

7 years agoARM: tegra: dvfs: Add Tegra3 AP33 dvfs tables
Alex Frid [Sun, 30 Oct 2011 04:41:16 +0000]
ARM: tegra: dvfs: Add Tegra3 AP33 dvfs tables

Bug 841336

(cherry picked from commit b4cd14d5b9d1b2011a7752b6c52b3b64eb227cdb)
(cherry picked from commit 24cefb5d699db0a53b9fb3dd7cbe41de93c44e8e)

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

Rebase-Id: R332edca05c942d8698353eb6817ad1acf0a5f8bf

7 years agoARM: tegra: dvfs: Optimize Tegra3 VDD_CPU control in LP mode
Alex Frid [Wed, 26 Oct 2011 06:36:26 +0000]
ARM: tegra: dvfs: Optimize Tegra3 VDD_CPU control in LP mode

Optimized Tegra3 VDD_CPU control when VDD_CPU target is set to zero,
which could happen only while CPU is in LP mode (and CPU regulator
output is turned off by side-band signal, anyway):

- Ignore VDD_CPU dependency on VDD_CORE while VDD_CPU target is zero
- Allow VDD_CPU one step change to zero (i.e., to minimum voltage set
by constraints) after entry to LP mode
- Allow VDD_CPU one step change to the predicted G mode target before
exit from LP mode

(cherry picked from commit 5826f3e28867207b5dad1c50795de8275d1af872)
(cherry picked from commit 79c531421dfc65e27af657fd12b64c4187c67827)

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

Rebase-Id: R4c4f6e79decddb778f58cb5eef853a4c9d52ca94

7 years agoARM: tegra: clock: Add DSR field to Tegra3 EMC DFS table
Alex Frid [Wed, 2 Nov 2011 02:39:15 +0000]
ARM: tegra: clock: Add DSR field to Tegra3 EMC DFS table

Added dynamic self-refresh (DSR) field to Tegra3 EMC DFS table. This
field will be supported starting with table revision to 3.2, and it
will allow to enable/disable DSR for each table entry independently.

Bug 853990

(cherry picked from commit 6e225af7334d789ffac72542602913a0028d5eac)
(cherry picked from commit c7ebe73da695206a992088a4ba5a6cd7643ea333)

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

Rebase-Id: R7261d49b023634a783ab2bd55f494112d0bac2a1

7 years agoARM: tegra: gpio: Add range check for gpio enable/disable
Chaitanya Bandi [Thu, 3 Nov 2011 10:43:18 +0000]
ARM: tegra: gpio: Add range check for gpio enable/disable

Added the range check into tegra_gpio_enable and tegra_gpio_disable

Bug 897387

Reviewed-on: http://git-master/r/62641
(cherry picked from commit 091b3906b2dd64cd58221e7e61a24a57dabad16c)

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

Rebase-Id: Rfaf0efdbc60208a56e4e4f073e3661ad1511694c

7 years agoregulator: ricoh583: Support for external PWRREQ control
Laxman Dewangan [Sun, 30 Oct 2011 18:07:41 +0000]
regulator: ricoh583: Support for external PWRREQ control

Supporting the different rails control through the external
control signal PWRREQ1 and PWRREQ2.

Reviewed-on: http://git-master/r/61898
(cherry picked from commit fc07ccae30b61a92fa0b77ee6b2b7c8d43176bbe)

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

Rebase-Id: R687c186e89635a5bd4e3f399709cdf3520936a3f

7 years agoARM: tegra: dvfs: Update Tegra3 speedo thresholds
Diwakar Tundlam [Fri, 30 Sep 2011 00:00:03 +0000]
ARM: tegra: dvfs: Update Tegra3 speedo thresholds

Bug 841336

Reviewed-on: http://git-master/r/60546
(cherry picked from commit accf2b0e8cb96ac1cd9ea620081004c36673d761)

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

Rebase-Id: Rf596b18fe295288ab4a392559b64fb1f5cc35e23

7 years agoarm: tegra: power: set throttling temperature = 85C
Diwakar Tundlam [Fri, 2 Sep 2011 17:38:24 +0000]
arm: tegra: power: set throttling temperature = 85C

Earlier value of 75 had unnecessary double guardbanding.
Changed 90C row in EDP table down to 85C to get throttling alert.

Bug 862301

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

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

Rebase-Id: R6ef35feeaad04bea897d9343d9d3a21a988f3dde

7 years agoARM: Tegra: dvfs: pick speedo_id = 1 if speedo_value < min
Diwakar Tundlam [Thu, 11 Aug 2011 07:38:23 +0000]
ARM: Tegra: dvfs: pick speedo_id = 1 if speedo_value < min

Bug 860231

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

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

Rebase-Id: R08596750b3d68357c435f690fb08c884d4da8650

7 years agoarm: tegra: power: guardbanding only for accuracy of TDiode
Diwakar Tundlam [Thu, 8 Sep 2011 17:59:56 +0000]
arm: tegra: power: guardbanding only for accuracy of TDiode

Bug 844025

Reviewed-on: http://git-master/r/51443
(cherry picked from commit 1abdcb266a1fa22fd766549d5eddcca92e1fb17e)

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

Rebase-Id: R73990d76e2030664cb7cc6b6c7c36052f4c64bdb

7 years agosdhci: tegra: Remove sdmmc clock overrides
Pavan Kunapuli [Wed, 9 Nov 2011 09:05:31 +0000]
sdhci: tegra: Remove sdmmc clock overrides

Remove sdmmc clock overrides. SDMMC clocks
are properly configured without the clock
overrides.

Bug 887981

Change-Id: I1c07568e58e484c4a3a91240f0d1ed4b8a2c6fdd
Reviewed-on: http://git-master/r/63238
Tested-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: R0555f77217ef555507110b7626ce225be6bf5e35

7 years agoSerial: tegra: Allow 2% error in selecting clock source for baudrate.
Laxman Dewangan [Tue, 8 Nov 2011 13:08:59 +0000]
Serial: tegra: Allow 2% error in selecting clock source for baudrate.

Allowing 2% error in calculated baudrate when finding the best clock
source uart controller.

bug 896117

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

Rebase-Id: Rfc09a6aa7b2abf126ded97c87e8b46138cf30d18

7 years agoinput: tegra: kbc: Board param for scan count
Laxman Dewangan [Sun, 30 Oct 2011 13:15:05 +0000]
input: tegra: kbc: Board param for scan count

The scan timeout of the continuous mode can be calculated based on
init delay, repeat delay, debounce count and number of active row.
It also depends on how many scan need to be done before kbc change
the mode from continuous to wakeup mode.

Providing mechanism to select the scan count from platform data
and calculating the scan timeout count based on above parameters.

bug 876712

Reviewed-on: http://git-master/r/62591
(cherry picked from commit 3360ed5be86a2afd6716bc5227cc39657efd35b2)

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

Rebase-Id: Rbcb685d34c5d00ebf1c79d356eb63e4584075447

7 years agoarm: tegra: kbc: cardhu/enterprise: Set scan times
Laxman Dewangan [Sun, 30 Oct 2011 13:21:23 +0000]
arm: tegra: kbc: cardhu/enterprise: Set scan times

Setting the number of scans to 30 by keyboard controller after
pressed key released.
Also setting repeat delay time to 1 clock.

bug 876712

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

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

Rebase-Id: R20feaf7cd291cd2b404effad4c029dca1a21c57c

7 years agovideo: tegra: host: Send error codes to user space
Terje Bergstrom [Fri, 4 Nov 2011 08:09:49 +0000]
video: tegra: host: Send error codes to user space

Flush needs to send error codes to user space instead of suppressing
them.

Bug 886411

Reviewed-on: http://git-master/r/62385
(cherry picked from commit 357f4f8c8cc31713a32a26488e7f2031e5fff842)

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

Rebase-Id: Rdbad35676df437b9521a8e6978510f73e7aa3844

7 years agovideo: tegra: host: Set power state in boot-up
Terje Bergstrom [Thu, 3 Nov 2011 10:40:29 +0000]
video: tegra: host: Set power state in boot-up

Set correct power state for modules during boot-up. This is done by
splitting nvhost_module_init() into two parts: preinit and init. Preinit
sets correct power state, and is called for all modules during boot-up.
Init calls pre-init and performs the rest of initialization of
nvhost_module structure.

Bug 855755

Reviewed-on: http://git-master/r/62102
(cherry picked from commit 003df5ddd4fcffca9b7456cdb1150cfc041f406c)

Conflicts:

drivers/video/tegra/host/nvhost_acm.c

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

Rebase-Id: R5281ee0c00489c5fb26a602ec49498f8cc018e95

7 years agovideo: tegra: host: Enable powergating for MPE and 3D
Terje Bergstrom [Thu, 3 Nov 2011 08:05:08 +0000]
video: tegra: host: Enable powergating for MPE and 3D

Enable power gating for MPE and 3D in T30.

Bug 857044

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

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

Rebase-Id: R96f7986af5b534d8db0ff2a1f119f5f783d6ed44

7 years agovideo: tegra: host: Save timed out contexts
Terje Bergstrom [Wed, 9 Nov 2011 07:26:12 +0000]
video: tegra: host: Save timed out contexts

Do not access the timeout struct during context save. The timeout struct
is part of userctx, and it might be already deallocated.

Bug 896579

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

Rebase-Id: Raab50bca6333ac72e1383851ce0e7cf01731f3ec

7 years agomedia: video: nvavp: Fix clock disable warnings
Prashant Gaikwad [Tue, 8 Nov 2011 06:00:54 +0000]
media: video: nvavp: Fix clock disable warnings

sclk and emc clock is disabled from nvavp_halt_avp. nvavp_halt_avp
is called from probe where clocks are not enabled.
Disable sclk and emc clock from nvavp_uninit instead of
nvavp_halt_avp.

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

Rebase-Id: R2ed9e3e77cd188e52912d3d2e808398233644e6a

7 years agousb: cdc-acm: blocking non-real ACM device
Michael Hsu [Mon, 7 Nov 2011 22:51:20 +0000]
usb: cdc-acm: blocking non-real ACM device

Adding a new quirk tag to prevent ACM driver taking over the interfaces
of a device which is not a real ACM device.

Bug 860566

Reviewed-on: http://git-master/r/55303
(cherry picked from commit 354c48f813fad182d9ce2c2fcf404d89f75e46cf)

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

Rebase-Id: R8fbe1a32c92114407783f9745616ed8304676b49

7 years agoarm: tegra: enterprise: cardhu: pn544 nfc support
Rakesh Goyal [Mon, 7 Nov 2011 20:30:31 +0000]
arm: tegra: enterprise: cardhu: pn544 nfc support

1) configuring pinmux
2) create pn544_i2c_platform_data
3) register i2c device info using i2c_register_board_info

Bug 846684
Bug 873017

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

Rebase-Id: R334a9cc8f86c90214b2415b3b855d5f234ad7a11

7 years agoarm: tegra: comms: Allow variable number of RAW-IP interfaces.
Michael Hsu [Thu, 20 Oct 2011 23:30:54 +0000]
arm: tegra: comms: Allow variable number of RAW-IP interfaces.

Use module variable to allow dynamic configuration of number
of RAW-IP network interfaces.

BUG 853232

Reviewed-on: http://git-master/r/59447
(cherry picked from commit 0fbbd5191c3f1bcd873a2f13edeb63050dab33c1)

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

Rebase-Id: R5f366227cd990e0101a37b85097afa87a9619b06

7 years agoarm: tegra: comms: Fix RAW-IP rx after resume.
pyu [Fri, 16 Sep 2011 08:32:58 +0000]
arm: tegra: comms: Fix RAW-IP rx after resume.

Cancel pending rx urbs during suspend, and resubmit
rx urbs after resume.

BUG 853232

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

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

Rebase-Id: R1ad5e21ee2513aa977d96d7e3ae89d80c69fbb28

7 years agoarm: tegra: comms: Fix race condition in probe function.
Michael Hsu [Wed, 19 Oct 2011 00:40:17 +0000]
arm: tegra: comms: Fix race condition in probe function.

XMM modem baseband character driver, which is used to download
modem software, had race condition.  If USB host stack has
not enumerated XMM modem boot rom yet, then driver aborts module
load.

With this change, I/O (such as downloading modem software) will
be delayed until USB host stack has enumerated modem boot rom.

BUG 828389

Reviewed-on: http://git-master/r/58870
(cherry picked from commit 22a5122689ab957fd0236cf2fcf1623dac82ab69)

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

Rebase-Id: Re7857218c723d3c43072f17ccf5ffc70a7faf163

7 years agonfc: control firmware download and nfc_en
Rakesh Goyal [Mon, 7 Nov 2011 11:55:56 +0000]
nfc: control firmware download and nfc_en

control firmware download and VEN using gpio

Bug 846684
Bug 873017

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

Rebase-Id: R74ce3100c395b696c347fce4b4c9f5913aae3717

7 years agodriver: nfc: code clean-up to make it compilable
Rakesh Goyal [Tue, 11 Oct 2011 13:26:21 +0000]
driver: nfc: code clean-up to make it compilable

1. Code cleaning so it can compile
2. changes in pn544 driver to condition use of
   firmware download gpio

bug 846684
bug 873017

Reviewed-on: http://git-master/r/57329
(cherry picked from commit ddde05ce297da3038a770d575bc27bdfe7444c35)

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

Rebase-Id: R2b25ef5ee689076ebca99d13e5a23b1f0cc4da98

7 years agonfc: initial commit of pn544 nfc driver
Rakesh Goyal [Tue, 4 Oct 2011 05:17:50 +0000]
nfc: initial commit of pn544 nfc driver

Bug 846684
Bug 873017

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

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

Rebase-Id: R75e0a2682ffd4d007722eaabe19c9cb20d27a9b7

7 years agoASoC: Tegra: Remove DAS configuration from Tegra20 I2s driver
Sumit Bhattacharya [Fri, 4 Nov 2011 22:07:03 +0000]
ASoC: Tegra: Remove DAS configuration from Tegra20 I2s driver

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

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

Rebase-Id: Re520964ead6b378773bb7f76738e0e1de19cc538

7 years agoASoC: Tegra wm8753 machine: Use DSP mode for mono on Tegra20
Sumit Bhattacharya [Fri, 4 Nov 2011 21:54:10 +0000]
ASoC: Tegra wm8753 machine: Use DSP mode for mono on Tegra20

Use DSP mode for playback and capture on Tegra20 platforms.

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

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

Rebase-Id: R1d74ddf730b97c881e37747e86b9c25c0a13e74a

7 years agoASoC: Tegra wm8903 machine: Use DSP mode for mono on Tegra20
Sumit Bhattacharya [Fri, 4 Nov 2011 21:51:50 +0000]
ASoC: Tegra wm8903 machine: Use DSP mode for mono on Tegra20

Use DSP mode for playback and capture on Tegra20 platforms.

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

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

Rebase-Id: R48dbdcdad6191f354a63c4a01fb33668c43ac28a

7 years agoASoC: Tegra: Support mono playback/capture on Tegra30
Sumit Bhattacharya [Fri, 4 Nov 2011 21:01:54 +0000]
ASoC: Tegra: Support mono playback/capture on Tegra30

Program I2s and AHUB CIF channel counts based on hw params instead of
always setting CIF channel count to 2.

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

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

Rebase-Id: R1dbcdb946b95060a07a1744b4714e2588901f15d

7 years agovideo: tegra: host: Increase syncpt stuck loop count
Terje Bergstrom [Tue, 1 Nov 2011 06:50:37 +0000]
video: tegra: host: Increase syncpt stuck loop count

Increase minimum loop count when checking for stuck syncpoint,
before triggering debug_dump()->BUG_ON(), to account for some
lengthy context-save operations.  Now increased to
15 loops * 2s wait (SYNCPT_CHECK_PERIOD) per loop.
(Wait per loop may be less depending on user-specified timeout
for nvhost_syncpt_wait_timeout().)

Bug 834337

Change-Id: I1029b6359c1bb8e08f389c211641798fefa92d75
Reviewed-on: http://git-master/r/61412
Tested-by: Gerrit_Virtual_Submit
(cherry picked from commit 5b13d80dc21855c52f53a67471453ea6e95e61f9)
Reviewed-on: http://git-master/r/62370
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: Rfcf833e15c597a5684a3d44e923d64ef12ec4b5a

7 years agovideo: tegra: host: Add waitbases to debug output
Terje Bergstrom [Wed, 26 Oct 2011 06:11:29 +0000]
video: tegra: host: Add waitbases to debug output

Add listing of wait bases and their values to debug output.

Reviewed-on: http://git-master/r/60389
(cherry picked from commit 16afc5516433d4a66d838c5a339ab8c07f4b42fa)

Change-Id: I70a82944cb39e65ce409169d5aa00bafb343a9b6
Reviewed-on: http://git-master/r/62369
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R505b4dcfd6912e99ac44ec938f8be1b1574b2b05

7 years agovideo: tegra: host: Prevent panic in debug output
Terje Bergstrom [Tue, 25 Oct 2011 12:31:54 +0000]
video: tegra: host: Prevent panic in debug output

Add locking and checking for error codes to the output of
tegra_host/status debugfs entry, and clearing of freed memory.

Bug 840976

Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/60231
(cherry picked from commit 811a722b7fe3e21357a8aa7b6cfb8b9f552b7de7)

Conflicts:

drivers/video/tegra/host/t20/cdma_t20.c

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

Rebase-Id: R61c642424e674b141291d02479d11339e4b1cd95

7 years agovideo: tegra: host: Keep wait bases in sync
Terje Bergstrom [Wed, 26 Oct 2011 08:10:08 +0000]
video: tegra: host: Keep wait bases in sync

Add opcodes to synchronize the wait base for each channel at the
beginning of each submit. This adds robustness towards misbehaving user
space.

Context clear for robustness clears the opcodes for synchronizing the
wait base. This change also removes that part of robustness.

Bug 886411

Reviewed-on: http://git-master/r/60423
(cherry picked from commit c3740abf73ef6b7fd9b7de5bc4b6615ba25adf5e)

Change-Id: I67dfe3d2303ea373e3119be49a568d64932d8016
Reviewed-on: http://git-master/r/62359
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R842ee4eee4b738d012eb065ac71448fd2684ca66

7 years agotegra: video: host: Add context to timeout structure
Terje Bergstrom [Tue, 1 Nov 2011 09:11:35 +0000]
tegra: video: host: Add context to timeout structure

Add hwctx pointer to timeout structure. This makes sure the correct
hardware context is cleared.

Bug 886411

Change-Id: Ia5541add0b9af5bbc2f1264d33bcdc549bc99650
Reviewed-on: http://git-master/r/61449
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit 7e2fb5bb2985373e869079ee7c628c1694216f21)
Reviewed-on: http://git-master/r/62358
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: Rf5b8d8d00442ec20726bbdc3337abbc4aa54f8fc

7 years agovideo: tegra: host: Add extra syncpt debug info
Terje Bergstrom [Mon, 24 Oct 2011 12:08:43 +0000]
video: tegra: host: Add extra syncpt debug info

Add extra syncpt debug info and kernel panic when device stuck
waiting at syncpts.

Tested by inducing syncpt stuck-wait by bypassing nvhost_syncpt-
_cpu_incr.

Bug 822880
Bug 820056
Bug 818058
Bug 810463
Bug 803452

Reviewed-on: http://git-master/r/60206
(cherry picked from commit e73caae974f43ac5bf30589fc3cbc1fa66df926e)

Conflicts:

drivers/video/tegra/host/nvhost_syncpt.h

Change-Id: I648d92931cd26fddface2be557bffe8759c22753
Reviewed-on: http://git-master/r/62357
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R62d49b050f565e0a581530bf2342eb65931da9a8

7 years agoasoc: tegra: Add support for Tegra20 I2s PCM mode
Sumit Bhattacharya [Mon, 31 Oct 2011 12:51:56 +0000]
asoc: tegra: Add support for Tegra20 I2s PCM mode

Add support for Tegra20 I2s PCM mode which is required for playback or
record through BT SCO interface.

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

Change-Id: Ia4ba1fc308f2e8adb3697ae600a1664aa14467e9
Reviewed-on: http://git-master/r/61232
Tested-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R058f7951f0d4bdb5cfe4d997326a2456cc8b105c

7 years agovideo: tegra: host: fixes to 3d clock scaling
Ilan Aelion [Tue, 4 Oct 2011 01:28:23 +0000]
video: tegra: host: fixes to 3d clock scaling

fixed bug in scale up timing, improved idle time reporting and
scaling parameters.

Reviewed-on: http://git-master/r/55849
Reviewed-by: Karan Jhavar <kjhavar@nvidia.com>
Tested-by: Karan Jhavar <kjhavar@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
(cherry picked from commit b73fc6951192a2c80ed8d22f7ca4739b6e1e46de)
Change-Id: I6a04eb9ce789c475a461e9cc7306d679f209ed97
Reviewed-on: http://git-master/r/60443
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Tested-by: Ilan Aelion <iaelion@nvidia.com>

Rebase-Id: Rf34f9567d9b39ebd2e18742c8e3543d144b2de6f

7 years agoarm: tegra: enterprise: disable usb3
Rakesh Bodla [Tue, 11 Oct 2011 05:02:21 +0000]
arm: tegra: enterprise: disable usb3

Disabling usb3 as it is not used on enterprise.

Bug 885298

Reviewed-on: http://git-master/r/57201
(cherry picked from commit a74f09883bd09355e1b4e8c322dff279f8505b5b)
Change-Id: I77c00284ea8dd96a39aa267a0a6784cb8caf3a7a
Reviewed-on: http://git-master/r/63257
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: R8f0f9a693ec579e50658e97e4198c6b243455903

7 years agoserial: tegra: Increasing RX DMA buffer size
Pradeep Goudagunta [Fri, 4 Nov 2011 10:51:22 +0000]
serial: tegra: Increasing RX DMA buffer size

Increasing RX DMA buffer size to 16K.

Bug 819411

Reviewed-on: http://git-master/r/49810
(cherry picked from commit 642eac7b9c8994b42d32a0c3794d0bb2194e62c0)

Change-Id: I529c1216597227fe1c10ffb34b95fc66de1c5340
Reviewed-on: http://git-master/r/62414
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: R9f774269c0b45dda4fc12aadd7b85eeeea7a7626

7 years agoArm: Tegra: Cardhu: pm269: Add ramp voltage for LDO3
Pavan Kunapuli [Thu, 8 Sep 2011 14:13:56 +0000]
Arm: Tegra: Cardhu: pm269: Add ramp voltage for LDO3

The ramp voltage for the ldo3 for PM269 is around 1mV/us.
Setting this value.

bug 872382

Reviewed-on: http://git-master/r/51364
(cherry picked from commit aa84b06982dbea58b815fc99bbbf84c7bdaddc78)

Change-Id: I2b7cd8883c06250490c3e27dd28384985706aa68
Reviewed-on: http://git-master/r/62341
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: R74b6d629197cc9b1cc591a4ac318f7105c7f28c5

7 years agomisc: nct1008: idle read temperature
Bitan Biswas [Tue, 18 Oct 2011 08:27:49 +0000]
misc: nct1008: idle read temperature

Check for nct1008 status busy bit before reading temperature

Reviewed-on: http://git-master/r/#change,56945
(cherry picked from commit 5a258b6567797bb402fe65ae01770bd593420431)

Reviewed-on: http://git-master/r/61750
(cherry picked from commit 20706ea39f7793567230faab86cbc4dcb107d1aa)

Change-Id: If275f8f4449cc39c73b7d9fa4b9b610db8d0fa7b
Reviewed-on: http://git-master/r/62327
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: Rbdc6b7f88fcb59ec3928505a4446a32c13ed683b

7 years agoarm: tegra: enterprise: Register gpadc driver for tps8003x.
syed rafiuddin [Tue, 27 Sep 2011 09:15:58 +0000]
arm: tegra: enterprise: Register gpadc driver for tps8003x.

Registering gpadc driver through tps80031.

bug 872697

Reviewed-on: http://git-master/r/56986
(cherry picked from commit 95f9948f31f1ce0862821830bb348cbe027cfcaf)

Change-Id: I07942d3aac247b12e0e0cb344ed292bbae4caf78
Reviewed-on: http://git-master/r/61859
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: R5871b51c9f335e6b1843c40c6882e24642813a28

7 years agotegra: usb: otg: factorize host registration code
Alexandre Courbot [Wed, 2 Nov 2011 07:57:31 +0000]
tegra: usb: otg: factorize host registration code

OTG host register/unregister functions were duplicated identically
across all board files, making the code difficult to maintain (and
actually some boards did not get all some code fixes leading to the same
bug being met again and again). This patch moves this common code into
tegra-otg.c.

Bug 884315
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Change-Id: I99b118664f0481f6c5470411b43f36609e0feb52
Reviewed-on: http://git-master/r/61763
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: R0f6060514c017946cc9ae2ba2f04a1c134d14d9b

7 years agoarm: tegra: spi slave: Remove deprecated spi slave driver
Laxman Dewangan [Tue, 8 Nov 2011 12:59:29 +0000]
arm: tegra: spi slave: Remove deprecated spi slave driver

Removing the old/deprecated spi slave driver.

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

Rebase-Id: R7934a311a878811232d798f7d8d59f7561e4a5c8

7 years agoarm: tegra: enterprise: add camera I2C for A00 board
Jihoon Bang [Wed, 26 Oct 2011 23:50:42 +0000]
arm: tegra: enterprise: add camera I2C for A00 board

Camera I2C wasn't registered in A00 board. Add support for this.

Bug 894201

Reviewed-on: http://git-master/r/60567
(cherry picked from commit 1122e0e92bf1cc8df7f9d5e3091c96e012529b54)

Reviewed-on: http://git-master/r/62213
(cherry picked from commit 44bb5880800e1d29c346d063c4aba649370f4cfa)

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

Rebase-Id: R5bb1541b409bce616994e4636b0f2f8be8b7ee39

7 years agoarm: tegra: config: turn on VT
Preetham Chandru [Mon, 7 Nov 2011 15:03:33 +0000]
arm: tegra: config: turn on VT

Enable Virtual Terminal for AP20 and T30.

Bug: 898297
Change-Id: I1c69a620ecdbf5901b101b542bdcd0dff25f94f1
Signed-off-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/62715
Reviewed-by: Mursalin Akon <makon@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>

Rebase-Id: R6bbe63c09f4ca4e920dc69eea1efdb12ba78a449

7 years agoregulator: tps6236x: Support to configure in force PWM mode
Laxman Dewangan [Mon, 24 Oct 2011 09:08:14 +0000]
regulator: tps6236x: Support to configure in force PWM mode

Added the platform data to configure the pmu in force pwm
mode.

Reviewed-on: http://git-master/r/61896
(cherry picked from commit 6488995a7ead950e3ab585e71528f86f3208b0da)

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

Rebase-Id: Rd5da6f04a8941a13a3437988dcaaafed2fe6aa8d

7 years agoarm: tegra: power: Reduced throttling hysteresis
Joshua Primero [Thu, 8 Sep 2011 23:23:22 +0000]
arm: tegra: power: Reduced throttling hysteresis

Set different hysteresis values for the EDP and throttling cases.
bug 862301

(cherry picked from commit 357e8bcd3df61ff2803049e38e8a99dfbcaee99b)

Change-Id: I6cb3ea9bf7f9e288e2b1481862b8aee214ca853f
Reviewed-on: http://git-master/r/62569
Reviewed-by: Joshua Primero <jprimero@nvidia.com>
Tested-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

Rebase-Id: Rfd9c2c7990606c4ed0a10f534a15d2d589327d53

7 years agovideo: tegra: dc: remove extra call to tegra_periph_reset_assert
Tom Cherry [Fri, 4 Nov 2011 21:38:49 +0000]
video: tegra: dc: remove extra call to tegra_periph_reset_assert

During the K39 merge an additional call to tegra_periph_reset_assert
was added.  The call in this place was moved by the following two
commits and needs to be removed from where it currently is.

e9f069bc video: tegra: dc: Fix introduced regression.
884cc8a9 tegra: dc: fix dc hang during dc reset

Bug 895713

Change-Id: Ibfe1445f23dbc92498696a6d0743f4b5f92e049e
Reviewed-on: http://git-master/r/62510
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

Rebase-Id: Re923f258ce13fa9c3fc4f9643762784729df63ae

7 years agoARM: tegra: uart: Restore FCR in uart resume
Pradeep Goudagunta [Fri, 4 Nov 2011 10:25:01 +0000]
ARM: tegra: uart: Restore FCR in uart resume

Restore FCR while resuming debug uart, to enable RX and TX FIFOs with
trigger levels configured during initialisation of debug uart port.

Bug 867063

Change-Id: I9665ff29a53c3e2e6c78a3037e20e7362a642f77
Reviewed-on: http://git-master/r/62411
Tested-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

Rebase-Id: Ra3b9858456b952ab539a36019a55863077094054

7 years agoarm: tegra: whistler: Fix SDHCI bootup warnings
Shridhar Rasal [Thu, 3 Nov 2011 14:29:19 +0000]
arm: tegra: whistler: Fix SDHCI bootup warnings

Remove unused SDHCI controller registration to suppress bootup
warn-on messages.

bug 896928

Change-Id: I027d9a3e9b56c2ca37449d4a1835a904f584dd88
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/62156
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R7cfeccf2ccf998f5c994e5732e4839cdfa52034a

7 years agoARM: tegra: power: Correct PL310 virt addr calculation
Puneet Saxena [Thu, 3 Nov 2011 10:01:23 +0000]
ARM: tegra: power: Correct PL310 virt addr calculation

PL310 virtual address was calculated using PPSB virtual/phy address.
It should be done using CPU virtual/phy address. This causes
TEGRA_PL310_VIRT value to get overlapped with virtual kerenl memory map's
Vmalloc region on whistler.

Bug 881831
Bug 867094

Change-Id: Ifaeeb9291553af59453f0041ad7cb1fe9d27979b
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/62097
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

Rebase-Id: Ra5a6165c8a02f0ac130bbaac4a477b901ceea62f

7 years agospi: tegra: Fixed spi slave CS polarity
Amlan Kundu [Wed, 14 Sep 2011 05:35:14 +0000]
spi: tegra: Fixed spi slave CS polarity

Change-Id: If544ad6382b8321f8c5e94e0a8a7679d36c48b67
Reviewed-on: http://git-master/r/52239
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Amlan Kundu <akundu@nvidia.com>
Reviewed-on: http://git-master/r/62044
Reviewed-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

Rebase-Id: Rc0e69778b981cba9a5dfd1b55ece16d5f43cf22e