5 years agoARM: tegra: dvfs: Re-name core cap interface/data
Alex Frid [Wed, 6 Nov 2013 21:46:14 +0000]
ARM: tegra: dvfs: Re-name core cap interface/data

Re-named interface and data object used to apply core rail override
cap to include "override" feature designation in the name.

Change-Id: Iedd5cd7ee28134db38c571feeb6b7703e75c8d28
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/328100
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra12: dvfs: Update GPU Vmin
Alex Frid [Wed, 30 Oct 2013 04:44:16 +0000]
ARM: tegra12: dvfs: Update GPU Vmin

Updated GPU Vmin CVB coefficients and changed VDD_GPU rail minimum
voltage accordingly.

Bug 1342499

Change-Id: Iae6a4e79b76ae7e6dac36875c9b8920762f37a09
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/309413
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agomisc: tegra-baseband: short autosuspend for native remote wake
Neil Patel [Fri, 25 Oct 2013 14:29:39 +0000]
misc: tegra-baseband: short autosuspend for native remote wake

Add support for short autosuspend when native remote wakeup is used.

Bug 1362837

Change-Id: I13cab913645d00a1d37caabf0d274bb2e557e0c3
Signed-off-by: Neil Patel <neilp@nvidia.com>
Reviewed-on: http://git-master/r/324075
Reviewed-by: Gray Lei <glei@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>

5 years agovideo: tegra: host: gk20a: PMU survives recovery
Arto Merilainen [Wed, 6 Nov 2013 14:54:30 +0000]
video: tegra: host: gk20a: PMU survives recovery

Engine recovery used to tear down PMU and then restore its state.
This was required as PMU initialisation had steps that affected GR
and FECS. Currently, that part of initialisation is separated from
the bootup part and hence we can also simplify engine recovery.

This patch modifies the recovery routine so that we
1) disable only ELPG
2) recover engines
3) do second stage init for PMU (this includes GR and FECS parts)
4) Re-enable ELPG

Change-Id: I5e3409a7cecbc38b2e43cb11410592ddc9dbc501
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/327163

5 years agovideo: tegra: host: Wait ZBC save completion
Arto Merilainen [Thu, 7 Nov 2013 09:59:58 +0000]
video: tegra: host: Wait ZBC save completion

This far we have performed ZBC save without waiting it to complete
(properly). We have simply called pmu_idle() after save which does
not guarantee save operation to be completed.

This patch adds necessary code to check that the save is completed
before proceeding.

Change-Id: Ia25bbcc58b21c2c76cc130884ef66022498f9aae
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/327647
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Neil Gabriel <ngabriel@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoEDP: tn8: add consumer data for 8" display
Timo Alho [Wed, 6 Nov 2013 13:44:23 +0000]
EDP: tn8: add consumer data for 8" display

Add support for 8" display. Detect the used panel and apply correct
consumer data accordingly.

Change-Id: I0d2fc0b7eb371c9a89892b85fdb8b694af64d039
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/327109
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agomfd: as3722: use power off driver for system power off
Laxman Dewangan [Fri, 8 Nov 2013 08:46:41 +0000]
mfd: as3722: use power off driver for system power off

Use as3722-poweroff driver for the system power off and reset and
remove the supported code from the core driver.

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

5 years agoARM: config: tegra: enable POWER_RESET_AS3722
Laxman Dewangan [Fri, 8 Nov 2013 08:45:53 +0000]
ARM: config: tegra: enable POWER_RESET_AS3722

Enable config CONFIG_POWER_RESET_AS3722 to support the power off and
reset through AS3722.

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

5 years agopower: reset: as3722: system power off and reset through system-pmic
Laxman Dewangan [Fri, 8 Nov 2013 08:44:28 +0000]
power: reset: as3722: system power off and reset through system-pmic

Implement the system pmic power off and reset driver for ams AS3722 PMIC
device.

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

5 years agopower: reset: as3722: add power-off driver
Laxman Dewangan [Fri, 8 Nov 2013 07:15:44 +0000]
power: reset: as3722: add power-off driver

ams AS3722 supports the power off functionality to turn off
system.

Add power off driver for ams AS3722.

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

5 years agoarm: tegra: cleanup fuse.h inclusions
Shardar Shariff Md [Thu, 7 Nov 2013 11:31:09 +0000]
arm: tegra: cleanup fuse.h inclusions

cleanup fuse.h inclusion to avoid
build errors

Bug 1380004

Change-Id: I4e91fbca4ffdefe8db118c70f73f71976bb4a599
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/327681
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agopinctrl: tegra: add drive initialisation table for Tegra124
Laxman Dewangan [Fri, 8 Nov 2013 06:36:18 +0000]
pinctrl: tegra: add drive initialisation table for Tegra124

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

5 years agopinctrl: tegra: add drive initialisation table for Tegra114
Laxman Dewangan [Thu, 7 Nov 2013 13:50:38 +0000]
pinctrl: tegra: add drive initialisation table for Tegra114

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

5 years agopinctrl: tegra: add support for soc specific drive configuration
Laxman Dewangan [Thu, 7 Nov 2013 13:48:29 +0000]
pinctrl: tegra: add support for soc specific drive configuration

Every soc have their default driver configuration based on
characterization recommendation.

Add support to configure the drive group during pincontrol
driver initialisation.

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

5 years agopinctrl: as3722: fix pinconf_set warning
Bibek Basu [Thu, 7 Nov 2013 12:47:42 +0000]
pinctrl: as3722: fix pinconf_set warning

as3722 pinconf_set signature in existing kernel is not
matching with pinctrl framework

Bug 1394720

Change-Id: I60ceae624694becca956c20d69e64e6135cfaa32
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/327724
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agovideo: tegra: dc: use cancel_delayed_work_sync()
Deepak Nibade [Tue, 22 Oct 2013 13:00:27 +0000]
video: tegra: dc: use cancel_delayed_work_sync()

- nvhdcp driver uses flush_workqueue()
- instead make use of cancel_delayed_work_sync() since
  work scheduled is delayed work

Bug 1308191

Change-Id: I40f841c417cda9b6f40bb9da5c86c0b8944807e9
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/302383
Reviewed-on: http://git-master/r/303810
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoPM/domain: Change print type for "latency exceeded" print
Bharat Nihalani [Thu, 7 Nov 2013 07:04:51 +0000]
PM/domain: Change print type for "latency exceeded" print

The print "Power-on latency exceeded" keeps coming in on a regular
interval for various modules; don't see this to be valuable.

Hence change the print type from pr_warning to pr_debug.

Change-Id: I544bb09993b6c13f5bd505f8580644d6e3002254
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/327487
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>

5 years agovideo: tegra: host: fix VIC clock gating writes again
Matt Craighead [Thu, 7 Nov 2013 17:14:32 +0000]
video: tegra: host: fix VIC clock gating writes again

Previous fix used the wrong register offsets -- incr4 register
offsets were being passed into a function that expected incr1
register offsets.

Bug 1403310

Change-Id: I3ba87ae72393ecebc93dcfa9e1dc2b52a22697bd
Signed-off-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-on: http://git-master/r/327809
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoRevert "video: nvmap: Only use CPA if enabled in nvmap"
Krishna Reddy [Fri, 8 Nov 2013 06:10:08 +0000]
Revert "video: nvmap: Only use CPA if enabled in nvmap"

This reverts commit 42000f34bb18fc5cc36089003fa32848b8e82ed1.

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

5 years agoRevert "arm: mm: cpa: remove APIs no longer used"
Krishna Reddy [Fri, 8 Nov 2013 06:10:21 +0000]
Revert "arm: mm: cpa: remove APIs no longer used"

This reverts commit 98ecd24717543e80280adfdbf4957e8f54e46a3a.

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

5 years agopinctrl: tegra: t124: update resume sequence
Ashwini Ghuge [Thu, 7 Nov 2013 15:28:53 +0000]
pinctrl: tegra: t124: update resume sequence

Tristate pins and write IO_DPD regs before
restoring old pin state. Clear DPD_SAMPLE
after restoring old pin state

Change-Id: I546515258707c07350995a3f0fa16d50f461498e
Signed-off-by: Ashwini Ghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/301751
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra12: clock: add missing sbc clock
Shreshtha Sahu [Tue, 5 Nov 2013 05:49:36 +0000]
ARM: tegra12: clock: add missing sbc clock

This patch adds sbc4.sclk:sbc6.sclk clocks missing in
tegra_list_clks[] list.

Bug: 1353715

Change-Id: I25ae213d8b1cb7dba88296c9f6bd0e5f3a4c0894
Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/326409
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomedia: platform: tegra: ar0261 register writes
David Wang [Fri, 8 Nov 2013 00:08:46 +0000]
media: platform: tegra: ar0261 register writes

Switch the register writes for coarse time, coarse time
short, and frame length to 16bit register writes. This fixes
missing byte in coarse time and frame length writes during
set modoe.

Bug 1399950

Change-Id: Ied14fc12c480f0c0ff640779848ae6f7bf993a40
Signed-off-by: David Wang <davidw@nvidia.com>
Reviewed-on: http://git-master/r/327942
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: mm: cpa: remove APIs no longer used
Alex Waterman [Wed, 6 Nov 2013 19:43:52 +0000]
arm: mm: cpa: remove APIs no longer used

Remove the unused APIs in the CPA code.

Bug 1393434

Change-Id: I5b2fa8cbf77b79f108699fa2588754b182a24ec7
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/327287
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agovideo: nvmap: Only use CPA if enabled in nvmap
Alex Waterman [Tue, 5 Nov 2013 00:14:48 +0000]
video: nvmap: Only use CPA if enabled in nvmap

This commit implements nvmap wrappers to the CPA API that will
only call CPA functions if CONFIG_NVMAP_CPA is enabled.

Bug 1393434

Change-Id: Ia3a020b9cc971accd661df2ad81fe40451c33355
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/326266
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agovideo: nvmap: Add nvmap CPA config
Alex Waterman [Tue, 5 Nov 2013 22:14:47 +0000]
video: nvmap: Add nvmap CPA config

Add a config to nvmap to decouple the CPA config from nvmap. In
most cases that the CPA API will be enabled nvmap should still not
use CPA.

Bug 1393434

Change-Id: Ieb5b935bd86a12c32bff355dbdaeafccd6e406ef
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/326845
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agovideo: tegra: gk20a: Update GPCPLL dynamic ramp steps
Alex Frid [Wed, 6 Nov 2013 07:39:22 +0000]
video: tegra: gk20a: Update GPCPLL dynamic ramp steps

Bug 1399520

Change-Id: Idb8a8a0c9b05ea0a6f8ab0b1753b0fc32145359e
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/327017
Reviewed-by: Prashant Malani <pmalani@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agovideo: tegra: nvmap: fix mmap issue
Krishna Reddy [Thu, 7 Nov 2013 22:00:26 +0000]
video: tegra: nvmap: fix mmap issue

ref on handle should be taken in dma_buf mmap path.
Bug 1402774

Change-Id: Id8e086bf729bda54608d51567411880208c83723
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/327896
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agomedia: platform: tegra: fix imx135 ov7695 read_reg
David Wang [Thu, 7 Nov 2013 00:11:44 +0000]
media: platform: tegra: fix imx135 ov7695 read_reg

Corrects type mismatch for read_reg function and
regmap for imx135 and ov7695.

Bug 1402753

Change-Id: I7bd267be69d2ae2ebe92d9670b41161065fc8c31
Signed-off-by: David Wang <davidw@nvidia.com>
Reviewed-on: http://git-master/r/327375
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoARM: tegra: dvfs: Split CL-DVFS registers accessors
Alex Frid [Sun, 3 Nov 2013 01:57:38 +0000]
ARM: tegra: dvfs: Split CL-DVFS registers accessors

In some h/w configurations CL-DVFS module registers have two different
address bases: one for I2C control/status registers, and one for all
other registers. Separated registers accessors accordingly.

Change-Id: I4e72e0a643b1870a77564511763dad9d8bd52804
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/325933
Reviewed-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agomerge android-tegra-nv-3.10 into dev-kernel-3.10
Sridhar Lavu [Thu, 7 Nov 2013 20:10:06 +0000]
merge android-tegra-nv-3.10 into dev-kernel-3.10

* origin/android-tegra-nv-3.10:
  Revert "arm: tegra: loose cpu edp power table calculation."
  arm: tegra: loose cpu edp power table calculation.

This merges main back to dev-kernel so that dev-kernel can
once again become the "parent" commit. This was the result
of a change merged directly to main instead of dev-kernel.

Bug 1403257

Change-Id: Ie858f4652cc5caf832d0ab13ead958ef6e508548

5 years agoMerge tag 'dev-kernel-delivery/gcid/2646040-delivery' into promotion_build
Simone Willett [Thu, 7 Nov 2013 17:27:41 +0000]
Merge tag 'dev-kernel-delivery/gcid/2646040-delivery' into promotion_build

main: delivery commit from dev-kernel-delivery at gcid=2646040: manifest=delivery.xml

5 years agoarm: tegra: bypass PllP during LP1 suspend
Bo Yan [Wed, 6 Nov 2013 19:34:03 +0000]
arm: tegra: bypass PllP during LP1 suspend

RAM repair requires PllP, so it shouldn't be disabled. To save
power, instead of keeping it running at 408Mhz, enable bypass
mode, so RAM repair logic can be clocked by oscillator. This
is done when LP1 entry is from fast cluster only.

In addition, change PLLP_OUT0_RATIO to 0 so the reshift clock
is not being further divided down, change it back to default
value after PllP is enabled and bypass is disabled.

This change is copied from http://git-master/r/310133 . The
cherry-pick doesn't work since the original file was deleted.

bug 1373419

Change-Id: I77a3a62515c8513ca12854483c36da6937b1f9e3
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/327266
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>

5 years agoRevert "arm: tegra: loose cpu edp power table calculation."
Sridhar Lavu [Thu, 7 Nov 2013 14:14:50 +0000]
Revert "arm: tegra: loose cpu edp power table calculation."

This reverts commit 4584d0e777b22a679144cb10ecdbb7e91ee87bb5
since it violates and blocks module branching workflow.

Bug 1310571 : original bug
Bug 1403257 : regression bug

Change-Id: I278064d863f83fabfdea5fce4c70dfc8054f6ebe
Reverts-what-was-Reviewed-on: http://git-master/r/326397
Signed-off-by: Sridhar Lavu <slavu@nvidia.com>
Reviewed-on: http://git-master/r/327763
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

5 years agoARM: tegra: ardbeg: set avg values for productized sensors
Timo Alho [Tue, 5 Nov 2013 12:51:15 +0000]
ARM: tegra: ardbeg: set avg values for productized sensors

bug 1401524

Change-Id: Ibc384ffc42e5a6ac0ec019794f53f377c5307f35
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/326697
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Tested-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agopower: max17048: add interrupt handler feature
Venkat Reddy Talla [Thu, 7 Nov 2013 07:27:40 +0000]
power: max17048: add interrupt handler feature

implement interrupt handler feature to generate interrupt
to wake up device from LP0 when battery state of charge is
low.
Bug 1355408

Change-Id: Icb12c507ca8c9eb4f6e7d58b0ea0fc48d462ed52
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/327530
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agoARM: dts: TN8:add max17048 ALRT gpio irq
Venkat Reddy Talla [Thu, 7 Nov 2013 07:24:53 +0000]
ARM: dts: TN8:add max17048 ALRT gpio irq

add gpio irq to detect voltage low when
vcell is below threshold value.
Bug 1355408

Change-Id: I165a3a9f87a781e8e649e496da8410b0bb6120bc
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/327529
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agopincntrl: add support for AMS AS3722 pin control driver
Bibek Basu [Fri, 25 Oct 2013 05:34:06 +0000]
pincntrl: add support for AMS AS3722 pin control driver

The AS3722 is a compact system PMU suitable for mobile phones, tablets etc.

Add a driver to support accessing the GPIO, pinmux and pin configuration
of 8 GPIO pins found on the AMS AS3722 through pin control driver and
gpiolib.
The driver will register itself as the pincontrol driver and gpio driver.

Bug 1394720

Original-author: Laxman Dewangan <ldewangan@nvidia.com>

Change-Id: I4106c6c6a267849849497cb7a3cfb58a63a83056
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Florian Lobmaier <florian.lobmaier@ams.com>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/309460
GVS: Gerrit_Virtual_Submit

5 years agoarm: tegra: assign rcv sel bit for t124 pinmux
Andy Park [Mon, 4 Nov 2013 19:56:44 +0000]
arm: tegra: assign rcv sel bit for t124 pinmux

Assign RCV SEL bit for T124 pinmux.

Change-Id: Ie069fefe05a27998137f058a03df51b06df00a45
Signed-off-by: Andy Park <andyp@nvidia.com>
Reviewed-on: http://git-master/r/326241
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agopinctrl: tegra: align mux enums and table for pincontrol as per TRM
Laxman Dewangan [Wed, 6 Nov 2013 10:27:49 +0000]
pinctrl: tegra: align mux enums and table for pincontrol as per TRM

Add missing entry and remove non-documented entry for pincontrol table
for Tegra124.

Change-Id: I9622d082640b980c9cc000f1f0e8dba2bf8c1dee
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/327064
Reviewed-by: Ashwini Ghuge <aghuge@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agopinctrl: tegra: align mux enums and table for pincontrol as per TRM
Laxman Dewangan [Wed, 6 Nov 2013 10:25:37 +0000]
pinctrl: tegra: align mux enums and table for pincontrol as per TRM

Add missing entry and remove non-documented entry for pincontrol table
for Tegra114.

Change-Id: Ic7878671ddf4be969282824d5534c3ede9d12b58
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/327063
Reviewed-by: Ashwini Ghuge <aghuge@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agopinctrl: tegra: add support for soc specific suspend/resume calls
Laxman Dewangan [Wed, 6 Nov 2013 10:24:54 +0000]
pinctrl: tegra: add support for soc specific suspend/resume calls

Change-Id: I511f1013be0b5625733a81eb1dfd2deb822909db
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/327062
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashwini Ghuge <aghuge@nvidia.com>

5 years agopinctrl: tegra: add APIs to access pincontrol from non-dt driver
Laxman Dewangan [Tue, 5 Nov 2013 15:10:10 +0000]
pinctrl: tegra: add APIs to access pincontrol from non-dt driver

Add APIs to access the pincontrol configuration from non-dt
driver and initialisation.

Change-Id: I638220c1ebac40a4adb8fa7ccd05ace9b7384724
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/326725
GVS: Gerrit_Virtual_Submit

5 years agopinctrl: tegra: add mux option for non-dt support
Laxman Dewangan [Tue, 5 Nov 2013 15:08:08 +0000]
pinctrl: tegra: add mux option for non-dt support

The non-dt mux option is defined in the mach/pinmux.h and hence
added these option in the pingroup table to look for non-dt mux option
when using the driver from board files.

Change-Id: Ic0c04513f4ebdc0ce8abab06f373518a6dc14dd5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/326724
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashwini Ghuge <aghuge@nvidia.com>

5 years agopinctrl: register pincontrol driver at early stage
Laxman Dewangan [Tue, 5 Nov 2013 14:45:00 +0000]
pinctrl: register pincontrol driver at early stage

Moving pincontrol driver registration to the postcore_init_sync
to get initialised before other driver start using it.

Change-Id: Icbd482760dbf1108449888e30ae25583bd89d7be
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/326723
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashwini Ghuge <aghuge@nvidia.com>

5 years agogpio: fix allocation in atomic context
Laxman Dewangan [Wed, 6 Nov 2013 13:28:55 +0000]
gpio: fix allocation in atomic context

For initialisation of the GPIO based on DT data, it allocates memory.
Hence calling the gpio initialisation based on dt node on non-atomic
context.

bug 1400884

Change-Id: I69b7a4be980078c1fa5e5e43f9c7bf24ecb97dd2
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/327106
GVS: Gerrit_Virtual_Submit

5 years agoRevert "media: nvavp: uninit nvavp in runtime PM"
Sridhar Lavu [Wed, 6 Nov 2013 15:15:57 +0000]
Revert "media: nvavp: uninit nvavp in runtime PM"

This reverts commit 6918965ec9dbf422ddd6468c0cabd4b5e6a82a01
since seems to be causing sanity regression

Bug 1254633 : original change
Bug 1401797 : sanity regression

Change-Id: I27efd4645f6565106b05dfc2d0410c53f19db040
Signed-off-by: Sridhar Lavu <slavu@nvidia.com>
Reverts-what-was-Reviewed-on: http://git-master/r/304210
Reviewed-on: http://git-master/r/327177
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Tested-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agousb: xhci: tegra: add dt support
Krishna Yarlagadda [Mon, 21 Oct 2013 12:35:03 +0000]
usb: xhci: tegra: add dt support

Add dt support for xhci driver

Bug 1357627

Change-Id: Ibdaebd8bb68e8000ab6a9e0fbe8de7fe62dc52e0
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/301796
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: dt: tegra: add xhci dt support
Krishna Yarlagadda [Wed, 16 Oct 2013 10:42:38 +0000]
ARM: dt: tegra: add xhci dt support

Add dt entries for all xusb supported boards

Bug 1357627

Change-Id: Ic04dada51e5f9f0b914274156b3de8cb4f514ec0
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/301795
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: xhci: tegra: dt support for xhci
Krishna Yarlagadda [Mon, 21 Oct 2013 12:33:31 +0000]
ARM: xhci: tegra: dt support for xhci

Modify board files to support dt entries for xusb

Bug 1357627

Change-Id: I23c3cbbb3390de198ffcbf4c89c85383a2139cf8
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/302832
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agousb: otg: tegra: Clear stray intr before enable
Krishna Yarlagadda [Tue, 8 Oct 2013 06:11:26 +0000]
usb: otg: tegra: Clear stray intr before enable

Clear status of pending interrupts before enabling interrupts
again. Doing both in a single write leaves out atleast one
instance of interrupt pending

Bug 1357627

Change-Id: I1e252e6cf2db6f9d7c1cd83e0d53c25a017cd964
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/301794
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agousb: xhci: tegra: Fix pmc & regulator for dalmore
Krishna Yarlagadda [Thu, 26 Sep 2013 04:22:53 +0000]
usb: xhci: tegra: Fix pmc & regulator for dalmore

Regulators should be enabled only if port is enabled
PMC port and xhci port are different in case of dalmore

Bug 1357627

Change-Id: Ieb0019d9d7b86be1f4616129fd0dd5a7dcff174b
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/301793
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: tegra: xhci: multi port support for dalmore
Krishna Yarlagadda [Wed, 25 Sep 2013 11:34:08 +0000]
ARM: tegra: xhci: multi port support for dalmore

Enable mulitple ports support on dalmore. Fix regulators
to handle this and add entry for missing ports in xusb data

Bug 1357627

Change-Id: Iae395bfe62ae9ac21dc28c7ed2b351d680081337
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/301792
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Henry Lin <henryl@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agovideo: tegra: dc: ignore invalid windows
Jon Mayo [Tue, 5 Nov 2013 20:52:05 +0000]
video: tegra: dc: ignore invalid windows

Walk through valid_windows bitmask to skip over invalid windows.
Mark invalid windows with a flag for easy checking.

Change-Id: Idda005b57ca8503462b01ef1193c993a73432e18
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/326796
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: host: Disable gk20a powergating
Arto Merilainen [Mon, 4 Nov 2013 15:17:33 +0000]
video: tegra: host: Disable gk20a powergating

This patch disabled gk20a powergating in order to increase LP0
stability.

Change-Id: Ia8e18e676167e8ffc033d261a658a15d0ace4afe
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/326699
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agovideo: tegra: host: suspend call prepare_poweroff
Arto Merilainen [Mon, 4 Nov 2013 12:00:17 +0000]
video: tegra: host: suspend call prepare_poweroff

Earlier finalize_poweroff was called only as part of save_state() and
therefore it was not automatically part of suspend. In practise the
callback was called as powergating was allowed for devices that
required finalize_poweroff() callback. However, if powergating is
disabled for a device and that device requires finalize_poweroff
callback, it will fail.

This patch makes nvhost to call finalize_poweroff callback during
suspend if powergating is not allowed for the device.

Change-Id: I01dae8dbb36ddcd902bb5ccfa93b1c5adbc6c940
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/326698
Reviewed-by: Chao Xu <cxu@nvidia.com>
Tested-by: Chao Xu <cxu@nvidia.com>

5 years agoarm: tegra12: soctherm: enable MEM zone
Diwakar Tundlam [Thu, 17 Oct 2013 23:31:35 +0000]
arm: tegra12: soctherm: enable MEM zone

Enable MEM zone for temperature sensing.
Force HW requirement of equal shutdown temps for GPU & MEM zones.

Bug 1342361

Change-Id: I0b870ca0dadbc9fec783fa190118bc5a85f17183
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/300880

5 years agosecurity: tlk_driver: interface to program VPR base/len
James Zhao [Wed, 16 Oct 2013 22:05:53 +0000]
security: tlk_driver: interface to program VPR base/len

Add interface for the kernel to program vpr base
address through TLK.
Expect phys addr of vpr base, and vpr size.

bug 1279160

Change-Id: I0ff6ef9783ac2bb6438afa0552f57a84e84bf567
Signed-off-by: James Zhao <jamesz@nvidia.com>
Reviewed-on: http://git-master/r/302404
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoxhci: tegra: remove write INTERPKT_DELAY in driver
Joy Wang [Tue, 29 Oct 2013 08:58:52 +0000]
xhci: tegra: remove write INTERPKT_DELAY in driver

As firmware will set
XUSB_CFG_HSPX_CORE_HSICWRAP.INTERPKT_DELAY to 0x30.
Remove this register write in driver.

Bug 1342607

Change-Id: Ic6197fe738ffbef820c463032650715d225b44f2
Signed-off-by: Joy Wang <joyw@nvidia.com>
Reviewed-on: http://git-master/r/304773
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: WK Tsai <wtsai@nvidia.com>
Reviewed-by: Henry Lin <henryl@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agousb: xhci: tegra: add delay for port direct to U3
joyw [Mon, 21 Oct 2013 08:31:55 +0000]
usb: xhci: tegra: add delay for port direct to U3

In xhci_bus_suspend, when driver direct port to U3,
need to wait for 10ms for port to direct to U3.

Bug 1386845

Change-Id: I3d214b3538813af5278aa1c00c73a215ad474f59
Signed-off-by: joyw <joyw@nvidia.com>
Reviewed-on: http://git-master/r/301707
Reviewed-by: WK Tsai <wtsai@nvidia.com>
Reviewed-by: Henry Lin <henryl@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoarm: mm: cpa: Only call update_page_count() with CPA
Alex Waterman [Tue, 5 Nov 2013 00:17:46 +0000]
arm: mm: cpa: Only call update_page_count() with CPA

If CPA is disabled this function call is not necessary. The
ifdef is inside the if block since it prevents the compiler
from complaining about an unused variable.

Bug 1393434

Change-Id: If76bbf11f4751a25236a6ebe8b87e354a219b571
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/326337
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agovideo: tegra: host: Force enable clock in resume
Terje Bergstrom [Wed, 6 Nov 2013 09:46:59 +0000]
video: tegra: host: Force enable clock in resume

Force enable clocks when calling .finalize_poweron.

Bug 1388078

Change-Id: Ie9b6388bb83a006de30ea5db7905339e7fd79541
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/327052
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agovideo:tegra:gk20a: enable mmu timeout handler
Kirill Artamonov [Tue, 5 Nov 2013 16:07:09 +0000]
video:tegra:gk20a: enable mmu timeout handler

bug 1355640
bug 1389783

Signed-off-by: Kirill Artamonov <kartmaonov@nvidia.com>
Change-Id: I5451e5411b0d5a536497a20516196c5a09508510
Reviewed-on: http://git-master/r/326728
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoARM: tegra: pass the bq2419x OTG/USB gpio
Laxman Dewangan [Wed, 6 Nov 2013 07:06:28 +0000]
ARM: tegra: pass the bq2419x OTG/USB gpio

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

5 years agopower: bq2419x: support for OTG/IUSB pin configurataion through GPIO on DT
Laxman Dewangan [Wed, 6 Nov 2013 06:47:37 +0000]
power: bq2419x: support for OTG/IUSB pin configurataion through GPIO on DT

Add the property parser for the GPIO to configure otg/iusb pin through DT.

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

5 years agopower: max77660: Reduce boost enable time
Rohith Seelaboyina [Wed, 23 Oct 2013 09:43:19 +0000]
power:  max77660: Reduce boost enable time

Reduce Boost enable time to 500us.

Bug 1390334

Change-Id: Ic1729ee257029ef28021683e96d2f1bf9e9339dc
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/302771
(cherry picked from commit 931205baa5cb1ec92ee052fe77e730450b5f5a11)
Reviewed-on: http://git-master/r/326666
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoHID: i2c-hid: Stop querying for init reports
Bibek Basu [Mon, 21 Oct 2013 04:21:46 +0000]
HID: i2c-hid: Stop querying for init reports

According to specifications, HID over I2C devices
are not bound to respond to query for INPUT
REPORTS. Thus dropping the call during init
as many devices do not respond causing error
messages during boot.

Bug 1372332

Cherry-picked from http://www.spinics.net/lists/linux-input/msg27869.html

Change-Id: Id6fd0f07f8f94060c9e3fad7349a12452a31da23
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/325939
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: tn8: Change Orientation vector.
Jordan Nien [Wed, 30 Oct 2013 07:57:58 +0000]
ARM: tegra: tn8: Change Orientation vector.

The change is for E1845 sensor module.

Bug 1347824

Change-Id: Iad36db0cebaf3519a31c9b8d2b390f3f6d456955
Reviewed-on: http://git-master/r/326593
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jordan Nien <jnien@nvidia.com>
Tested-by: Jordan Nien <jnien@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-by: Daniel Fu <danifu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: loose cpu edp power table calculation.
Roger Hsieh [Tue, 16 Jul 2013 05:56:25 +0000]
arm: tegra: loose cpu edp power table calculation.

T40X will be limited to 1.8Ghz if cpu edp power table is applied.
Set the temp limit to 50 to restore the limit to 1.9G for T40X.

Bug 1310571

Change-Id: I6588e193820c34e1c4a8f6d2c82ceedc797a941c
Reviewed-on: http://git-master/r/249522
(cherry picked from commit aa2de86416fceee8e5aa051982be87f2a19a263f)

Signed-off-by: Roger Hsieh <rhsieh@nvidia.com>
Change-Id: I46ca8ec84a02b177afdd60703764be60ab2476c5
Reviewed-on: http://git-master/r/326397
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agomedia: platform: tegra: OV5693 EEPROM support
David Wang [Tue, 5 Nov 2013 20:45:47 +0000]
media: platform: tegra: OV5693 EEPROM support

Add EEPROM read/write support for OV5693.

Bug 1390863

Change-Id: I01198c27f56bef953b33598f7866a26123c910de
Signed-off-by: David Wang <davidw@nvidia.com>
Reviewed-on: http://git-master/r/326313
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agofs: partitions: efi: Fix bound check
Antti P Miettinen [Tue, 5 Nov 2013 18:30:10 +0000]
fs: partitions: efi: Fix bound check

Use ARRAY_SIZE instead of sizeof to get proper max for label
length.

Bug 1401569

Change-Id: I98cfcca33bb8da18a791750ba8fa85d76a9afc05
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/326759
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>

5 years agopower: bq2419x: power on if usb cable insert/remove on power off state
Laxman Dewangan [Thu, 31 Oct 2013 10:41:21 +0000]
power: bq2419x: power on if usb cable insert/remove on power off state

Change-Id: I34a30106edf5642f4985c436913d875e7ac96ea8
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/310045
Tested-by: Chaitanya Bandi <bandik@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agopower: battery-gauge: add API to power on when usb cable insert/remove
Laxman Dewangan [Thu, 31 Oct 2013 10:39:19 +0000]
power: battery-gauge: add API to power on when usb cable insert/remove

Add APIs which configure the system pmic to power on when usb cable
insert/remove in power off mode.

Change-Id: I6e047719a92f2a472b79e86bede8d652559be19a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/310044
Tested-by: Chaitanya Bandi <bandik@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agopower: reset: palmas: add power on with USB cable insert/removal
Laxman Dewangan [Thu, 31 Oct 2013 10:38:30 +0000]
power: reset: palmas: add power on with USB cable insert/removal

Change-Id: I4df344c07fcc670819dbf841d57efcecd449a242
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/310043
Tested-by: Chaitanya Bandi <bandik@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoarm: config: tegra12: enable tegra wakeup monitor
Jiukai Ma [Thu, 31 Oct 2013 06:37:33 +0000]
arm: config: tegra12: enable tegra wakeup monitor

Enable wakeup monitor for active standby feature.

    Bug 1307966
    Bug 1297009

Change-Id: I00431762d5e522e1fa45b8850ead506172d50c39
Signed-off-by: Jiukai Ma <jiukaim@nvidia.com>
Reviewed-on: http://git-master/r/309983
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: loki: Increase PWM frequency
Anshul Jain [Wed, 30 Oct 2013 00:19:33 +0000]
arm: tegra: loki: Increase PWM frequency

Fan pwm is running at half the required frequency.
This change doubles the PWM frequency.

Bug 1364451

Change-Id: Ie19a51f11b2218e55e32a86fd4bb4a7d031dd4db
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/305129
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agovideo: tegra: dc: read syncpts for valid windows
Edgardo Handal [Tue, 5 Nov 2013 17:14:29 +0000]
video: tegra: dc: read syncpts for valid windows

Bug 1400213

Change-Id: I9961c61066a08b645700edbebc1154119105f6b5
Signed-off-by: Edgardo Handal <ehandal@nvidia.com>
Reviewed-on: http://git-master/r/326746
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agovideo: tegra: nvmap: don't copy vma on fork
Krishna Reddy [Mon, 4 Nov 2013 21:49:18 +0000]
video: tegra: nvmap: don't copy vma on fork

don't copy vma on fork to avoid race condition.

Change-Id: Ibaa4873a95bb868c87770286dc13e025794692d3
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/326245
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>

5 years agoarm: tegra12: soctherm: check for fuse revision
Diwakar Tundlam [Fri, 1 Nov 2013 22:05:26 +0000]
arm: tegra12: soctherm: check for fuse revision

Check CP fuse ATE revision for both old and new formats.

Bug 1399184
Bug 1291108

Change-Id: I26cc6b52210d86a7a320ae121482157b3b6bcf66
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/325766

5 years agoARM: tegra: RODATA: Fix for normal OS
Antti P Miettinen [Mon, 4 Nov 2013 13:31:35 +0000]
ARM: tegra: RODATA: Fix for normal OS

The tegra_generic_smc is not present in normal OS.

Change-Id: I5d265841cfb6fc1ebe8fe51b9341fab408ef7ddc
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/326083
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>

5 years agoxhci: tegra: load xusb fw file by async api
Henry Lin [Fri, 18 Oct 2013 11:43:22 +0000]
xhci: tegra: load xusb fw file by async api

By using request_firmware_nowait(), which is an asynchronous version
of request_firmware(), to load xusb firmware, driver can avoid the
deadlock that occurs when request_firmware() is called without
udev service in presence.

Bug 1370816
Bug 1381552

Change-Id: Id0ef45b224634a1f210646add9a8f0f2c015a4e1
Signed-off-by: Henry Lin <henryl@nvidia.com>
Reviewed-on: http://git-master/r/301713
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agofuse: cleanup unwanted fuse related data
Shardar Shariff Md [Thu, 31 Oct 2013 09:36:21 +0000]
fuse: cleanup unwanted fuse related data

cleanup of unwanted fuse related data as
a part of migration of fuse driver

Bug 1380004

Change-Id: I78ff9f6b1d3a27ae0ba0369ad9692c40e9e24bfd
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/310037
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agovideo: tegra: dsi: Fix explicit host trigger calls
Animesh Kishore [Tue, 22 Oct 2013 12:27:04 +0000]
video: tegra: dsi: Fix explicit host trigger calls

Bug 1381539

Change-Id: I2f58267a51b2e6365716fe787d157fc327b02f87
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/326442
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoEDP: tn8: add consumer data for as364x
Timo Alho [Tue, 29 Oct 2013 09:13:18 +0000]
EDP: tn8: add consumer data for as364x

add system edp consumer data for as364x flash device

Bug 1394505

Change-Id: I2faf217329d2e4e0ec7730b92ae13cfe852467ca
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/304821
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Tested-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agomedia: video: tegra: as364x: new sysedp support
Timo Alho [Tue, 29 Oct 2013 09:11:15 +0000]
media: video: tegra: as364x: new sysedp support

add support for revised system EDP framework

Bug 1394505

Change-Id: I4b69ae1f486a1a4d8b5da816b25410381438e49b
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/304820
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoEDP: add API to query current power state
Timo Alho [Tue, 29 Oct 2013 08:24:05 +0000]
EDP: add API to query current power state

Add sysedp_get_state API function call to query current power state of
sysedp consumer.

Change-Id: I667a848e269836b7dba652a7929a5fbce6ef8d82
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/304819
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoArm: tegra: add tegra wakeup monitor support
Jiukai Ma [Thu, 31 Oct 2013 06:35:13 +0000]
Arm: tegra: add tegra wakeup monitor support

Add the paltform data of tegra wakeup monitor to enable it.

Bug 1307966
Bug 1297009

Change-Id: Iabf43dfe26db8b06b09536cac24c181ca0c0acc7
Signed-off-by: Jiukai Ma <jiukaim@nvidia.com>
Reviewed-on: http://git-master/r/304862
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoarm: tegra: add function to enter LP0 from cpuidle
Prashant Gaikwad [Tue, 22 Oct 2013 06:29:08 +0000]
arm: tegra: add function to enter LP0 from cpuidle

Bug 1254633

Change-Id: I8c69d238877615a594bed6542462873f897e0ad4
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/309496
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: csi: remove csi.c
Kushal Shah [Mon, 4 Nov 2013 21:35:04 +0000]
ARM: tegra: csi: remove csi.c

csi.c is used by dsi driver for t30 SOC.
As t30 is no longer supported, removing csi.c.

Bug 1379870

Change-Id: I26df7fc1eec7a222fba17a8585e0d7efb71858bf
Signed-off-by: Kushal Shah <kshah@nvidia.com>
Reviewed-on: http://git-master/r/326243
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoarm: tegra: add rtc timer to wake from lp0
Prashant Gaikwad [Wed, 23 Oct 2013 11:46:56 +0000]
arm: tegra: add rtc timer to wake from lp0

When device is in LP0 all timers are off except RTC.
Use this timer when we enter LP0 from cpuidle.

Bug 1254633

Change-Id: I6887aae221b27be095ea213bac70a110081d3d64
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/303230
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: add config for LP0-in-idle state
Prashant Gaikwad [Wed, 30 Oct 2013 07:48:22 +0000]
arm: tegra: add config for LP0-in-idle state

Bug 1254633

Change-Id: I7130eb07f4b738db3c8fcc6a11c103741f4a72fd
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/309484
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoi2c: tegra: handle Tegra pm notifier events
Prashant Gaikwad [Wed, 30 Oct 2013 12:49:30 +0000]
i2c: tegra: handle Tegra pm notifier events

Bug 1254633

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

5 years agoRevert "i2c: tegra: restore i2c after resume from LP0"
Prashant Gaikwad [Wed, 30 Oct 2013 14:01:43 +0000]
Revert "i2c: tegra: restore i2c after resume from LP0"

This reverts commit 98d2ffb58e7649eb158367a0f4d675939fe5abef.

Instead of using domain for this purpose notifiers will be used.
Change http://git-master/r/#/c/310064 is pushed to achieve this.

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

5 years agoARM: tegra: Loki: Add orientatioin
Xiaohui Tao [Thu, 31 Oct 2013 01:26:04 +0000]
ARM: tegra: Loki: Add orientatioin

The new board has the chip rotated 90 degree.
Add another entry for the FAB 01 unit.

Change-Id: I60779cc59b251141bcd86c2c1432f5f9575fb4b5
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/309867
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agovideo: tegra: host: Move busy from ELPG residency
Terje Bergstrom [Sat, 2 Nov 2013 05:50:00 +0000]
video: tegra: host: Move busy from ELPG residency

Move nvhost_module_busy() for ELPG residency query to the debugfs
wrapper. The query is called also from pmu_destroy(), which causes
a race.

Change-Id: Ib25bd3119052a9fbc35d5c13c0741e5a06d5ddcc
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/325902
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agovideo: tegra: host: dbg interface power ioctl blcg
Mayank Kaushik [Fri, 1 Nov 2013 06:02:29 +0000]
video: tegra: host: dbg interface power ioctl blcg

To turn off BLCG with the debugger interface's ioctl,
write to therm_gate_ctrl_blk_clk instead of writing
to all 60 registers in gating_desc gk20a_blcg_gr.

The profiler was seeing fluctuations in counter values
when using the gating_desc gk20a_blcg_gr register to
turn blcg off/on. The desktop GPU driver instead writes
to therm_gate_ctrl_blk_clk to control blcg. Using the
same approach here makes the intermittence go away.

Change-Id: I2548d457c4a3f7573383c77112eb60f850420fe7
Signed-off-by: Mayank Kaushik <mkaushik@nvidia.com>
Reviewed-on: http://git-master/r/323895
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoarm: tegra12: soctherm: use global chipid variable
Diwakar Tundlam [Mon, 28 Oct 2013 21:52:50 +0000]
arm: tegra12: soctherm: use global chipid variable

Bug 1342361

Change-Id: Ia96f1ddc30556b1fe862a6e1280e61f496821978
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/304530

5 years agoARM: tegra12: clock: Add SDMMC clocks for DDR mode
Alex Frid [Wed, 18 Sep 2013 22:16:12 +0000]
ARM: tegra12: clock: Add SDMMC clocks for DDR mode

Defined separate SDMMC clocks for DDR mode. They are associated with
the same physical clock controls as HS200 and SDR104 mode clocks but
have different max clock limits, and no voltage dependency.

Updated SDMMC dvfs tables in HS200/SDR104 mode.

Bug 1372817
Bug 1371250

Change-Id: I1ef2b7302003ebdf0bf8145eacf66ceb022eb520
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/298500
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: dvfs: Allow GPIO # 0 for DFLL PWM control
Alex Frid [Sun, 3 Nov 2013 07:02:31 +0000]
ARM: tegra: dvfs: Allow GPIO # 0 for DFLL PWM control

Zero is a valid GPIO number. No need to bail out when GPIO # 0 is
specified as DFLL PWM buffer control. Also no need to request GPIO
for direct one-wire PWM configuration. Respectively updated CL-DVFS
initialization.

Change-Id: I663101d04e41311989340e635144e3fde872721a
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/325937
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: dvfs: Fix DFLL undershoot guard-band
Alex Frid [Sun, 3 Nov 2013 06:24:03 +0000]
ARM: tegra: dvfs: Fix DFLL undershoot guard-band

Fixed output voltage mapping for DFLL undershoot guard-band
calculation in PWM mode.

Change-Id: If397c476adf41167e4c61aa97c618eba1fed57b3
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/325936
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>