5 years agoRevert "arm: tegra: make sure that the PG request is accepted by PMC"
Bharat Nihalani [Fri, 4 Oct 2013 12:30:36 +0000]
Revert "arm: tegra: make sure that the PG request is accepted by PMC"

This reverts commit 7028bfdcaee06241d1691400ccb73afe0a2c659e since it
causes issues with power-gating GPU.

Bug 1382374

Change-Id: I0a67a4c11e99f85164f2dfb1a0065597bbc2a2b2
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/281770
Reviewed-by: Automatic_Commit_Validation_User

5 years agoRevert "arm: tegra: poll CLAMP_STATUS"
Bharat Nihalani [Fri, 4 Oct 2013 12:29:23 +0000]
Revert "arm: tegra: poll CLAMP_STATUS"

This reverts commit 8c73a49068b7cde77d9e466f00a30fa1280c9c26 since
it causes issues with power-gating GPU

Bug 1382374

Change-Id: Ic8fd1483f88d66b22548d559b86043807bc6315b
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/281769
Reviewed-by: Automatic_Commit_Validation_User

5 years agoRevert "video: tegra: host: Allocate default hwctx handler"
Bharat Nihalani [Fri, 4 Oct 2013 16:14:03 +0000]
Revert "video: tegra: host: Allocate default hwctx handler"

This reverts commit fa8ac014c5320ca2f30bee184996e2f01400bb00
that was made for Bug 1355069 in http://git-master/r/280148

Bug 1382308
Bug 1382303

Change-Id: Ib97a058b2cd8752ec84d6d5b9809c07f4f0f89d4
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/281802

5 years agoFixup! mmc: host: tegra: Remove unwanted force_tuning check
Shridhar Rasal [Fri, 4 Oct 2013 12:46:00 +0000]
Fixup! mmc: host: tegra: Remove unwanted force_tuning check

Commit 24554dd1dddbe4b9cc00e0f78176fbe0f6a7dbd6 adds retuning
With commit 0bec4918d858f9a0e4de89c099e95baa36766c78 extra
force_tuning check added. Removing unwanted check.

Change-Id: I71a667641bfccf0c047f28c879ffc5549de1e4e8
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/281778
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoxhci: tegra: only enable vbus owned by xusb
Henry Lin [Mon, 16 Sep 2013 06:15:25 +0000]
xhci: tegra: only enable vbus owned by xusb

The vbus regulators are shared between xhci and echi host
controller. Only the port owner should enable corresponding
vbus regulator.

Bug 1348463

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

5 years agoarm: tegra12: config: enable LPAE
Adeel Raza [Wed, 2 Oct 2013 20:43:53 +0000]
arm: tegra12: config: enable LPAE

Bug 1379902

Change-Id: If975040118966e97469bf5b4e48d983f18f4ae5f
Signed-off-by: Adeel Raza <araza@nvidia.com>
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/280499

5 years agoarm: tegra12: config: fix android defconfig
Adeel Raza [Wed, 2 Oct 2013 20:41:39 +0000]
arm: tegra12: config: fix android defconfig

Make tegra12_android_defconfig compliant with ksetup and menuconfig.

Bug 1379902

Change-Id: Ia03cee60107ddfe417a8509e9998acc18eec67c2
Signed-off-by: Adeel Raza <araza@nvidia.com>
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/281129
Reviewed-by: Automatic_Commit_Validation_User

5 years agoRevert "Revert "ARM: tegra: t124: Disable smmu for sdmmc""
Jiejing Zhang [Wed, 2 Oct 2013 18:38:01 +0000]
Revert "Revert "ARM: tegra: t124: Disable smmu for sdmmc""

This patch cause Loki boot crash with random null pointer reference
if boot with SD Card inserted.

This reverts commit 7e35056354ef450f5bd248a4662f56c223e50142.
Orignal patch Change-ID:I07338c6c7975c5a055092ddfd2bf53762fed712b

Change-Id: Ia0bd37054dc611c082c956e52ff3b96311ade99d
Signed-off-by: Jiejing Zhang <jiejzhang@nvidia.com>
Reviewed-on: http://git-master/r/281214
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: pcie: fix invalid memory access
Preetham Chandru R [Thu, 3 Oct 2013 08:17:08 +0000]
ARM: tegra: pcie: fix invalid memory access

tegra_pcie_isr was trying to access the registers when they were un-mapped.
This patch makes sure that the tegra_pcie_isr access the registers only
after they are iomapped.

Bug 1375242

Change-Id: I8c2cb7eff9cd83584f978c6a45ab864389900fca
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/281295
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agonet: wireless: bcmdhd: set channel in AP mode
Om Prakash Singh [Tue, 1 Oct 2013 09:55:48 +0000]
net: wireless: bcmdhd: set channel in AP mode

set_channel is removed in kernel 3.8 from cfg80211_ops. Configuration
AP channel in start_ap

Bug 1352126

Change-Id: Ib75a0bdaece2e5bf7ec046148e70649f817c6e48
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/280670
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years ago!FIXUP: staging:iio: stm8t143 light sensor
Ajay Nandakumar [Thu, 3 Oct 2013 19:52:28 +0000]
!FIXUP: staging:iio: stm8t143 light sensor

Change-Id: I1d89f9e40a10d84feea5afa0a30d1796a1f8f9a1
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/281494
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoMerge changes from dev-kernel-3.8
Ajay Nandakumar [Thu, 3 Oct 2013 18:15:24 +0000]
Merge changes from dev-kernel-3.8

Merge changes from
 commit id :beb42c16d939d2df932dcd174ba38b888ad93b46
till :
 commit id :35a8e75f146cb2dddb21e7f3691f853d9747f962

Also this fixes issues L4t compilation issues due to
patch http://git-master/r/#/c/280491 .Fixed it as a part of the same
path

5 years agovideo: tegra: host: gk20a: Add pmu prints
Arto Merilainen [Thu, 26 Sep 2013 08:23:57 +0000]
video: tegra: host: gk20a: Add pmu prints

We often receive bugs where the PMU simply does not answer to ELPG
messages. This patch adds calls to make the driver print PMU status
in ELPG_ALLOW_ACK and INIT_PG timeouts.

Bug 1368260
Bug 1374320

Change-Id: Ie66b71d58dad1638cfa87064e2d0363f68dc044a
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
(cherry picked from commit 35a8e75f146cb2dddb21e7f3691f853d9747f962)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: tegra: ardbeg: Unconnected modem rail.
Raj Jayaraman [Tue, 1 Oct 2013 22:07:38 +0000]
arm: tegra: ardbeg: Unconnected modem rail.

Power rail isn't connected on E1736. Board rework fixes
this issue, modify regulator name accordingly.

Bug 1373545

Change-Id: I22e7ea4ba149f926cd30637d40c37a84f0c1bd69
Signed-off-by: Raj Jayaraman <rjayaraman@nvidia.com>
(cherry picked from commit 822521168f5c5749cbfaa77953b62673225e2355)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: dc: support all formats on T124
Jon Mayo [Fri, 27 Sep 2013 23:18:10 +0000]
video: tegra: dc: support all formats on T124

Change-Id: I4f138daa014d8d688a74205658b94d4c904f4823
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/280874
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Xue Dong <xdong@nvidia.com>
Reviewed-by: Wen Yi <wyi@nvidia.com>
Tested-by: Wen Yi <wyi@nvidia.com>
(cherry picked from commit 1aebf628c0ea2cb3d62c07a0d20587f16db132fa)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: gk20a profiler interface
Ken Adams [Fri, 27 Sep 2013 18:09:31 +0000]
video: tegra: gk20a profiler interface

Framework for gk20a gpu profiler interface.
Bug 1228597

Change-Id: Id34614d59193e81c9f8ab9ed8ae173b38de71bb7
Signed-off-by: Ken Adams <kadams@nvidia.com>
(cherry picked from commit 9ff625237d1615f2b99c49e0f7b06f9f18e8b615)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: remove unused prototypes
Jon Mayo [Wed, 18 Sep 2013 23:25:01 +0000]
video: tegra: remove unused prototypes

some prototypes slipped in that don't belong.

Change-Id: Icb1c054038d5cd0170bf5e992a9942cab5e53537
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/280872
Reviewed-by: Automatic_Commit_Validation_User
(cherry picked from commit 438b30ceb95dc9785f03deea3a5c78e3f4c3e090)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: fix gk20a debugger ctx ops issues
Ken Adams [Thu, 26 Sep 2013 20:14:35 +0000]
video: tegra: fix gk20a debugger ctx ops issues

Fix broken pointer in gr_gk20a_ctx_patch_write().
Fixes a bug with regard to number of offsets in
    gr_gk20a_exec_ctx_ops().
Respond to error from gr_gk20a_get_ctx_buffer_offsets().
Minor comment cleanup, dead code removal.
Bug 1228585

Change-Id: Ie01b704724fce28e1706c2b63e457f7dc76d939e
Signed-off-by: Ken Adams <kadams@nvidia.com>
Reviewed-on: http://git-master/r/279474
(cherry picked from commit abe10dd7d6424cd4c0c5e371c06fdbceb6cdfc75)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra12: clock: call registered callbacks for cbus
Kaz Fukuoka [Wed, 25 Sep 2013 23:29:28 +0000]
ARM: tegra12: clock: call registered callbacks for cbus

Bug 1178433
Ported from Tegra11 Change-Id: I92f642f3fc38b9527b685959600eb8126aa34718

Change-Id: I139c47212ac49ae5df053d75516c0784b671df34
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/279085
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit 8cbe234f7df512e46fcca320463c9205f1b26fbe)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: gk20a: Add barrier before udelay
Kaz Fukuoka [Tue, 17 Sep 2013 20:54:16 +0000]
video: tegra: gk20a: Add barrier before udelay

Add read barrier between write and udelay
to make sure write is done before udelay.

Change-Id: I21679bd0ef063e100ec6457fc26f7d4cb8bf53ea
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/278558
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit bb63bf3cd2a58cb6e3fef40d5276903bdb630099)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoextcon: palmas: fix spelling/grammar
Edgardo Handal [Tue, 1 Oct 2013 16:13:39 +0000]
extcon: palmas: fix spelling/grammar

Change-Id: I4e1299142c4a7110869820096d10231f359ace90
Signed-off-by: Edgardo Handal <ehandal@nvidia.com>
Reviewed-on: http://git-master/r/280787
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 7f1eecb65a1ec15a48a2ab50b27d78ae5df5d740)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: add wakeup sources tuning functions
Alexandre Courbot [Thu, 29 Aug 2013 03:32:35 +0000]
ARM: tegra: add wakeup sources tuning functions

Add tegra_set_wake_gpio() and tegra_set_wake_irq() functions that allow
board files to customize wakeup sources.

Wake sources are fixed and currently defined in wakeups-t11x.c. Defining
custom wake sources for a given project is difficult and can only be
done by:

1) Having compilation conditionals into wakeups-t11x.c to perform
per-board modifications (as is done for Dalmore currently), or
2) Duplicating wakeups-t11x.c and all the code it contains and compiling
the corresponding wakeups sources file for the board.

Neither or these methods can scale, and both actually break the ability
to boot the same kernel binary on different boards. This patch exports
functions that the board init functions can use to modify the wakeup
sources as they need, keeping board-specific changes into board-specific
files.

Change-Id: I2803e5a76f2fc7eaaa9bd343c904719b018357bd
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-on: http://git-master/r/267689
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit edf35e53811a3793a4ed1f729906016698dd6cad)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoinclude: bq2419x: Remove useless platform data
Darbha Sriharsha [Tue, 1 Oct 2013 10:10:54 +0000]
include: bq2419x: Remove useless platform data

Remove unused elements of bq2419x platform data

Bug 1367264

Change-Id: I5654ccdcb1079e2567281ccf6c7ab7b495dede42
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/280674
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit a768b55ac0f8b6e1b34a489aca7ebf75bbe2797a)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: ardbeg: Add entries for sata
Mallikarjun Kasoju [Tue, 1 Oct 2013 11:57:34 +0000]
ARM: tegra: ardbeg: Add entries for sata

Bug 1376043

Change-Id: Ie6b6c8ce37d9b09e63745347aeca971ea9f48f8d
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/280716
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 79fc2094502a9d3e4c9357806dd69defc67b488d)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agopinctrl: tegra: update T124 driver
Ashwini Ghuge [Tue, 1 Oct 2013 14:00:27 +0000]
pinctrl: tegra: update T124 driver

Change-Id: Ifcd744c07f7bfe3dc7050cc5cfbd84de95f3f415
Signed-off-by: Ashwini Ghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/280757
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 1b5c76536b869624840ccc1a1ad546a1ca657c30)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agogpio: of: add support for configuring GPIOs default
Laxman Dewangan [Tue, 1 Oct 2013 13:52:08 +0000]
gpio: of: add support for configuring GPIOs default

Add support to provide the list of GPIOs which need to be
set as input, output with low and output with high.

These values will be provided from DTS and GPIOs are configured
during registration with gpiolibs.

Change-Id: If46fa55311265707133eb80ce3fe80684a97af6e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/280741
(cherry picked from commit 61eef7b8a888337fc451714ef3604fd505002639)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agogpio: tegra: initialize chip->dev with driver's dev
Laxman Dewangan [Tue, 1 Oct 2013 13:38:43 +0000]
gpio: tegra: initialize chip->dev with driver's dev

This is used when gpio core wants to print the message
using dev_*.

Change-Id: I033375b5af8d4df731bf11dba9662798b44dcab8
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/280740
(cherry picked from commit 5b238b4c6d75ea80df5cbdb388fad3fe1e2906c4)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: pinmux: validate pointer before accessing it
Laxman Dewangan [Tue, 1 Oct 2013 13:34:58 +0000]
ARM: tegra: pinmux: validate pointer before accessing it

The GPIO driver should access the pinmux pointer after the pinmux
table initialization. Otherwise this will crash the system with NULL
pointer access.

Validate the pointer before accessing it to avoid the kernel crash
due to NULL pointer access.

Change-Id: I289af0b0ba4377fa3528da18078040d8badda743
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/280738
(cherry picked from commit 6aa6ed69ba49ff799a130feb6d75f890f1605de3)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: tegra: fix compile warning latency_allowance.c
Philip Rakity [Tue, 3 Sep 2013 21:03:18 +0000]
arm: tegra: fix compile warning latency_allowance.c

min requries that types match

Change-Id: Iee9203f1d2bc6694194e3cbc2221052bb463fd35
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/269685
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit d8d29f9e86ced222f2dd55f74e38158f09daf837)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: make MSENC firmware read-only
Deepak Nibade [Mon, 30 Sep 2013 10:17:40 +0000]
video: tegra: host: make MSENC firmware read-only

- use dma_alloc_attrs() to allocate memory for MSENC firmware
- pass 'DMA_ATTR_READ_ONLY' to above API to make the memory
  read-only

Bug 1309863

Change-Id: I6d18064de1069ef55b6ffaf36219b892ed09d162
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/280233
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
(cherry picked from commit a9175249f3ab197b8e1e76d2bf1d30c19afdd068)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agostaging: light: cm3217: Use iio sysfs interface
Sri Krishna chowdary [Thu, 26 Sep 2013 11:29:26 +0000]
staging: light: cm3217: Use iio sysfs interface

Cm3217 has been using input subsystem's sysfs interface
although it has been moved to iio subsystem.
Hence, use iio subsystem to maintain a uniform standard
for all light sensors.
Maintaining this standard helps user space light sensor
driver to identify and get information it needs to
expose to Android.

Bug 1363485

Change-Id: Ief8712166290b0d8d328a5c7203d069036cf2d5e
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/279351
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
(cherry picked from commit cd7a0b7ff879cecd7b978da02be8eb19e0377544)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: Allocate default hwctx handler
Terje Bergstrom [Mon, 30 Sep 2013 05:51:29 +0000]
video: tegra: host: Allocate default hwctx handler

If the driver does not supply a context handler, allocate a default
one.

Bug 1355069

Change-Id: I6d78bc222b573e029e266359da612d913667d138
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/280148
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Tested-by: Juha Tukkinen <jtukkinen@nvidia.com>
(cherry picked from commit 05de84256709e8b985e4aa42f7339f768b4a3ec7)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: Enable timeout by default
Terje Bergstrom [Fri, 27 Sep 2013 10:24:55 +0000]
video: tegra: host: Enable timeout by default

An earlier refactoring caused timeout detection to be off by default.
Enable it again.

Bug 1355069

Change-Id: Idff6d159e8ff063b769646389ce35a181c62f69b
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/279790
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Tested-by: Juha Tukkinen <jtukkinen@nvidia.com>
(cherry picked from commit 9ea9a796da236f9b967e85bb526de77d756ea0dc)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: Check context save/restore
Terje Bergstrom [Mon, 30 Sep 2013 06:06:22 +0000]
video: tegra: host: Check context save/restore

Check if context supports save and restore before calling it.

Bug 1355069

Change-Id: I91c247e97a1bc324332a50572949d316659aa6f6
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/280154
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
(cherry picked from commit 80d4b23cf24045bfba890fe01d9fdb78acb1d01b)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: gk20a: fix gk20a load sysfs
Prashant Malani [Tue, 1 Oct 2013 04:54:18 +0000]
video: tegra: gk20a: fix gk20a load sysfs

Return a zero load value when gk20a is railgated,
without waking up gk20a just to query the load.

This prevents unnecessary rail ungate of gk20a during
low power use cases.

Change-Id: Ibc4160e57e534bfef70ffb2b7d866ea78c03b3da
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/280553
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit 028d8d86ca2c97623c99ec790645060cf25e3fb9)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: tegra12: clock: Add CEC support
Kaz Fukuoka [Mon, 30 Sep 2013 23:54:45 +0000]
arm: tegra12: clock: Add CEC support

Ported from Tegra11 change Iecb9b4e1449f3ef6d68b533ce9cc9177aad68e85

Change-Id: I9e505e0274df081e339bae12dd0b8c62a57d09b1
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/280473
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit 741d400b44f0bca63690587e8e65ad296ab5381d)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: gk20a: Faster GPCPLL rate change
Kaz Fukuoka [Wed, 25 Sep 2013 21:17:58 +0000]
video: tegra: gk20a: Faster GPCPLL rate change

Fix to make GPCPLL parameter change faster.
- Use faster bypass clock.
- Use shorter GPCPLL lock polling interval.

bug 1364240

Change-Id: Ia84f4536bfb00832c9f8c731547b892a5b953897
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/279032
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit 53afcd50d7903c4b1ce60fac1539066858f14077)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra12: clock: Clean FIXME comments
Kaz Fukuoka [Tue, 1 Oct 2013 00:03:46 +0000]
ARM: tegra12: clock: Clean FIXME comments

Ported from Tegra11 change Ia18d7d2493f53b55ae83ac1b27cfce07db8e00a0

Change-Id: I8da50a16280d9a1ef332151b85e54d78f9389ce0
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/280477
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit 7bccc9bd90667b866947bed5eea40b18face085f)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: clock: Fix section mismatch warning
Alex Frid [Tue, 1 Oct 2013 03:13:40 +0000]
ARM: tegra: clock: Fix section mismatch warning

Fixed section mismatch warning for tegra_periph_clk_safe_rate_init()
function. This function indeed can be called at run time. Hence,
removed __init annotation, and made sure it does nothing if called
after boot rate is recorded.

Change-Id: I8739e6b44582f0fc642c446e4ead0ae7b32083ea
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/280538
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit ce3ca32b96127a2e2198d94d4e96efe118f67a97)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra12: clock: add sdmmc3 to sclk
Kaz Fukuoka [Mon, 30 Sep 2013 21:44:46 +0000]
ARM: tegra12: clock: add sdmmc3 to sclk

Add sdmmc3 to sclk.
Increasing sclk freq helps sdmmc3 KPI.

Ported from Tegra11 change Ia42d66d36b6d738b7e0415b40b3b675265c4fac3

Change-Id: Ib5ef8a0a496e2a80f3855bbb14586fcfe9f2ef5c
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/280427
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit e68ad6830c3172a3fd619d5842e8f671ed6e0923)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra12: clock: add sdmmc4 to sclk
Kaz Fukuoka [Mon, 30 Sep 2013 21:38:48 +0000]
ARM: tegra12: clock: add sdmmc4 to sclk

Add sdmmc4 to sclk as a client.
Increasing sclk freq helps sdmmc4 KPI.

Ported from Tegra11 change I06b9e1f2e80e092e2ef866e1712e410174be5da3

Change-Id: I41adec0c2b800f99f49735b2e821c334db7fbe45
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/280426
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit 4d8f80ab573f2358cdb50b8d29f68f429bb1111f)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra12: clock: add camera to sclk
Kaz Fukuoka [Mon, 30 Sep 2013 21:36:00 +0000]
ARM: tegra12: clock: add camera to sclk

Add camera to sclk as a client.
Increasing sclk freq helps camera KPI.

Ported from Tegra11 change Ia7e5f2572de18a197c7e614882fd2d8fcdd975c1

Change-Id: Ib47ab488eb3474b496d8c0ebafd7e4089e852595
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/280425
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit e2bd1c78ee94cc6a571569576d34bc679a4140c7)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: Tegra12: Clocks: Update dvfs table for sbus and host1x
Krishna Sitaraman [Thu, 26 Sep 2013 23:57:17 +0000]
ARM: Tegra12: Clocks: Update dvfs table for sbus and host1x

Bug 1342499

Change-Id: I137db2e1471809d1a0cf856632ef101bc576396b
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/279584
Reviewed-by: Chao Xu <cxu@nvidia.com>
(cherry picked from commit 429be7735f3ddd7d54edd4015ac66089d7600ee0)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: Tegra12: Clocks: Remove xusb from dvfs table
Krishna Sitaraman [Thu, 26 Sep 2013 23:40:26 +0000]
ARM: Tegra12: Clocks:  Remove xusb from dvfs table

Xusb clock frequency are not voltage dependent and hence need not be
part of the dvfs table.

Bug 1342499

Change-Id: Ia11aa8787a22b0876a3285211a63445471db319d
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/279553
Reviewed-by: Chao Xu <cxu@nvidia.com>
(cherry picked from commit 5753279998289f23a8d4ccd4d86ca05a114edd4e)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: Tegra12: Clock: Update display and hdmi with latest dvfs table.
Krishna Sitaraman [Fri, 27 Sep 2013 00:06:53 +0000]
ARM: Tegra12: Clock:  Update display and hdmi with latest dvfs table.

Bug 1342499

Change-Id: I2c3c1397776262626fecd3b7698939d90e370c64
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/279586
Reviewed-by: Chao Xu <cxu@nvidia.com>
(cherry picked from commit 7bea4c0b0878e56387bf6fa2830c4932d936b5d9)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: Tegra12: Clock: Update Shadow Cpu frequencies with latest dvfs table
Krishna Sitaraman [Fri, 27 Sep 2013 00:01:09 +0000]
ARM: Tegra12: Clock: Update Shadow Cpu frequencies with latest dvfs table

Bug 1342499

Change-Id: I78d697cd41a3122fde38a8e04791b49253a38894
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/279585
Reviewed-by: Chao Xu <cxu@nvidia.com>
(cherry picked from commit af2e17a523c525871a275a34a1190b25d47bcaeb)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: Tegra12: Clock: Update soc speedo binning value
Krishna Sitaraman [Thu, 26 Sep 2013 23:55:20 +0000]
ARM: Tegra12: Clock:  Update soc speedo binning value

Update soc speedo binning value based on latest released soc table.

Bug 1342499

Change-Id: Id8d6a114b8afa67bc7a0a0d0911d7c748c00f4ab
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/279583
Reviewed-by: Chao Xu <cxu@nvidia.com>
(cherry picked from commit 4c396f4211c456d4b14e6d1cbb9c7937727f1e7a)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: tegra: smmu: separate IOVA space for DC
Krishna Reddy [Fri, 27 Sep 2013 00:08:01 +0000]
arm: tegra: smmu: separate IOVA space for DC

DC controllers no longer share IOVA space with other HW controllers.
All DC controlers would share same IOVA space on T114.
On T124, each DC controller has its own IOVA space.

Change-Id: I35fd380aa5344faf1933f876204180619f3759cb
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/279597
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>
(cherry picked from commit f8ffc361e312eeb2de8c9aa6c0a6cf5976082a0f)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: dc: move syncpts for sync framework
Rakesh Iyer [Fri, 6 Sep 2013 23:26:10 +0000]
video: tegra: dc: move syncpts for sync framework

Forward the syncpoints for sync framework when controller is disabled.

Bug 1219339

Change-Id: I550fb12da5ef3274df60b02c896e335b4da4e9be
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/271739
(cherry picked from commit a1c6c26de71dff54cd24e8880442a23854447281)
Reviewed-on: http://git-master/r/279191
(cherry picked from commit f49f7f30ec819496668a5181d93ebc5dfa479666)
Reviewed-on: http://git-master/r/280490
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Michael I Gold <gold@nvidia.com>
Tested-by: Michael I Gold <gold@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
(cherry picked from commit 0e69b4bfc2e98ba670af4af11836033138e086be)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agommc: tegra: Handle retune request case in tuning
R Raj Kumar [Thu, 19 Sep 2013 09:17:28 +0000]
mmc: tegra: Handle retune request case in tuning

Need to handle retune request case also in the tuning procedure.
We set retune flag if we remove (un-plug) SD card.
So, tuning should be done next time when SD card is inserted.

Bug 1371498

Change-Id: I3b54eb3953bb75a5ac27c5d52e4b08d0e5da357c
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/280584
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
(cherry picked from commit 31c2878542d0454c440162831d0afaafd0887ee6)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoinput: gpio_keys: Fix disordered wakeup key reports
Allen Yu [Mon, 30 Sep 2013 08:27:59 +0000]
input: gpio_keys: Fix disordered wakeup key reports

- If power key is released before gpio_keys_gpio_report_wake() called,
power key press-release events pair will be reported twice and supress
display from coming back up.

- If power key is released before enabling device driver to receive
interrupts, power key release interrupt will be lost due to the previous
pending key press intterupt, and we can only get the released key state.

Change to call gpio_keys_gpio_report_wake() and gpio_keys_report_state()
in gpio_keys_resume_noirq() callback to avoid the disordered reports.

Bug 1372600
Bug 1346985

Change-Id: I8e35f6012f2fc600f4dd830e1c191f9f2782e621
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/280231
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-by: Hunk Lin <hulin@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 5f196133b774e29c168977003afb2e7bd6c21671)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: Add invalid syncpt support
Rakesh Iyer [Wed, 18 Sep 2013 01:23:54 +0000]
video: tegra: host: Add invalid syncpt support

Allow creating sync fence file descriptors from Tegra host invalid syncpoints.

Bug 1219339

Change-Id: Ic04c89b03627cb300e134fdd43bf43e818f18c26
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/276980
(cherry picked from commit 0836f599258fcfa74e6d6f39cd9d05335c802301)
Reviewed-on: http://git-master/r/279192
(cherry picked from commit 65a63f572ac0309672aa4f325d492a952eea12d6)
Reviewed-on: http://git-master/r/280491
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Michael I Gold <gold@nvidia.com>
(cherry picked from commit 2e234d9d0a770aaeef96389c03faf5e84b696e84)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: tegra: make sure that the PG request is accepted by PMC
Prashant Gaikwad [Mon, 30 Sep 2013 12:28:59 +0000]
arm: tegra: make sure that the PG request is accepted by PMC

The role of START bit has changed, beginning T35. To account for
bug 863229 start bit will now be cleared by HW when PMC accepts
the request to powergate or unpowergate the partition. So in order
to powergate/unpowergate a partition SW needs to do the following.

1. Check to see if the partition is already in the correct state, by looking at the
PWRGATE_STATUS register. If not then SW reads the PWRGATE_TOGGLE register to see if START bit is 0. If not poll
till start bit is set to 0.
2. After that program the PWRGATE_TOGGLE register with start bit set as 1 and choose the
required partition to be powrgated.
3. Ideally then SW can poll to check the START bit going back to 0, to indicate
that PMC has accepted the request.
4. Then poll the STATUS register to make sure the required partition is
powergated/unpowergated.

Bug 1376147

Change-Id: I5d7818681d1766bf7eca3846ea7d5d7a4d42a109
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/280287
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit 7028bfdcaee06241d1691400ccb73afe0a2c659e)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoclk: palmas: Ignore the absence of clock platform data
Laxman Dewangan [Tue, 1 Oct 2013 03:39:34 +0000]
clk: palmas: Ignore the absence of clock platform data

Register the Palmas clock driver even if there is no clock platform
data.

bug 1379983

Change-Id: I29bdeff6fa2b21a8ead231429624b6da5fe70f29
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/280536
(cherry picked from commit e7d9d97174c0376baf02a923f6cdb9aaf39e1e74)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: tegra: ardbeg: added speaker AMP EDP data
Dara Ramesh [Thu, 19 Sep 2013 13:52:56 +0000]
arm: tegra: ardbeg: added speaker AMP EDP data

added EDP states in audio platform data for speaker AMP
support.

Bug 1359934

Change-Id: Icdfeb7c8066cfa9c0b095a7b1d8b054be7f53357
Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-on: http://git-master/r/276711
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit d3aa55f8c4baab8d03652581f88277f6d63605d5)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agosoc: tegra: rt5639: add speaker AMP EDP support
Dara Ramesh [Thu, 19 Sep 2013 13:58:08 +0000]
soc: tegra: rt5639: add speaker AMP EDP support

a) registered speaker AMP EDP client.
b) implemented throttle callback function for EDP.

bug 1359934

Change-Id: I9e7a5b39131f043570c1ad0a870a9a644bb2be5c
Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-on: http://git-master/r/276712
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Timo Alho <talho@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit 770b2fa49f8fda038706b9ccecbddd143594d16c)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: gk20a: Handle non-engine flts
Arto Merilainen [Mon, 30 Sep 2013 13:15:43 +0000]
video: tegra: host: gk20a: Handle non-engine flts

MMU fault handler did not handle correctly regular MMU faults in
some cases. If the fault was not coming from any unit but the host
itself, the fault handler failed to handle the fault correctly.

This patch makes the necessary changes to allow proper clean up also
in those cases.

Change-Id: Icd14e65a64f82aa4143d55dab0ee18b5368d260a
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/280296
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit 93fb0658778d5f19da63798b20d9e229c4b971ce)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: gk20a: Fix race in MMU fault
Arto Merilainen [Mon, 30 Sep 2013 13:44:44 +0000]
video: tegra: host: gk20a: Fix race in MMU fault

MMU fault disables PMU and enables it after the fault is handled. During
this time the runlist must be empty as otherwise the initialisation may
cause PMU hang. Currently, we load an empty runlist before starting PMU
initialisation, however, we do not keep runlist lock and therefore opening
a new channel will trigger premature runlist update.

This patch modifies MMU fault code to keep lock runlists locked until the
PMU is surely booted.

Change-Id: Ic98b928670ac32f6392b9473f1eac74418203f9b
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/280302
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit 280ea25eac97637d4d6f1a72584d942a8c0094dc)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovidoe: tegra: host: gk20a: Fix prime table
Arto Merilainen [Mon, 30 Sep 2013 11:10:07 +0000]
vidoe: tegra: host: gk20a: Fix prime table

Prime number table had value 39 which is *not* a prime. Change it
to 29.

Change-Id: I55bc4c2595e464ca6798c5e9b498503c800bbb76
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/280247
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ken Adams <kadams@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit 0537dce1d2e077ac4d05fe2dd7bd6d3a55c37ca4)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agousb: serial: baseband: fix compile warning
Philip Rakity [Mon, 9 Sep 2013 12:39:07 +0000]
usb: serial: baseband: fix compile warning

use flush_work rather then flush_work_sync
code is the same .. see workqueue.h

Change-Id: I5d198759e614d68411d9ed7315ff695112dd7f98
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/272033
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 3cd5d04255b009228d9b667b06adcfc7849839f2)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoalsa: hda: use correct function definition for suspend
Philip Rakity [Wed, 25 Sep 2013 12:46:31 +0000]
alsa: hda: use correct function definition for suspend

The 2nd argument of suspend was removed a long time ago.

/nvidia/DEV_KERNEL/kernel/sound/pci/hda/patch_hdmi.c:1804:2:
warning: initialization from incompatible pointer type [enabled by default]
/nvidia/DEV_KERNEL/kernel/sound/pci/hda/patch_hdmi.c:1804:2:
warning: (near initialization for 'generic_hdmi_patch_ops.suspend') [enabled by default]

Change-Id: I53e8aab3e037e21509333e7252cd382bd7fef2e4
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/278917
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 2f7de9b7754993897221836249ea6683cbe1279f)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: laguna: regulator for touch
Bibek Basu [Thu, 26 Sep 2013 06:24:35 +0000]
ARM: tegra: laguna: regulator for touch

Add regulator for touch driver

Bug 1372324

Change-Id: I2ac5cf9acc9c92d63ec21d2e20e40e33b0aa045b
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/279202
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 8fdb108f9b170facbd8eb8ab483ce4e170fe02c3)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agousb: gadget: tegra: Reduce CPU boost trigger size
Rakesh Bodla [Tue, 24 Sep 2013 06:12:44 +0000]
usb: gadget: tegra: Reduce CPU boost trigger size

Decrease the CPU frequency boosting trigger size.

Bug 1343869

Change-Id: Ice4584196c053f06f58ca662dd7a4f67a7c57ab3
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/278169
(cherry picked from commit cdd87642793e0eb42a4119ec21bfe78a8d75af99)
Reviewed-on: http://git-master/r/279763
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit 7ce46eb9866a3a12a6244244a08d4e7706faf86e)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: ardbeg: add support to use usb fuses
Petlozu Pravareshwar [Wed, 4 Sep 2013 08:43:44 +0000]
ARM: tegra: ardbeg: add support to use usb fuses

Add support to use usb fuses as usb fuses
are programmed properly.

Change-Id: Id3894ad9021f366fcce8716f294b6b0475f039c9
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/270013
Tested-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit b7e254392644d5a7af9bae076f9e7285cf60242c)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: tegra: poll CLAMP_STATUS
Prashant Gaikwad [Mon, 30 Sep 2013 12:10:24 +0000]
arm: tegra: poll CLAMP_STATUS

In current implementation SW is polling REMOVE_CLAMPING_CMD to
check the CLAMP remove status. As per the HW guys this register
is write only and does no make sense polling it. Instead use
CLAMP_STATUS for polling.

Bug 1376147

Change-Id: I2f2a383da64731bd16ff8caeffbadc0b9ac9b3c0
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/280267
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit 8c73a49068b7cde77d9e466f00a30fa1280c9c26)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agofury: dts: add i2c node for max17048
Hayden Du [Tue, 1 Oct 2013 02:58:33 +0000]
fury: dts: add i2c node for max17048

Change-Id: If70ac02f0178c01d33bf15f729c5682c06edbc9c
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/280535
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit b1a2395e365cec5f730ba29283d7949e9c59abdb)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: TN8: move PMIC and fixed regulators to DT
Laxman Dewangan [Mon, 30 Sep 2013 12:40:14 +0000]
ARM: tegra: TN8: move PMIC and fixed regulators to DT

Move the PMIC and fixed regulators registartion to DT for TN8.

Change-Id: I54505502919592db9b516bee91a9e4a919b4ea37
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/280301
(cherry picked from commit 4e2b8c1c75bfc58673efccb52ab83419dab6a4da)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: tegra: ardbeg: Update sharp 25x16 video mode
Animesh Kishore [Mon, 23 Sep 2013 11:31:32 +0000]
arm: tegra: ardbeg: Update sharp 25x16 video mode

- Bypass ram
- Reduce horizontal front porch

Change-Id: Iec8bacaa93c7439098d36f750f11100bc2763fb9
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/277857
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
(cherry picked from commit d6ac6f64d3f51e2c58e7cb66f9aaef6eaacce009)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: config: tegra:Enable USB Wake support for LP0
Jeetesh Burman [Tue, 24 Sep 2013 06:35:25 +0000]
ARM: config: tegra:Enable USB Wake support for LP0

Enabled USB_CABLE_WAKE_SUPPORT in l4t defconfig to support
usb-otg wake-up across LP0 and to prevent self wake-up across
LP0.

Bug 1370216
Bug 1320527

Change-Id: Ied50bc2da95a1de321c51188af884aaecd9b4c96
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/278209
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
(cherry picked from commit 7b0c3a3862ceabc6f69e76714f0599b503bae8b3)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra12: ardbeg:operate CSIA/B/E DPD mode
Terry Wang [Tue, 24 Sep 2013 10:02:20 +0000]
ARM: tegra12: ardbeg:operate CSIA/B/E DPD mode

Enable CSIA/B/E DPD mode when camera init.
Disable CSIA/B DPD mode when rear camera is on.
Enable CSIA/B DPD mode when rear camera is off.
Disable CSIE DPD mode when front camera is on.
Enable CSIE DPD mode when front camera is off.

Bug 1352773

Change-Id: Ib842d3cd6d516c9561d4857537c0e9e2b2c89b1d
Signed-off-by: Terry Wang <terwang@nvidia.com>
Reviewed-on: http://git-master/r/267767
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit c040f576baee74c843574119a51ac2e3c6ede0f9)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agomisc: tegra-profiler: fix defined unused warning
Philip Rakity [Fri, 27 Sep 2013 10:36:47 +0000]
misc: tegra-profiler: fix defined unused warning

/nvidia/DEV_KERNEL/kernel/drivers/misc/tegra-profiler/pl310.c:267:44:
warning: 'l2x0_int' defined but not used [-Wunused-variable]

totally ifdef out pl310.c if CONFIG_CACHE_L2X0 is not
defined.

modify main.c to use call the init_event code if the
CONFIG is defined otherwise handle like the module is not there.

Change-Id: I1d050638c46af6af3b8411c1aa299c9a60b41866
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/279787
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit 4ee42249ae580d9eee9b7a28bd4eda553d566fc1)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: Loki: Change orientation for MPU6050C
Xiaohui Tao [Fri, 27 Sep 2013 22:40:53 +0000]
ARM: tegra: Loki: Change orientation for MPU6050C

The MPU6050C is mounted behind the display. Change orientation
to match that.

Bug 1374793

Change-Id: Ia147b96a501096f6cf59221af7a5ce2dbb353f35
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/278424
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit de145bdd258eb68068372abe062690d0d4018d6a)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoinput: touch: raydium: Support for Loki touch panel
Xiaohui Tao [Mon, 23 Sep 2013 17:32:57 +0000]
input: touch: raydium: Support for Loki touch panel

Change-Id: Idd48fede69dc8952df2489cf53d213bb3e9c48cc
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/277925
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit 3b192fc70e38e9a2ea975f6c5c40fd8e258d68bd)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: tn8: put sensors platform data to DT
Daniel Fu [Fri, 13 Sep 2013 03:20:06 +0000]
ARM: tegra: tn8: put sensors platform data to DT

Extract Acc+Gyro+compass Platform data from board file to Device Tree.
Disable Acc+Gyro+compass Device Registration in board file for TN8.

Bug 1367235
Bug 1363572

Change-Id: I452dab33a64c8c31f01cb837f20a4db8e42dbf91
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/274075
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit 895518772d5701ab839040f0df118a682e26686d)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: dvfs: Add GPU scaling trip-points interfaces
Alex Frid [Sat, 28 Sep 2013 02:17:32 +0000]
ARM: tegra: dvfs: Add GPU scaling trip-points interfaces

Added common interfaces to set GPU scaling trip-points.

Bug 1273253

Change-Id: I25f5870c00b1e3b8fb4fdcd685900512954a9125
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/280079
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit 840ed28c2d5f35b3c6c8f8ce9c6a044a4bc57705)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: configs: Enable Nvidia Shield LED driver
Jun Yan [Wed, 25 Sep 2013 01:26:21 +0000]
arm: configs: Enable Nvidia Shield LED driver

Enable the LED USB driver on loki

Bug 1344169

Change-Id: I61941c8c8748219ebec4d4770a60c551037e3085
Signed-off-by: Jun Yan <juyan@nvidia.com>
Reviewed-on: http://git-master/r/278587
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit 7b3adbef0d37bddc5553401102b33301ca2706f5)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: dvfs: Construct safe thermal DVFS table
Alex Frid [Sat, 28 Sep 2013 01:50:22 +0000]
ARM: tegra: dvfs: Construct safe thermal DVFS table

Made sure maximum voltage across all temperature ranges is used for
DVFS in case when scaling cooling device registration failed, or the
device was not binded to thermal zone

Bug 1273253

Change-Id: Iea2ba91db6174ee8e43dafb60f6bfee162ba65da
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/280078
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit e58fbf1ba72f6dd8bdb7b67c2401ffb123562315)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: clock: Update GPU clock sysfs nodes
Alex Frid [Sat, 28 Sep 2013 06:23:05 +0000]
ARM: tegra: clock: Update GPU clock sysfs nodes

On Tegra12 for clarity renamed limits nodes in /sys/kernel/tegra_gpu/
directory: "gpu_cap_level" to "gpu_cap_rate" and "gpu_floor_level" to
"gpu_floor_rate". This directory was just recently introduced, and the
respective nodes are not used by user space power management, yet.
List of all tegra_gpu/ nodes after re-naming:

/sys/kernel/tegra_gpu/gpu_available_rates
/sys/kernel/tegra_gpu/gpu_cap_rate
/sys/kernel/tegra_gpu/gpu_cap_state
/sys/kernel/tegra_gpu/gpu_floor_rate
/sys/kernel/tegra_gpu/gpu_floor_state
/sys/kernel/tegra_gpu/gpu_rate

On Tegra11 added /sys/kernel/tegra_gpu/ directory with only 2 nodes:

/sys/kernel/tegra_gpu/gpu_available_rates
/sys/kernel/tegra_gpu/gpu_rate

Change-Id: I04596c7bffef8d589a09644b2882b02860c8a4fc
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/280086
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit e63c8e496a63043f4a40e28f9e4ab61909b6eca7)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: clock: Set safe rate for peripheral clocks
Alex Frid [Thu, 23 May 2013 04:01:17 +0000]
ARM: tegra: clock: Set safe rate for peripheral clocks

Initialize peripheral clocks for modules left under reset by bootloader
to safe oscillator frequency (clocks for modules taken out of reset
by bootloader must be at safe rate already).

Change-Id: I2ee0f1d24522570c3326107ad9b18760e7abb12d
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/280085
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit 618cbe6dbe4f9177493b2291f26262d17651bb7b)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: dvfs: Fix predict millivolts interface
Alex Frid [Wed, 18 Sep 2013 05:09:36 +0000]
ARM: tegra: dvfs: Fix predict millivolts interface

Predict millivolts interface selected pll or dfll mode tables based
on target rate and dynamic dvfs state: rail mode, and current dvfs
clock rate. Since interface clients may not be serialized with run
time rate/voltage scaling (e.g., edp client) it opens possibility for
races. On the other hand there is no need to use current dynamically
changes state to select scaling table - comparing target rate, with
initialized once dfll rate range is sufficient. This commit updated
predict millivolts interface accordingly.

Bug 1370030

Change-Id: I89167607d346ed5f2dfe1eedc27aabacd87e7303
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/276139
(cherry picked from commit 712e59d7f1f432719c5de51b03062954e63b6f1f)
Reviewed-on: http://git-master/r/277521
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit 4851b9e44d31e4703060f04b551f79655f50e788)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoArm: tegra: Update MCCPU actmon parameters
Puneet Saxena [Tue, 24 Sep 2013 06:36:51 +0000]
Arm: tegra: Update MCCPU actmon parameters

With existing MCCPU parameters Emc scales up
always from emc MAX value. This is not needed as
static cpu-emc ratio boosts emc immediately.

The change sets mccpu parameters as to scale emc freq
aggressively from a lower base value.

Bug 1338326

Change-Id: I784166833d0387c734c8e13fa633d96f2e345998
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/278197
(cherry picked from commit eb780212eb1b48dd4c7683f0e72f31612fc0f0bb)
Reviewed-on: http://git-master/r/280206
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
(cherry picked from commit bbbb89d06606f11b975bf66d0c29204f6cd78b0e)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoArm: tegra: Enable MCCPU Actmon device
Puneet Saxena [Mon, 29 Jul 2013 14:32:33 +0000]
Arm: tegra: Enable MCCPU Actmon device

It enables MCCPU Actmon device to send emc scaling
request by counting emc request originated from CPU.

It adds "mon_cpu.emc", emc client.

Bug 1338326

Change-Id: Ia20ff90587c57c4b0d12f37dde8fdae6a8a1fb40
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/244779
(cherry picked from commit f6584fedc175153e5d0ad2006f83b5c4e26bcb71)
Reviewed-on: http://git-master/r/278898
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>
(cherry picked from commit 12cb0e24c7cd7f497e938a3858654a19633d4bb3)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: tegra: Handle down interrupt of actmon
Karthik Ramakrishnan [Tue, 24 Sep 2013 04:47:26 +0000]
arm: tegra: Handle down interrupt of actmon

When the cpu load starts going down, the down interrupt is
disabled. This stops further interrupts and if missed, the emc
frequency is locked to high.

The change re-enables down watermark interrupts if gets disabled
due to emc lock.

Bug 1338326

Change-Id: I838eb05b313f9ddc287226c25f23e115fe117599
Signed-off-by: Karthik Ramakrishnan <karthikr@nvidia.com>
Reviewed-on: http://git-master/r/278131
(cherry picked from commit bbc6fff3b3fc0f964dba1ed6a22280d45119bd16)
Reviewed-on: http://git-master/r/280205
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Puneet Saxena <puneets@nvidia.com>
Tested-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
(cherry picked from commit fc68f39f4010db692892723086f4ae00622140ac)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoArm: tegra: Remove emc clock client for cpu
Puneet Saxena [Fri, 19 Jul 2013 15:16:19 +0000]
Arm: tegra: Remove emc clock client for cpu

It removes emc clock client created for scaling emc freq
due to cpu to emc static coupling.ratio.

Now emc scaling due to cpu request is taken care by
MCCPU actmon device.

Bug 1338326

Change-Id: I320d37396a773102ecd7fdfa1934834db9bf34df
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/244778
(cherry picked from commit 26688f560926a8afd8d44364e79aa84143065979)
Reviewed-on: http://git-master/r/278897
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>
(cherry picked from commit be31933caee68a5b47559513564b9b7dc1844350)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: dc: Enable CRCs on ASIM
Tuomas Kulve [Fri, 27 Sep 2013 06:59:57 +0000]
video: tegra: dc: Enable CRCs on ASIM

The new synchronised CRC read logic works in ASIM as well.

Bug 1289889

Change-Id: I295f93cfcff6486b8fd407a94ac98a4ae124f573
Signed-off-by: Tuomas Kulve <tkulve@nvidia.com>
Reviewed-on: http://git-master/r/279715
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Michael Frydrych <mfrydrych@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
(cherry picked from commit 811d442a55f55f02258a2da486cc10225b25cb4d)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: tegra12: select TEGRA_LP2_CPU_TIMER
Matt Craighead [Thu, 26 Sep 2013 19:41:11 +0000]
arm: tegra12: select TEGRA_LP2_CPU_TIMER

This was already selected on tegra11 but had not been propagated
forward to tegra12.

Bug 1376366

Change-Id: I65aea394e0bdab82228b6f911991a14db75298f3
Signed-off-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-on: http://git-master/r/279467
Reviewed-by: Edgardo Handal <ehandal@nvidia.com>
Tested-by: Edgardo Handal <ehandal@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Adeel Raza <araza@nvidia.com>
Reviewed-by: Adeel Raza <araza@nvidia.com>
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
(cherry picked from commit 96ec750fdc31108733b576a441701d9ac453955f)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agostaging iio: adc: palmas: fix typo palams->palmas
Laxman Dewangan [Mon, 30 Sep 2013 11:36:05 +0000]
staging iio: adc: palmas: fix typo palams->palmas

Change-Id: Ie95d936fc2295559df889c640f52c41c9a048a71
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/280246
Reviewed-by: Automatic_Commit_Validation_User
(cherry picked from commit 496eb9e29844042ddb201b7dd28983c547cca3eb)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: add correct TN8 battery dtb file
Venkat Reddy Talla [Mon, 30 Sep 2013 12:06:37 +0000]
ARM: tegra: add correct TN8 battery dtb file

 Bug 1368060

Change-Id: I00d436577c2be95023bb1711bd23fdca8a0ff706
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/280260
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit a10c50a4e0a5d5fe3c1ae471061709d696a580ff)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: no warnings on powergate.c
Philip Rakity [Thu, 5 Sep 2013 12:43:09 +0000]
ARM: tegra: no warnings on powergate.c

c requires declaration occur before code

Change-Id: I4f06d5c20602fc7c8f43030683e4c3a46b5e501a
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/270827
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit af15900375a8602354094c43eb5abbcd93f3955e)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: dts: tegra124: add i2c node for max17048
Venkat Reddy Talla [Mon, 30 Sep 2013 12:12:46 +0000]
ARM: dts: tegra124: add i2c node for max17048

 Bug 1368060

Change-Id: I33857c2cb480345c80e3b45a29ea5ad14599fc7b
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/280265
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit b431b7efe87b3d3ce3908ba353037ad8b663e144)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: Add a flag to mark 3d EDP dev
Arto Merilainen [Mon, 30 Sep 2013 07:05:37 +0000]
video: tegra: host: Add a flag to mark 3d EDP dev

We used actmon property to indicate whether the current device is
the gpu for edp. However, this is now incorrect as both VIC and
MSENC have actmons and gk20a has no actmon.

This patch adds a separate flag to indicate that the device should
be used as a GPU EDP device.

Change-Id: I0c8c5cfc215788b923c4f9b20b7afed8f2d44129
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/280182
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit ce45f8227377693388bb0a8cff1eef9a3c6cba2c)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoasoc: codecs: function definition should match prototype
Philip Rakity [Wed, 25 Sep 2013 11:31:41 +0000]
asoc: codecs:  function definition should match prototype

/nvidia/DEV_KERNEL/kernel/sound/soc/codecs/rt5639.c:2426:2:
warning: initialization from incompatible pointer type [enabled by default]
/nvidia/DEV_KERNEL/kernel/sound/soc/codecs/rt5639.c:2426:2:
warning: (near initialization for 'soc_codec_dev_rt5639.suspend') [enabled by default]

Change-Id: I77c3f801b00c186673ebe5870cb2c074f7404bf5
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/278878
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 2e4dc9c352517881e1f6aceaba845c7c4b407387)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: gather filter sysfs entry
Arto Merilainen [Fri, 12 Apr 2013 06:04:56 +0000]
video: tegra: host: gather filter sysfs entry

This patch adds a sysfs entry for informing userspace whether
the gather filter is enabled or not.

Bug 1259826

Change-Id: I5a4dfde9200132d7adb1694822160d1d0e4d6054
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/277199
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit b7cf6162d57bf3aa8b0d4888c02ffcc4a3d5c3ee)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: Move sysfs caps under host1x
Arto Merilainen [Wed, 10 Apr 2013 06:34:52 +0000]
video: tegra: host: Move sysfs caps under host1x

Capabilities entry was placed under syncpoint structures. Because
the capabilities entries represent generally host1x hardware, it is
more appropriate to place those capabilities directly under host1x.

Bug 1259826

Change-Id: Iaa3837db251191660e13592ba098f93c5fd76d05
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/277198
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit 938674e1f59b3d53cb1fd6eb0a6098bb6cb021a1)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: Initialize gather filter
Arto Merilainen [Fri, 12 Apr 2013 05:58:16 +0000]
video: tegra: host: Initialize gather filter

"Gather filter" is a hardware feature that allows making certain
opcodes illegal inside gathers (currently setclass). This patch
adds support for enabling gather filter in host1x hardware that
support the feature.

Bug 1259826

Change-Id: I68d7909403d1bdf4f2f87fe4be34921d7d7ad391
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/277197
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit b3002ad8b989699f2da13e3ac87f69b12f856f92)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: Userspace deliver class ids
Arto Merilainen [Tue, 9 Apr 2013 07:32:14 +0000]
video: tegra: host: Userspace deliver class ids

This patch adds support to deliver class id information for each
command buffer.

Bug 1259826

Change-Id: I18807511db3f9eb2041f2f31b13df655ae7cdd93
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/277196
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit 5a204198a4c0120f78cfb713c412ea7a40759411)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: Push setclass before cmdbuf
Arto Merilainen [Tue, 9 Apr 2013 07:35:12 +0000]
video: tegra: host: Push setclass before cmdbuf

This patch adds support for delivering class information as a part of
command buffer. Host1x class is changed before executing the command
buffer.

Bug 1259826

Change-Id: Ie9fa9391f6763db4dbac1f581e4656b81b7596ad
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/277195
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit 72cad404b1437ac7c9dfaa35e8e2f8229416edcd)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra12: pinmux: Set PR2 GPIO to high
Manoj Gangwal [Fri, 27 Sep 2013 10:20:28 +0000]
ARM: tegra12: pinmux: Set PR2 GPIO to high

Few audio codec module has a detection issue
due to failing of i2c probe.
Set TEGRA_GPIO_PR2 to high which reset and powered
I2c on the audio codec.

Bug 1362725

Change-Id: I44c8af63793a5e1f514358618a5deecab2dcd526
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/279792
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chandrakanth Gorantla <cgorantla@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashwini Ghuge <aghuge@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit 05e2bb71d59622b1f058f80b953146b0e432ec44)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: Rail gate gk20a on display off
Terje Bergstrom [Sat, 28 Sep 2013 05:15:25 +0000]
video: tegra: host: Rail gate gk20a on display off

Enable gk20a rail gating at bootup. When display is on, prevent rail
gating by using PM QoS requets. When display is off, remove the
request to allow rail gating GPU.

This is a workaround and should be reverted once GPU rail gating
exit latency is low enough.

Change-Id: I19613ae32c7af5780dfcbb86ee8a8c99eb90913a
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/280084
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
(cherry picked from commit be06c1b68a9427d38673f9a00612d93414263be0)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agofury: update YOKU 3900mA battery model data for fury
Hayden Du [Mon, 30 Sep 2013 07:30:44 +0000]
fury: update YOKU 3900mA battery model data for fury

Change-Id: Icac7582b655e65ce274084b4c7aa39f38b239a7c
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/280184
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit c35542a8b051be56fbdc34fd882ae521c87aa6c6)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>