5 years ago!FIXUP: boot issues with latest merge from main
Bharat Nihalani [Mon, 30 Sep 2013 11:11:06 +0000]
!FIXUP: boot issues with latest merge from main

Change-Id: I47e7cbfd840df5871d24664fdf15311e7ba65e23
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/280243
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ajay Nandakumar M <anandakumarm@nvidia.com>
Tested-by: Ajay Nandakumar M <anandakumarm@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

5 years agoMerge 3.8 changes up to main-promo-2013.09.26-B1
Dan Willemsen [Fri, 27 Sep 2013 02:48:35 +0000]
Merge 3.8 changes up to main-promo-2013.09.26-B1

Change-Id: I42592fdb268a1c77523744fdc9076be6c130b68c
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

5 years agoarm: tn8: add regulator client for OV5693
Hayden Du [Tue, 24 Sep 2013 09:34:13 +0000]
arm: tn8: add regulator client for OV5693

bug 1349826

Change-Id: Ibe1e6c475918971fb21cf82f66f18bc975e5c9f7
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/278299
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoxhci: tegra: Add support for xusb use sata lane
joyw [Thu, 12 Sep 2013 06:47:54 +0000]
xhci: tegra: Add support for xusb use sata lane

For some boards, Laguna, use sata lane for SS port 1. Add
support to set relevant register,XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL_*_0,
in pad ctontrol.

Bug 1366525

Change-Id: I409843c9a8d67ab5438357d550f7ddda0fda4495
Signed-off-by: joyw <joyw@nvidia.com>
Reviewed-on: http://git-master/r/273556
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: pcie: Use DPD to save power
Jay Agarwal [Tue, 17 Sep 2013 15:20:21 +0000]
ARM: tegra: pcie: Use DPD to save power

Bug 1320273

Change-Id: I601a2c5ecc87c56dfa003f597ddcdf4bc27a2056
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/275813
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agovideo: tegra: host: Use version in vic fw name
Terje Bergstrom [Sun, 22 Sep 2013 11:31:08 +0000]
video: tegra: host: Use version in vic fw name

Use version in the name of vic firmware.

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

5 years agovideo: tegra: host: Static syncpt data for Tegra12
Terje Bergstrom [Sun, 22 Sep 2013 11:27:53 +0000]
video: tegra: host: Static syncpt data for Tegra12

Assign sync points at compile time for Tegra12 clients.

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

5 years agoARM: dma-mapping: Undefined debug_dma_platformdata
Hiroshi Doyu [Tue, 24 Sep 2013 04:57:12 +0000]
ARM: dma-mapping: Undefined debug_dma_platformdata

Fix undefined reference to debug_dma_platformdata

Bug 1373902

Change-Id: I77544b64f84e8e43a9bfb873f6b2af375d341f0d
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/278134
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoarm: tegra12x: add reference count for venc partition
Prashant Gaikwad [Fri, 20 Sep 2013 06:09:06 +0000]
arm: tegra12x: add reference count for venc partition

We need to have reference count for VE partition as it
has multiple clients in T124.

Bug 1310335

Change-Id: Iea326b8494bec17c7a1e7c2c22d7d112a0121f91
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/276962
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agovideo: tegra: nvmap: increase file id limit
Krishna Reddy [Wed, 4 Sep 2013 22:03:34 +0000]
video: tegra: nvmap: increase file id limit

increase file id limit to max for nvmap clients.

Change-Id: I2657932847ae0372eb870809fb136a76d71255ce
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/270304
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: add NVMAP_USE_FD_FOR_HANDLE config
Krishna Reddy [Mon, 23 Sep 2013 20:54:20 +0000]
video: tegra: add NVMAP_USE_FD_FOR_HANDLE config

Add NVMAP_USE_FD_FOR_HANDLE config option to allow
enabling/disabling use of Fd's to represent NvMap
handles in user space.

Change-Id: I4a072dad2401d56a8a5651c318e61d71fcf59003
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/277999
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: host: use DmaBuf API
Krishna Reddy [Tue, 27 Aug 2013 19:25:20 +0000]
video: tegra: host: use DmaBuf API

use DmaBuf API under nvmap memmgr interface.
convert nvmap handle id/ref to dmabuf and use dmabuf API.
Bug 1356091

Change-Id: Ie171de3a918a94ee390d5ef13ea0aadd9f75b35c
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/266896
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: gk20a: add synchronous unmap
Kevin Huang [Sat, 21 Sep 2013 00:02:01 +0000]
video: tegra: gk20a: add synchronous unmap

Add synchronous unmap to FIXED_OFFSET buffers by polling ref-counts.

Bug 1341303

Change-Id: I105428eb3ac926c2e47e410e7af09be42f5e38da
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/277423
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agomisc: tegra-cec: Updates for T124
Ankita Garg [Tue, 17 Sep 2013 21:29:09 +0000]
misc: tegra-cec: Updates for T124

In T124, the RX_REGISTER_FULL interrupt is cleared
by reading the RX_REGISTER instead of writing to the
INT_STAT register as before.

Bug 1364229

Change-Id: Ib080a48910304553b0752a3ede55ab0d7653dd77
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/275982
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agovideo: tegra: hdmi: T148 Prod settings
Tom Cherry [Thu, 8 Aug 2013 01:07:09 +0000]
video: tegra: hdmi: T148 Prod settings

Bug 1250270
Bug 1316334

Change-Id: I652cc2dd49961bb6ed8cfecd6bd85f6f67699f28
Signed-off-by: Tom Cherry <tcherry@nvidia.com>
Reviewed-on: http://git-master/r/261662
(cherry picked from commit 2b051b7000c36de9fdf4142f04379e375af300e3)
Reviewed-on: http://git-master/r/277970
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agoARM: tegra11: power: Specify PMU undershoot gaurd-band
Alex Frid [Sun, 12 May 2013 07:06:36 +0000]
ARM: tegra11: power: Specify PMU undershoot gaurd-band

Specified PMU undershoot gaurd-band 100mV for tegratab, macallan, and
pluto boards.

Bug 1285525

Change-Id: I950630c1d3208657fde0a8dda7a538c60cfc706d
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/227756
(cherry picked from commit 31a740326f55b922edc0b3c89839dc2332b4ed35)
Reviewed-on: http://git-master/r/275555
(cherry picked from commit 5b96474ba092c4e32ddece3574d4c63b0ae5400a)
Reviewed-on: http://git-master/r/277520
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra12: dvfs: Set override property for sdmmc
Alex Frid [Sun, 22 Sep 2013 20:06:43 +0000]
ARM: tegra12: dvfs: Set override property for sdmmc

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

5 years agoARM: tegra11: dvfs: Increase DFLL Vmin for AP40/AP40X
Alex Frid [Wed, 21 Aug 2013 19:09:13 +0000]
ARM: tegra11: dvfs: Increase DFLL Vmin for AP40/AP40X

Increased DFLL Vmin for AP40/AP40X to 1.0V (from 0.9V).

Bug 1355044

Change-Id: Ifd95d34f21cc81877e350e287a5481ee28ea9d60
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/264513
(cherry picked from commit 14eb0ca9cce022f08e682728de138ec0036df10e)
Reviewed-on: http://git-master/r/275556
(cherry picked from commit 6216aa0f104fd59cf79e50ae664d9756be69fa0b)
Reviewed-on: http://git-master/r/277518
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra11: dvfs: Set override property for sdmmc
Alex Frid [Sun, 21 Jul 2013 05:09:18 +0000]
ARM: tegra11: dvfs: Set override property for sdmmc

Bug 1307369

Change-Id: I622ce0e85e6eb100a834241be5e03565a223b3f3
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/251663
(cherry picked from commit 1f32bf1bcc74b536142e985848ce148358d54b70)
Reviewed-on: http://git-master/r/275550
(cherry picked from commit b6769b239488f87b7c258f413aa00935d6ed974b)
Reviewed-on: http://git-master/r/277517
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra11: dvfs: Update sdmmc dvfs tables
Alex Frid [Mon, 1 Jul 2013 21:43:14 +0000]
ARM: tegra11: dvfs: Update sdmmc dvfs tables

Splitted sdmmc dvfs tables between different Tegra11 skus/bins. Allowed
sdmmc maximum rates at the appropriate nominal voltage for each bin.

Bug 1161126
Bug 1307369

Change-Id: Ida3145ab10feb3ef0e2a170e69c4ef5f4c5a84ed
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/244014
(cherry picked from commit 754354fa55953ade5ac02d9bb79b468a49a4d033)
Reviewed-on: http://git-master/r/275549
(cherry picked from commit ae59844c708de8e2ef7758218f2e69208719a93e)
Reviewed-on: http://git-master/r/277516
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: dvfs: Restrict vdd core override
Alex Frid [Sun, 21 Jul 2013 03:06:24 +0000]
ARM: tegra: dvfs: Restrict vdd core override

Restricted vdd core override to clocks with dvfs override property.

Bug 1307369

Change-Id: Idaf20ac8ab6016b0ca306190ac7e1327354f99b3
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/251664
(cherry picked from commit dbce70c975587128c7c420b62e3ad0dc5737fbae)
Reviewed-on: http://git-master/r/277515
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra14: dvfs: Set override property for sdmmc
Alex Frid [Sun, 21 Jul 2013 02:33:18 +0000]
ARM: tegra14: dvfs: Set override property for sdmmc

Change-Id: I1dd2d57c0b9c948f28105f103d9e40d674b44615
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/251658
(cherry picked from commit fde04c094f9365542fa434a27806cb2430ad227e)
Reviewed-on: http://git-master/r/277514
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra14: dvfs: Update dvfs tables and limits
Alex Frid [Sat, 20 Jul 2013 23:06:23 +0000]
ARM: tegra14: dvfs: Update dvfs tables and limits

- Set nominal core voltage 1.23V for all parts with soc_speedo_id 0
regardless of bin.
- Increased top dvfs table rated for sdmmc1/3 to 204MHz, sdmmc4
to 192MHz, and decreased low voltage sdmmc4 rates to 51MHz.
- Minor change in dvfs table layout for readability.

Bug 1246952

Change-Id: Ibe647f84766a8c0f795b84054ba0a99a440b8f49
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/251657
(cherry picked from commit aba3bd957d9079bb142fc800eb3d1f36fd943188)
Reviewed-on: http://git-master/r/277513
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: dvfs: Add override property
Alex Frid [Sun, 21 Jul 2013 02:07:32 +0000]
ARM: tegra: dvfs: Add override property

Added "can override" property to dvfs structure. Skipped dvfs tables
with this property when evaluating available rail override range.

Change-Id: Iced4b7917c3d3edc1f7a5ce77009a854bc50a335
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/251656
(cherry picked from commit 8dab888fa3e0f136a69faf31494820e783d70274)
Reviewed-on: http://git-master/r/277512
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoTegra12: ARM: dvfs: support TN8 cl-dvfs
Seema Khowala [Tue, 17 Sep 2013 18:36:39 +0000]
Tegra12: ARM: dvfs: support TN8 cl-dvfs

Update the ardbeg board for TN8 cl-dvfs settings needed
for TI(I2C) PMIC (E1736)

Change-Id: Ie565f0d3dc92ed144c866f15fe45f830da824403
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/275918
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agovideo: tegra: host: module debugger framework
Ken Adams [Tue, 17 Sep 2013 16:55:54 +0000]
video: tegra: host: module debugger framework

Framework and implementation of a gk20a
debugger/profiler session interface.

Adds work toward optimized handling of
context patch write sequences.  These introduce
cpu map/unmap operations and gpu l2 invaliates.
Unless we take care to coalesce them they occur
*per write*.

Change-Id: I8afc11a6f6782b80996404acbd01bffe9653ebdd
Signed-off-by: Ken Adams <kadams@nvidia.com>
Reviewed-on: http://git-master/r/274416

5 years agoARM: Tegra12: Clock: Update max frequency limits for soc clocks
Krishna Sitaraman [Fri, 20 Sep 2013 23:33:34 +0000]
ARM: Tegra12: Clock: Update max frequency limits for soc clocks

Update the max frequency limit for soc clock to allow the highest
frequency in the dvfs table.

Bug 1342499

Change-Id: Iad95373bbff10bc60bf6d5d6b92d038476be0071
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/277403
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: tegra: loki: add TEGRA_GRHOST=n support
siddardha naraharisetti [Wed, 18 Sep 2013 20:52:39 +0000]
ARM: tegra: loki: add TEGRA_GRHOST=n support

Update loki_host1x_init to support TEGRA_GRHOST=n

Bug 1357903

Change-Id: Ia0f0eec46fe0c6c3fd0e8c10059bf473619642bf
Signed-off-by: siddardha naraharisetti <siddardhan@nvidia.com>
Reviewed-on: http://git-master/r/276416
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoARM: tegra14: clock: show µs timer value at resume
Hervé Fache [Tue, 3 Sep 2013 08:29:58 +0000]
ARM: tegra14: clock: show µs timer value at resume

So we can evaluate the delay between BBC request and frequency boost,
which seems higher than it should be...

Bug 1309858

Change-Id: Ic0c36318b86b1c8baa5329f28cfc3a0430302237
Signed-off-by: Hervé Fache <hfache@nvidia.com>
Reviewed-on: http://git-master/r/269415
(cherry picked from commit 26863dbc1a837951e8a949741d816147db301288)
Reviewed-on: http://git-master/r/276292
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>

5 years agostaging: nvshm: enable write access to data
Hervé Fache [Wed, 21 Aug 2013 11:58:00 +0000]
staging: nvshm: enable write access to data

Also, all symbols have been exported for use in modules.

Bug 1309858

Change-Id: Ia66424cbe5403f3af134cafd1bda8234086c9ebd
Signed-off-by: Hervé Fache <hfache@nvidia.com>
Reviewed-on: http://git-master/r/264365
(cherry picked from commit 9abc040b2695599aa63d281d6f6498d3d0db6ae1)
Reviewed-on: http://git-master/r/276291
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>

5 years agoARM:TEGRA:LOKI: Added LP0 suspend state
David Dastous [Wed, 18 Sep 2013 01:54:43 +0000]
ARM:TEGRA:LOKI: Added LP0 suspend state

Bug 1363280

Signed-off-by: David Dastous-St-Hilaire <ddastoussthi@nvidia.com>
Change-Id: I7008f1a3327fb46ca905c84c70f0e7610863e7c8
Reviewed-on: http://git-master/r/277286
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aly Hirani <ahirani@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoinput: misc: add DT support to Invensense MPU
Daniel Fu [Thu, 12 Sep 2013 07:27:35 +0000]
input: misc: add DT support to Invensense MPU

Add device tree support to Invensense MPU drivers.

Bug 1363572

Change-Id: I65012d8ab52b6405ce033db4307885256c16c2a6
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/274074
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>

5 years ago audio: a2220: remove compile warnings
Philip Rakity [Mon, 8 Jul 2013 19:06:20 +0000]
 audio: a2220: remove compile warnings

Change-Id: I8693c1a821b8c75836c1c908db80995c26bcf867
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246216
(cherry picked from commit 10fe72fa67663e7565bbdcd7981b0c6caa821e50)
(cherry picked from commit abe70f430c8d6ef59b72e48821451dfe3f4b985d)
Reviewed-on: http://git-master/r/269602
Reviewed-by: Scott Peterson <speterson@nvidia.com>

5 years agoARM: tegra: Enable DTV on Ardbeg
Mallikarjun Kasoju [Tue, 17 Sep 2013 20:52:59 +0000]
ARM: tegra: Enable DTV on Ardbeg

Bug 1350300

Change-Id: I0c5246015a70970c5fe8ef4c5de6d92b410b31d2
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/275075
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra12: ardbeg: Set pinmux for DTV
Mallikarjun Kasoju [Tue, 17 Sep 2013 20:51:53 +0000]
ARM: tegra12: ardbeg: Set pinmux for DTV

Bug 1350300

Change-Id: Ie0808ee9b0caac34434d7dd7b4d07c1b41de8565
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/275074
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agovideo: tegra: dtv: Use generic DMA engine driver
Mallikarjun Kasoju [Tue, 17 Sep 2013 20:42:08 +0000]
video: tegra: dtv: Use generic DMA engine driver

Bug 1313737
Bug 1350300

Change-Id: I95bae7eb04bf73b998b4333a1707967b3417ddb2
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/275073
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Adam Jiang <chaoj@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra12: pcie: Add DVFS support
Jay Agarwal [Thu, 19 Sep 2013 10:56:18 +0000]
ARM: tegra12: pcie: Add DVFS support

1. Added code to scale voltage dynamically
   based on speed
2. Re-organized change link speed code

Bug 1317473

Change-Id: I0a86db38159539ce0b1dec75c2dcfc2d9e18346a
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/269378
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra12: config: Enable NCT feature
Chun Xu [Wed, 4 Sep 2013 02:48:34 +0000]
ARM: tegra12: config: Enable NCT feature

Bug 1361476

Change-Id: I90f2de3efe5b1c52001a0fd5fad998387e522052
Signed-off-by: Chun Xu <chunx@nvidia.com>
Reviewed-on: http://git-master/r/277606
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agovideo: tegra: host: Simplify channel support
Terje Bergstrom [Mon, 3 Jun 2013 10:36:04 +0000]
video: tegra: host: Simplify channel support

Simplify T124 channel support to use generic channel code when
possible.

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

5 years agovideo: tegra: host: gk20a: No PMU on MMU fault
Arto Merilainen [Wed, 18 Sep 2013 06:16:35 +0000]
video: tegra: host: gk20a: No PMU on MMU fault

ELPG must be disabled during engine reset to make sure that the engines
are not turned off (holding the mutex is not sufficient). However, simply
enabling ELPG afterwards crashes both PMU and GR and therefore better
approach is to simply disable PMU in the beginning of the MMU fault ISR
and turn on the PMU back at the end of the ISR.

This patch makes the MMU fault code to disable PMU and enable
it afterwards. To make sure that PMU initialisation works nicely,
the code keeps runlists empty until the PMU is powered back on. Otherwise
PMU may fail to boot. This behaviour is similar as what the code does in
resume handler.

In addition, PMU initialisation sequence now waits for PMU idle before
proceeding.

Bug 1342089
Bug 1365804
Bug 1361532

Change-Id: I43d67539dcc6b28fba6099571e244ac103f8a8ff
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/276162
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: gk20a: protect clk reg accesses
Prashant Malani [Sun, 8 Sep 2013 04:07:56 +0000]
video: tegra: gk20a: protect clk reg accesses

Use clk mutex to protect and prevent accesses
of clock registers when gk20a is powergated by
nvhost.

Bug 1363292

Change-Id: Id96181ee31993e3479a61284031d3a31f1fe528b
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/271850
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: nvmap: remove obsolete config
Alex Waterman [Thu, 5 Sep 2013 21:52:56 +0000]
video: tegra: nvmap: remove obsolete config

NVMAP_RECLAIM_UNPINNED_VM is meaningless to the new pin
implementation.

Bug 1356091

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

5 years agovideo: tegra: nvmap: Remove obsolete sources
Alex Waterman [Tue, 3 Sep 2013 22:06:17 +0000]
video: tegra: nvmap: Remove obsolete sources

Remove the sources for the direct IOMMU interface and the MRU
implementation.

Bug 1356091

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

5 years agoarm: tegra: disable emc dvfs for 4G board
Xue Dong [Fri, 13 Sep 2013 01:12:13 +0000]
arm: tegra: disable emc dvfs for 4G board

bug 1341658

Change-Id: Idf87805a8620a0b7e60beba5c63e92e91d9081dd
Signed-off-by: Xue Dong <xdong@nvidia.com>
Reviewed-on: http://git-master/r/276790
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agovideo: tegra: nvmap: Remove dead definitions
Alex Waterman [Thu, 5 Sep 2013 21:49:59 +0000]
video: tegra: nvmap: Remove dead definitions

Remove the unnecessary defines and definitions obsoleted by the
nvmap pin rewrite.

Bug 1356091

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

5 years agokernel: defconfig: Disable wifi modules
Arun Mohare [Wed, 4 Sep 2013 22:44:53 +0000]
kernel: defconfig: Disable wifi modules

Temporarily disable BCMDHD & BCM4335 wifi modules.
Enable SD8897 for t124 boards

bug 1357826

Change-Id: Ie330f328c430e0534549ec2ed9004bd4f5afe95d
Signed-off-by: Arun Mohare <arg@nvidia.com>
Reviewed-on: http://git-master/r/270345
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Allen Martin <amartin@nvidia.com>

5 years agonet: wireless: Update SD8897 WLAN/BT driver to 429
Marc Yang [Wed, 11 Sep 2013 00:12:19 +0000]
net: wireless: Update SD8897 WLAN/BT driver to 429

Signed-off-by: Marc Yang <yangyang@marvell.com>

Bug 1318054
Bug 1354601

Change-Id: Id7360eeddc88ad82335de842f79dd9ea81c03824
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/277114
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoARM: tegra12: pinmux: Change PROD setting for DAPs
Manoj Gangwal [Wed, 18 Sep 2013 11:01:54 +0000]
ARM: tegra12: pinmux: Change PROD setting for DAPs

- Change the PROD setting for all I2S/DAPs :-

eg for DAP1/i2s0 :-

APB_MISC_GP_DAP1CFGPADCTRL_0 regs to

CFG2TMC_DAP1CFG_CAL_DRVUP 0x06
CFG2TMC_DAP1CFG_CAL_DRVDN 0x05

- Remove the incorrect value setting
for DAP2 in t124 boards.

Bug 1333599

Change-Id: I70b36e87dbd148ba1e3d4271990f3cf0d23dca26
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/276294
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: mm: Implement ARCH_SUPPORTS_DEBUG_PAGEALLOC
Hiroshi Doyu [Wed, 18 Sep 2013 10:26:40 +0000]
ARM: mm: Implement ARCH_SUPPORTS_DEBUG_PAGEALLOC

Implement the archtecture backend of ARCH_SUPPORTS_DEBUG_PAGEALLOC for
ARM.

Bug 1365298

Change-Id: I4375debadd45bb458186bae6aeae551ff1de3a08
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/276263

5 years agodma: tegra: Fix clock disable in one-shot
Chaitanya Bandi [Thu, 19 Sep 2013 10:20:43 +0000]
dma: tegra: Fix clock disable in one-shot

Fixed clock disable sequence in dma.

Bug 1365577

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

5 years agoARM: tegra: loki: palmas_ldo2 range for loki panel
Spencer Sutterlin [Tue, 17 Sep 2013 23:26:44 +0000]
ARM: tegra: loki: palmas_ldo2 range for loki panel

LG old thor panel for loki requires 2.8V, JDI panel for loki requires
3.0V

Change-Id: Ie94c53e087c5bebda521685ae522f2dc3b18ab1a
Signed-off-by: Spencer Sutterlin <ssutterlin@nvidia.com>
Reviewed-on: http://git-master/r/276029
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoarm: tegra: probe bq2477x on ardbeg board
Andy Park [Wed, 11 Sep 2013 23:57:39 +0000]
arm: tegra: probe bq2477x on ardbeg board

BQ24773 is default battery charger for ardbeg. Probing to enable the
charger by default.

Bug 1344257

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

5 years agopower: add bq2477x battery charger driver
Andy Park [Wed, 11 Sep 2013 23:54:04 +0000]
power: add bq2477x battery charger driver

Add BQ24770/3 battery charger driver.

Bug 1344257

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

5 years agopower: fix gpio handling of bq2471x
Andy Park [Wed, 11 Sep 2013 23:48:56 +0000]
power: fix gpio handling of bq2471x

Gpio held by bq2471x on probing does not get released when bq2471x
registration is failed or bq2471x is removed. Fixing up the probing
function and correctly assigning gpio to bq2471x data for correct
gpio handling.

Bug 1344257

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

5 years agoARM: tegra: ceres: support more camera devices
Charlie Huang [Thu, 8 Aug 2013 23:36:26 +0000]
ARM: tegra: ceres: support more camera devices

support more camera devices for auto-detection.

device list: imx091, imx135, imx132, ar0833, ov5693, ov5640, ad5816,
             ad5823, dw9718, max77387, lm3565, as3648)

updated both ceres/pluto board power files for the power rail names
used by the above devices.

bug 1339839

Change-Id: I21ccabef46217554f19c8e183709d79832382757
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/259809
(cherry picked from commit 773fe6844459f07f989a368bc96d7feaeaa5d91c)
Reviewed-on: http://git-master/r/272743
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomedia: tegra: PCL driver updates
Charlie Huang [Thu, 8 Aug 2013 23:41:55 +0000]
media: tegra: PCL driver updates

change some dev_err to dev_notice to avoid LNX error filter alarm.

synchronize cam_device_layout with odm imager as well as update
debugfs prints.

change the regulator names of imx132 and ov5693 to avoid name conflict
with other sensors.

bug 1339839

Change-Id: I134b8b10d5df965bffa8ac0333a0c3775cf882a5
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/259810
(cherry picked from commit 89f7b0768a509fc70e78457c6352ef13f874988f)
Reviewed-on: http://git-master/r/272739
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: RODATA: SMC stack RW
Hiroshi Doyu [Thu, 19 Sep 2013 05:03:43 +0000]
ARM: tegra: RODATA: SMC stack RW

With DEBUG_RODATA, .text section is set as read-only. This prevents
SMC call from using stack with CONFIG_TEGRA_USE_SECURE_KERNEL. This
patch set SMC stack {read,write}'able exceptionaly for DEBUG_RODATA.

Bug 1365298

Change-Id: I4a18886e5eb0c4f1ca3696d4621bd882dc528e48
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/276539
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agodma-debug: Use ftrace in {map,unmap}_*() calls
Konsta Holtta [Fri, 30 Aug 2013 06:56:12 +0000]
dma-debug: Use ftrace in {map,unmap}_*() calls

Log the map/unmap/alloc/free calls. This ftrace is enabled by default.

Bug 1173494

Change-Id: I01fe24e570346413644368a6bff1578814f05f5a
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/268383
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agodma-debug: track and export map counts per device
Konsta Holtta [Tue, 9 Jul 2013 10:59:19 +0000]
dma-debug: track and export map counts per device

Store mapping/allocation counts of devices through their lifetime and
export via debugfs the current, all time total, and maximum number of
mappings and mapped bytes.

Bug 1351794
Bug 1173494

Change-Id: I07ba73d44bcd34e37b2036507da65706a973fc92
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/268456
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoiommu/tegra: smmu: Add debug_dma_platformdata()
Hiroshi Doyu [Mon, 2 Sep 2013 12:50:51 +0000]
iommu/tegra: smmu: Add debug_dma_platformdata()

For DMA_API_DEBUG to show platform specific data.

Bug 1173494

Change-Id: I421a0bb3675c7bc6906140f7c1ef867f15e80164
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/269147
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agodma-debug: dump buffers and mappings via debugfs
Konsta Holtta [Fri, 30 Aug 2013 07:16:41 +0000]
dma-debug: dump buffers and mappings via debugfs

Export via debugfs the debug-dma infrastructure's data about allocated
mappings, and architecture specific information about possible mappings.

Bug 1173494

Change-Id: I6c64364dad69f83fd301a89938fe184dde33806a
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/268384
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoARM: tegra12: clock: Update PCIE link clock operations
Alex Frid [Wed, 18 Sep 2013 04:53:21 +0000]
ARM: tegra12: clock: Update PCIE link clock operations

Added state/rate control operations for pciex (pcie link). Clock
module controls only link reset (which was implemented already).
Added operations do not update any clock control h/w but provide
standard interface for the driver to match link state with core
voltage dvfs.

Bug 1317473

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

5 years agoarm: tegra: T124 support for LGD 7" panel
Mitch Luban [Thu, 19 Sep 2013 19:02:41 +0000]
arm: tegra: T124 support for LGD 7" panel

Bug 1364398

Change-Id: Ic78dc2be089675a642cb129a0dccb2b7e5b517c2
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/276791
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seema Khowala <seemaj@nvidia.com>

5 years agokernel: power: Add PM_USERSPACE_FROZEN workqueue
Arto Merilainen [Tue, 27 Aug 2013 13:17:58 +0000]
kernel: power: Add PM_USERSPACE_FROZEN workqueue

Some device drivers require a callback to be called after the userspace
processes are frozen. This patch adds PM_USERSPACE_FROZEN workqueue
which is called after userspace processes are frozen but when the
kernel threads are still functioning.

Bug 1344551

Change-Id: I0e6fd7e2473db168d01c88bc0192326ceea92ebe
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/266774
(cherry picked from commit d964493291ef87eea1a2ee47b5b66305bb18bcf3)
Reviewed-on: http://git-master/r/274939
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agovideo: tegra: host: gk20a: Do not suspend if active
Arto Merilainen [Tue, 17 Sep 2013 09:33:24 +0000]
video: tegra: host: gk20a: Do not suspend if active

gk20a prepare_poweroff callback is called before the userspace is
freezed. As the callback is called beforce userspace is freezed,
the userspace may still do a single submit causing gk20a to power
on again. However, this itself do not prevent suspend and therefore
we may end up to have wrong book keeping about the state of gk20a.

This patch adds a separate callback into gk20a driver that will
make certain that gk20a is turned off before suspend. If the device
is on at this point, we cancel suspend.

Bug 1357150

Change-Id: Ib85a96b6598de52749090ba2356a14562a77a07c
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/275689
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoRevert "video: tegra: gk20a: Add barrier before udelay"
Kaz Fukuoka [Thu, 19 Sep 2013 21:08:49 +0000]
Revert "video: tegra: gk20a: Add barrier before udelay"

This reverts commit 4caf0d350209a726ccaf1e239f6939457095b09f.

Change-Id: I959c69ea1030e83dbac6c9182ccd38742df5b3a0
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/276825
Reviewed-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoarm: tegra: tn8: modify gpu regulator
Hunk Lin [Sat, 14 Sep 2013 12:28:00 +0000]
arm: tegra: tn8: modify gpu regulator

Disable always_on flag and remove extern control so the gpu could be
turned off when LP0 and idle gk20a rail gating.
Change min voltage to 700mW for GPU dvfs.

Bug 1318046

Change-Id: I26e91244b3f6e1077c9394ac3c24a08c647b0918
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/274767
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Mitch Luban <mluban@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: Ib733c1a54473a65ae3fc53c87afbd0628893ecaa
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/275968
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra12: clock: No thermal limit to iso bw
Kaz Fukuoka [Wed, 18 Sep 2013 00:15:50 +0000]
ARM: tegra12: clock: No thermal limit to iso bw

Modified emc shared users requests aggregation algorithm to exempt iso
bw allocation from caps set by users in SHARED_CEILING_BUT_ISO mode.

Assigned SHARED_CEILING_BUT_ISO mode to thermal throttling emc shared
user.

Bug 1001227

Ported from Tegra14 Change-Id: I225a67a96955e54148da65e115b777b340b8ade0

Change-Id: Ic28027a9a40f2258b4e2ac2de6b979a9c4184281
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/276060
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra12: clock: iso-exempt shared ceiling
Kaz Fukuoka [Wed, 18 Sep 2013 00:05:26 +0000]
ARM: tegra12: clock: iso-exempt shared ceiling

Added to enumeration of shared user modes SHARED_CEILING_BUT_ISO mode
to distinguish shared ceiling users that can not throttle iso bw users
(current SHARED_CEILING mode users caps all users including iso).

For now, SHARED_CEILING_BUT_ISO mode is not applied to any user, and
no iso exemption mechanism is implemented.

Bug 1001227

Ported from Tegra14 Change-Id: I558d965ecaa81b82ef94a3b6b2fbaec40b36b59b

Change-Id: I6bb41a8add4a0438bd8ddfa23618f7244bf63fb6
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/276059
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoarm: tegra: Place carveouts + avp kernel below 4GB
Adeel Raza [Sat, 14 Sep 2013 01:47:54 +0000]
arm: tegra: Place carveouts + avp kernel below 4GB

Place carveouts below the 4 GB physical address limit because IOVAs are
only 32 bit wide.

Place the AVP kernel below the 4 GB physical address limit because AVP
is a 32 bit processor.

Bug 1341658

Change-Id: I22f7c460cbf5baf6942edcc2629242c1c61b93e4
Signed-off-by: Adeel Raza <araza@nvidia.com>
Reviewed-on: http://git-master/r/274686
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chao Xu <cxu@nvidia.com>
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>

5 years agomm: memblock: add memblock_end_of_4G(...)
Adeel Raza [Sat, 14 Sep 2013 01:34:36 +0000]
mm: memblock: add memblock_end_of_4G(...)

Add memblock_end_of_4G(...). This function loops over
memblock.memory.regions and returns the end of the region with the
highest base physical address.

Bug 1341658

Change-Id: I761c7e0ee8b7ed7985b9747bd678dc22f21ee49c
Signed-off-by: Adeel Raza <araza@nvidia.com>
Reviewed-on: http://git-master/r/274685
Reviewed-by: Chao Xu <cxu@nvidia.com>
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>

5 years agousb: pmc: remove unused variables from pmc data
Krishna Yarlagadda [Fri, 13 Sep 2013 12:25:56 +0000]
usb: pmc: remove unused variables from pmc data

Remove unused tctrl/rctrl from struct tegra_usb_pmc_data

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

5 years agoARM: tegra: loki: Enable palmas pmic vbus-det
Pradeep Goudagunta [Mon, 16 Sep 2013 12:04:42 +0000]
ARM: tegra: loki: Enable palmas pmic vbus-det

Enable palmas pmic vbus detection.

Bug 1355688

Change-Id: I10acd45a9c5c7b83a13fa1fde915f03fc0ed5f6c
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/275155
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: loki: Enable VBUS detection via PMIC
Pradeep Goudagunta [Mon, 16 Sep 2013 08:50:08 +0000]
ARM: tegra: loki: Enable VBUS detection via PMIC

-Enable VBUS detection through PMIC.
-Remove stale init of ID for E1733/E1735 module inits.

Bug 1355688

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

5 years agoARM: tegra: loki: fix build error due to warning
Laxman Dewangan [Thu, 19 Sep 2013 07:47:53 +0000]
ARM: tegra: loki: fix build error due to warning

Fix following build error:
****
board-loki-sensors.c: In function 'loki_mt9m114_power_on':
board-loki-sensors.c:118:2: error: implicit declaration of function 'regulator_enable' [-Werror=implicit-function-declaration]
board-loki-sensors.c:135:2: error: implicit declaration of function 'regulator_disable' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
****

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

5 years agoregulator: core: Ensure selector is mapped
Mark Brown [Thu, 18 Jul 2013 15:06:33 +0000]
regulator: core: Ensure selector is mapped

Clearly the testing only covered the bottom range.

Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit 6c918d220925eeeca75b67e896eabffd061cd128)

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

5 years agovideo: tegra: host: fix LPAE nvrm_channel crash
Adeel Raza [Tue, 17 Sep 2013 23:08:24 +0000]
video: tegra: host: fix LPAE nvrm_channel crash

Fix LPAE related nvrm_channel crash by ensuring that the cdma sync queue
is non-empty before it is used.

Bug 1341658

Change-Id: Ief2e42f78be15492c8f0778f035f0c03844472d6
Signed-off-by: Adeel Raza <araza@nvidia.com>
Reviewed-on: http://git-master/r/276028
Reviewed-by: Ken Adams <kadams@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: enable nvhost compat_ioctls
Peng Du [Thu, 27 Jun 2013 23:08:43 +0000]
video: tegra: host: enable nvhost compat_ioctls

Change-Id: Ic1a771baa77cbcfa9d930a9be7fb9cd30bdc092e
Signed-off-by: Peng Du <pdu@nvidia.com>
Reviewed-on: http://git-master/r/243154
(cherry picked from commit ce7e63a4df04c06edcefa7c9ca660c485b18d03e)
Reviewed-on: http://git-master/r/276131
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agovideo: tegra: host: hookup host1x compat_ioctl
Peng Du [Tue, 19 Mar 2013 06:44:42 +0000]
video: tegra: host: hookup host1x compat_ioctl

Change-Id: Id8870ac2fd966133e4187b40a2cebb86a8d60350
Signed-off-by: Peng Du <pdu@nvidia.com>
Reviewed-on: http://git-master/r/211306
(cherry picked from commit e2724788a08f9b4dc50d2904e118d5773ab07ec3)
Reviewed-on: http://git-master/r/276132
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agomisc:tegra-baseband:USB_HOST_RELOAD for Bruce BB
Alexandre Berdery [Wed, 18 Sep 2013 14:25:38 +0000]
misc:tegra-baseband:USB_HOST_RELOAD for Bruce BB

Add USB_HOST_RELOAD capability for Bruce modem.

Change-Id: I8968ffe2e18bb9cd0551ac0da6a593f685139c97
Signed-off-by: Alexandre Berdery <aberdery@nvidia.com>
Reviewed-on: http://git-master/r/276314
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agousb: xhci: fix tctrl rctrl war programming
Krishna Yarlagadda [Fri, 13 Sep 2013 12:23:24 +0000]
usb: xhci: fix tctrl rctrl war programming

WAR requires that tctrl and rctrl values to be updated in
pmc register space even if pmc is not in control of ports.
Fixing it.

Bug 1334159

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

5 years agousb: gadget: tegra: Remove wakelock for charger
Rohith Seelaboyina [Thu, 12 Sep 2013 12:12:24 +0000]
usb: gadget: tegra: Remove wakelock for charger

Wakelock is acquired whenever vbus is detected by tegra,
As this functionality is being handled by charger code
Wakelock will be released when NV/DCP/NON-STD chargers
are connected.

Bug 1354941

Change-Id: I13cd7021b58b6b6967a5fce3138a1013c980c359
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/273497
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agonet: phonet: Fix warning messages
Philip Rakity [Thu, 4 Jul 2013 11:23:25 +0000]
net: phonet: Fix warning messages

Reviewed-on: http://git-master/r/245093
(cherry picked from commit 4fb060fe8028a645919277275618269fa5eb9d70)
Change-Id: I413bd2f981702462efc31b92239ab4fa53dde48b
Signed-off-by: Philip Rakity <prakity@nvidia.com>
(cherry picked from commit 2343967b8c35d37bd7dc5024521c9f61fafc8d75)
Reviewed-on: http://git-master/r/271453
Reviewed-by: Scott Peterson <speterson@nvidia.com>

5 years agousb: otg: tegra: Remove OTG notifier for charger
Rohith Seelaboyina [Thu, 12 Sep 2013 12:08:44 +0000]
usb: otg: tegra: Remove OTG notifier for charger

Remove OTG notifier for charger as it will be
handled in charger code.

Bug 1354941

Change-Id: I30269d7c4e4482f22b2d2c29ebbaeae73fd8e6c7
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/273753
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agovideo: tegra: dsi: fixed runtime platform detection
Vineel Kumar Reddy Kovvuri [Tue, 10 Sep 2013 07:40:29 +0000]
video: tegra: dsi: fixed runtime platform detection

This change is a part of the effort to enable runtime
platform detection and reduce compile-time conditionals.

Bug 1359497

Change-Id: I68c226ed342754c38a24d56708b368590e287505
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/272386
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoRevert "drivers: video: tegra: detect platform at runtime"
Vineel Kumar Reddy Kovvuri [Tue, 10 Sep 2013 06:48:12 +0000]
Revert "drivers: video: tegra: detect platform at runtime"

This reverts commit 5affce8e62256f7ba26868816f3f58145604cbe8

Change-Id: I472185336997acb1d9e71f494340853adcb2c717
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/272360
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agovideo: tegra: gk20a: fix compile time warning
Deepak Nibade [Wed, 18 Sep 2013 07:54:37 +0000]
video: tegra: gk20a: fix compile time warning

- void function pmu_save_zbc() was returning 0
- fix this compile time warning by removing return statement

Change-Id: I87266fd09dfba4ffa152038dfc7307055a180ab9
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/276194
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoextcon: palmas: fix compile warning on const
Philip Rakity [Mon, 9 Sep 2013 12:20:28 +0000]
extcon: palmas: fix compile warning on const

Change-Id: Ifa94530982b6817f761ec991de87b43c1634b954
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/272032
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoarm: config: Removed EHCI Boost CPU Freq
Jeetesh Burman [Fri, 13 Sep 2013 10:37:21 +0000]
arm: config: Removed EHCI Boost CPU Freq

Since, usb-ethernet network issue is resolved by another patch,
So, no need to boost cpu frequency unncessary, therefore
CONFIG_TEGRA_EHCI_BOOST_FREQ from l4t defconfig is removed.

Bug 1249335
Bug 1356721
Bug 1362455

Change-Id: I50e6d916758c7fc1cc24c04c566cc1d3b5e3d159
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/274316
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agomisc: tegra-profiler: remove excess callchains
Igor Nabirushkin [Sun, 8 Sep 2013 06:43:36 +0000]
misc: tegra-profiler: remove excess callchains

Tegra Profiler: improve performance by removing
unnecessary callchains

Bug 1364258

Change-Id: I664fbabb576b98b1609db6fd904d9449727e2523
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/271852
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: tegra-profiler: add /proc entries
Igor Nabirushkin [Sat, 7 Sep 2013 11:16:57 +0000]
misc: tegra-profiler: add /proc entries

Tegra Profiler: show version and capabilities:
/proc/quadd/version
/proc/quadd/capabilities

Bug 1364258
Bug 1312406

Change-Id: I4ba26a0b6e95ecd350add4fac851feb98b0e84de
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/271828
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: tegra-profiler: fix incorrect names
Igor Nabirushkin [Sat, 7 Sep 2013 07:36:23 +0000]
misc: tegra-profiler: fix incorrect names

Tegra Profiler: fix incorrect names of modules.
mmap buffers are created for each core

Bug 1364251
Bug 1312406

Change-Id: Ib60fa45e5418de3acf2afd782c53650f17731976
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/271821
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: loki: Add mt9m114 sensor support
Frank Chen [Tue, 10 Sep 2013 00:36:12 +0000]
ARM: tegra: loki: Add mt9m114 sensor support

Add SOC1040 (mt9m114) YUV sensor board file
support.

Bug 1327952

Change-Id: I66cacf3e2177b035e89cecee7bd3126a159fbf27
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/274671
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoinput:touch:raydium: fix touch off with displayoff
Xiaohui Tao [Tue, 17 Sep 2013 17:20:45 +0000]
input:touch:raydium: fix touch off with displayoff

Do not call suspend/resume in display off case for touch.

Bug 1293127

Change-Id: I2c1986f80bca01f937b72d4dddb91e20247c258e
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/263498
(cherry picked from commit 15b02eca5e9510cea68619c2905634df6dc9184a)
Reviewed-on: http://git-master/r/276341
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoinput: touch: raydium: v60.6 code drop
Xiaohui Tao [Wed, 18 Sep 2013 21:16:15 +0000]
input: touch: raydium: v60.6 code drop

a. Checkpatch done (Bug ID 1368132)
b. Fix 3.3V control issue (Bug ID 1354253, 1348628) as the attached pictures. The 3.3V is turned off in LP0 mode.
c. Refine suspend/resume timing issue (Bug ID 1359713, 1288233, 1283537)

Bug 1368132
Bug 1354253
Bug 1348628
Bug 1359713
Bug 1288233
Bug 1283537

Change-Id: I639d311b51e4bd7feffcc904caa34370ab52e505
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/276340
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoARM: Loki: Disable always_on for gpu
Aly Hirani [Wed, 18 Sep 2013 01:39:20 +0000]
ARM: Loki: Disable always_on for gpu

Disable the always_on for the gpu rail. This is needed for the LP0 GPU
rail gating.

Bug 1370527

Change-Id: I0694df0303622873acf13ea2697bbb19af5537df
Signed-off-by: Aly Hirani <ahirani@nvidia.com>
Reviewed-on: http://git-master/r/276081
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agovideo: tegra: nvmap: disable deferred cache maint once sgt get
Krishna Reddy [Wed, 18 Sep 2013 04:10:35 +0000]
video: tegra: nvmap: disable deferred cache maint once sgt get

disable deferred cache maint, to avoid unforseen issues, once sgt is
get on handle.

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

5 years agovideo: tegra: nvmap: fix nvmap_sgt free bug
Krishna Reddy [Wed, 18 Sep 2013 18:22:13 +0000]
video: tegra: nvmap: fix nvmap_sgt free bug

fix sgt free bug as well.

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

5 years agovideo: tegra: nvmap: use correct dev pointer
Krishna Reddy [Wed, 18 Sep 2013 02:58:50 +0000]
video: tegra: nvmap: use correct dev pointer

Use correct dev pointer during dma_unmap_sg_attr call.

Change-Id: Ifaeffa549c552a878c60954fcb045a9fbd3dc4ef
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/276095
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>