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>

5 years agoiio: Simplify iio_map_array_unregister API
Guenter Roeck [Thu, 31 Jan 2013 21:43:00 +0000]
iio: Simplify iio_map_array_unregister API

Instead of requiring the map to unregister, simply unregister all map entries
associated with the given iio device. This simplifies map removal and also works
for maps generated through devicetree.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
(cherry picked from commit 6cb2afd7c0abb93bd9dc6d36b858b1e312e2407d)

ldewangan:
- Fix compilation issue with palams gpadc driver.

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

5 years agoxhci: tegra: fix kernel panic in tegra_xhci_remove
JC Kuo [Fri, 13 Sep 2013 07:06:50 +0000]
xhci: tegra: fix kernel panic in tegra_xhci_remove

tegra_xhci_remove() calls usb_unregister_notifier() with parameters
are NULL pointers. That causes kernel panic. This change fixes it.

bug 1368024

Change-Id: I10ea852659afece3b0ae18c2989ad85ee392e3c3
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/274150
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>
(cherry picked from commit 10906950e03608b6a4a5322693bf9793e1ba175d)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agopower: max17048: parsing tz-name DT platform data
Venkat Reddy Talla [Fri, 27 Sep 2013 12:56:36 +0000]
power: max17048: parsing tz-name DT platform data

 Parsing the tz-name according to the device
 tree data provided in TN8 battery dt file.
 Bug 1368060

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

5 years agoARM: tegra: TN8: remove max17048 i2c registration
Venkat Reddy Talla [Fri, 27 Sep 2013 12:54:19 +0000]
ARM: tegra: TN8: remove max17048 i2c registration

 remove max17048 i2c board file registration to prevent
 duplicate registration as device tree support is added for
 max17048 chip in TN8 battery dt file.
 Bug 1368060

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

5 years agoARM: dts: tegra124:add max17048 DT support for TN8
Venkat Reddy Talla [Fri, 27 Sep 2013 12:51:48 +0000]
ARM: dts: tegra124:add max17048 DT support for TN8

 add max17048 device tree and platform data for
 TN8-fury
 Bug 1368060

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

5 years agoARM: config: mutual exclusive CPA & LPAE
Bibek Basu [Fri, 27 Sep 2013 11:12:05 +0000]
ARM: config: mutual exclusive CPA & LPAE

Make CONFIG_CPA and CONFIG_ARM_LPAE
mutually exclusive.

Bug 1374612

Change-Id: I1ec2dbe316a52633d19d122d42e18103a838c960
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/279798
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Adeel Raza <araza@nvidia.com>
Tested-by: Adeel Raza <araza@nvidia.com>
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit 8b550aba000043ff10d9127a082c9faa7e85fcad)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agousb: misc: add LED driver for Nvidia Shield
Jun Yan [Thu, 12 Sep 2013 18:15:31 +0000]
usb: misc: add LED driver for Nvidia Shield

Nvidia Shield use USB microcontroller to control LED.
This driver use USB control message to change LED state.

Bug 1344169

Change-Id: I81ae5ecb71396a02eae1ef6ebc8e6ba2263ed5c2
Signed-off-by: Jun Yan <juyan@nvidia.com>
Reviewed-on: http://git-master/r/273851
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit 80e21dda9848f273752faa69c3b43a228cb394ee)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agopower: max17048: Add 18bit model soc calculation
Venkat Reddy Talla [Thu, 26 Sep 2013 10:58:32 +0000]
power: max17048: Add 18bit model soc calculation

 Adding 18bit model soc calculation
 according to the model data bits
 Bug 1355408

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

5 years agovideo: tegra: gk20a: add read only flag for pmu firmware
Deepak Nibade [Wed, 18 Sep 2013 07:46:26 +0000]
video: tegra: gk20a: add read only flag for pmu firmware

- add new parameter 'rw_flag' to functions gk20a_vm_map() and
  update_gmmu_ptes() to pass read/write only flag
- update_gmmu_ptes() then sets GMMU read/write only attributes
  based on 'rw_flag'
- add read only flag 'mem_flag_read_only' to vm->map() while
  loading pmu firmware
- add 'mem_flag_none' in all other calls to vm->map()

Bug 1309863

Change-Id: I840dfebf4c93746eb726fa99bba821d60285404b
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/276189
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>
(cherry picked from commit e72ab3af0d3bf9acffdfe899e8bc3622b5fa7578)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: gk20a: add gmmu hardware headers
Deepak Nibade [Fri, 20 Sep 2013 09:55:35 +0000]
video: tegra: gk20a: add gmmu hardware headers

- add below gmmu hardware headers which are needed to
  make gmmu mappings read/write only
gmmu_pte_read_only_true_f()
gmmu_pte_write_disable_true_f()
gmmu_pte_read_disable_true_f()

Bug 1309863

Change-Id: I7322772b72dc4aa88733eb88268e18c5e84af4c1
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/277156
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
(cherry picked from commit 5a875e96c9dae9a12cce5bfa469de4e9849b7a99)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agomedia: tegra: make dname static
Louis Li [Mon, 23 Sep 2013 05:17:13 +0000]
media: tegra: make dname static

make the dname variable static in as364x.c and dw9718.c in order to show
correct names of torch and focuser /proc/misc

Bug 1372924

Change-Id: I2093da2b7b89856258db2f6db5b6810126a8bc0e
Signed-off-by: Louis Li <louli@nvidia.com>
Reviewed-on: http://git-master/r/279805
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
(cherry picked from commit 34b16eef112608e809a3106918a832e41675cfdc)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra12: Enable STM8T143 proximity sensor
Sri Krishna chowdary [Tue, 24 Sep 2013 12:06:57 +0000]
ARM: tegra12: Enable STM8T143 proximity sensor

Set CONFIG_SENSORS_STM8T143 = y to enable it for ardbeg.

Bug 1362876

Change-Id: I33f16444afa47d4b925c562ab7447e5497c3fccd
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/278151
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>
(cherry picked from commit efabc41eaed2bdf491ffc419ad81f6b34e118d4b)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: ardbeg: Add supply for stm8t143 sensor
Sri Krishna chowdary [Mon, 23 Sep 2013 17:08:32 +0000]
ARM: tegra: ardbeg: Add supply for stm8t143 sensor

Bug 1362876

Change-Id: Id8422795709749c7c17220372fcb21418b3ca01a
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/277918
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>
(cherry picked from commit 8c3ef80c02f9a304b2642ebbaf410a77b11a18a2)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: DT: tegra: Add stm8t143 proximity sensor
Sri Krishna chowdary [Mon, 23 Sep 2013 17:14:56 +0000]
ARM: DT: tegra: Add stm8t143 proximity sensor

stm8t143 proximity sensor is used on ardbeg.
Hence, add its registration through DT.

Bug 1362876

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

5 years agostaging: iio: light: stm8t143: Add sensor driver
Sri Krishna chowdary [Mon, 23 Sep 2013 16:43:09 +0000]
staging: iio: light: stm8t143: Add sensor driver

Add STM8T143 proximity sensor support.

Bug 1362876

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

5 years agomfd: palmas: remove clock initialisation from core driver
Laxman Dewangan [Sat, 28 Sep 2013 09:34:30 +0000]
mfd: palmas: remove clock initialisation from core driver

The new driver get added to support the clock functionality of Palmas
devices.

Hence removing the clock initialisation from the mfd driver.

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

5 years agoARM: tegra: config: enable CLK_PALMAS
Laxman Dewangan [Fri, 27 Sep 2013 11:37:56 +0000]
ARM: tegra: config: enable CLK_PALMAS

Enable CLK_PALMAS to supports clock from Palmas devices.

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

5 years agoclk: palmas: add clock driver
Laxman Dewangan [Fri, 27 Sep 2013 11:37:13 +0000]
clk: palmas: add clock driver

Add Palmas clock driver to control 32KHz clock from Palmas
device.

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

5 years agomfd: palmas: rename SLEEP_REQSTR_ID* to EXTERNAL_REQSTR_ID*
Laxman Dewangan [Fri, 27 Sep 2013 12:16:41 +0000]
mfd: palmas: rename SLEEP_REQSTR_ID* to EXTERNAL_REQSTR_ID*

Renames PALMAS_SLEEP_REQSTR_ID_* enums for sleep requestor to
PALMAS_EXTERNAL_REQSTR_ID_* as external requestor which matches
with functionality.

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

5 years agoARM: tegra: create battery based DTS file for TN8
Laxman Dewangan [Fri, 27 Sep 2013 10:37:09 +0000]
ARM: tegra: create battery based DTS file for TN8

Create battery based DTS file for TN8 so it should be selected
when battery is present on system.

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

5 years agovideo: tegra: dc: detach from dmabuf
Alex Waterman [Fri, 27 Sep 2013 17:02:25 +0000]
video: tegra: dc: detach from dmabuf

Make sure we detach from the dmabuf before we put the dmabuf.
Otherwise we leak the underlying attachment structure.

Bug 1354774

Change-Id: Ic36221813e3ece41f189ef6083ed52dd71bbe90f
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/279875
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
(cherry picked from commit 9d23e72cc69da6e702a3bb7788db67febac292eb)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agomedia: platform: tegra: nvavp: add detach from dmabuf
Krishna Reddy [Fri, 27 Sep 2013 18:22:32 +0000]
media: platform: tegra: nvavp: add detach from dmabuf

fix dma_buf_attachment leak resulting from not calling
dma_buf_detach.
also correct error handling.
Bug 1354774

Change-Id: Ia663ce22b1e2ab3ec94cdbf1b37e4b7da8c58bc3
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/279900
Reviewed-by: Chao Xu <cxu@nvidia.com>
Reviewed-by: Gajanan Bhat <gbhat@nvidia.com>
(cherry picked from commit e4577f710ed750e06b34b22549086daff77a24e8)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: dc: add detach from dmabuf
Krishna Reddy [Fri, 27 Sep 2013 18:09:15 +0000]
video: tegra: dc: add detach from dmabuf

fix dma_buf_attachment leaks resulting from not calling
dma_buf_detach.
Bug 1354774

Change-Id: If70a42042d14890159c6d2bc0d2abc0e84c3fedd
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/279896
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chao Xu <cxu@nvidia.com>
(cherry picked from commit a7fd458faa32e343f500cc71accd424224c4b3a1)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoCpuquiet: Fix min_cpus == 1 not forcing G cluster
Sai Gurrappadi [Wed, 4 Sep 2013 00:57:14 +0000]
Cpuquiet: Fix min_cpus == 1 not forcing G cluster

Refactored the logic that decides when to cluster switch
in order to enforce cluster switching priority given
different constraints. Following is the priority

highest to lowest priority:

  - no_lp sysfs node: -1 = LP; 1 = G; 0 = no constraint
  - min_cpus = 1 forces G cluster
  - frequency changes when on a single core

Bug 1348717

Change-Id: I9a4951808f1916a1929180c45a7dd58640c62a66
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/277346
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
(cherry picked from commit c59c0b45244c9e6fc7e2c264b11ac82424e19c24)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: gk20a: Use gpu_ref reference clock
Kaz Fukuoka [Thu, 26 Sep 2013 01:28:13 +0000]
video: tegra: gk20a: Use gpu_ref reference clock

Instaed of hard coding 12MHz, use gpu_ref in the kernel
clock tree as a reference clock of GPCPLL.

bug 1372375

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

5 years agoARM: Tegra12: Clock: Update CPU DFLL dvfs table
Krishna Sitaraman [Mon, 23 Sep 2013 23:04:51 +0000]
ARM: Tegra12: Clock:  Update CPU DFLL dvfs table

Update CPU DFLL dvfs table to match with the latest released
characterization data.

Bug 1342499

Change-Id: Ie087d4cd7b1b349d74c08fcd536daea1937d9f14
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/278037
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>
(cherry picked from commit cb77d9d0942ac68f047ee92436b0a5c41a9bc3a0)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: set memmgr type to nvmap
Krishna Reddy [Wed, 25 Sep 2013 18:36:15 +0000]
video: tegra: host: set memmgr type to nvmap

set memmgr type to nvmap if CONFIG_NVMAP_USE_FD_FOR_HANDLE is
enabled.

Change-Id: Ib9ae9bc855f7e6b98303a4082c68717d97b97a92
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/278989
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit 567f03ca9f0f1de8a242dea22c042e2a2587c6fa)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: dvfs: Add GPU thermal dvfs table to debugfs
Alex Frid [Thu, 26 Sep 2013 04:37:57 +0000]
ARM: tegra: dvfs: Add GPU thermal dvfs table to debugfs

Bug 1273253

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

5 years agoARM: tegra12: clock: Check thermal in GPU bus rate round
Alex Frid [Sat, 21 Sep 2013 06:22:29 +0000]
ARM: tegra12: clock: Check thermal in GPU bus rate round

Accounted for voltage dependency on temperature when rounding cbus
rate. Although cbus round rate operation is used for c2bus, c3bus,
c4bus, and gbus, only the latter is actually affected by thermal check,
since thermal dvfs is supported for GPU only.

Bug 1273253

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

5 years agoARM: tegra: dvfs: Add dvfs thermal dependency
Alex Frid [Fri, 13 Sep 2013 03:15:41 +0000]
ARM: tegra: dvfs: Add dvfs thermal dependency

Added temperature dependency to dynamic voltage scaling. When thermal
dvfs table is installed for the particular clock, voltage required to
run at any frequency is no longer assumed constant (i.e., worst case)
across entire operational temperature range, but determined according
to temperature index set by thermal dvfs cooling device.

The following limitations are enforced by current implementation:
- thermal dvfs is applied only when rail is in pll mode (in dfll mode
voltage on temperature dependency is taken care of by dfll h/w).
- tabulated voltages at any temperature must increase monotonically
with frequency (monotonicity is not expected at iso frequency across
temperature ranges).
- voltage for any frequency/temperature combination must be within the
respective rail minimum/maximum limits
- thermal dvfs is supported, for now, only on GPU clocks

Bug 1273253

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

5 years agoarm: tegra: ardbeg: Add Marvell platform data
Nagarjuna Kristam [Fri, 27 Sep 2013 04:22:38 +0000]
arm: tegra: ardbeg: Add Marvell platform data

Add Marvell platform data, to control Wifi power and wake GPIO

Bug 1375751

Change-Id: I0ab9d25ef540d1b034568d2d817e05243a889005
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/279653
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit 918930abd6c09c3d0d5c296b1d2d580ed1392447)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: tegra: tegratab: remove __initdata keyword for bl device of 7" panel
Johnny Qiu [Thu, 26 Sep 2013 10:32:08 +0000]
arm: tegra: tegratab: remove __initdata keyword for bl device of 7" panel

Backlight device cannot be declared using __initdata since it will
be accessed after init section.

Bug 1367960

Change-Id: I7e175fa6f7518788dfd491c6cfc03ba06375e15a
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/279309
Reviewed-by: Hayden Du <haydend@nvidia.com>
Tested-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit 42ca070d9cc9fb34bc0cf6187c4b990e6d4df4c6)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: remove warnings timer.c and cpu_timer_arch.c
Philip Rakity [Thu, 5 Sep 2013 11:29:52 +0000]
ARM: tegra: remove warnings timer.c and cpu_timer_arch.c

remove readl and writel from cpu_timer_arch (not used)

readl and writel code is in timer.h -- use it
remove unused variable

Change-Id: I2286b66c356ebb7970d00921c852f63a0d014528
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/270782
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 374c02ad51a822c7997e03b3b6c640ea660b4b65)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: gk20a: Use nvhost set rate
Arto Merilainen [Fri, 27 Sep 2013 07:17:40 +0000]
video: tegra: host: gk20a: Use nvhost set rate

EMC scaling used clk_set_rate() function. However, nvhost acm retains
information about the current frequency and based on devfreq
suggestion and userspace requests it sends a request to clock
framework. Therefore our current approach lead acm to restore invalid
clock when channel is closing.

This patch modifies the code to use nvhost acm framework for setting
EMC clock.

Bug 1374521

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

5 years agoEDP: psy depletion: use flush_delayed_work
Philip Rakity [Wed, 25 Sep 2013 11:42:31 +0000]
EDP: psy depletion: use flush_delayed_work

flush_delayed_work should be used rather then
flush_delay_work_sync.

flush_delayed_work_sync just calls flush_delayed_work.
see workqueue.h

/nvidia/DEV_KERNEL/kernel/drivers/edp/psy_depletion.c
In function 'capacity_set':
nvidia/DEV_KERNEL/kernel/drivers/edp/psy_depletion.c:280:2:
warning: 'flush_delayed_work_sync' is deprecated
(declared at
/nvidia/DEV_KERNEL/kernel/include/linux/workqueue.h:454)
[-Wdeprecated-declarations]

/nvidia/DEV_KERNEL/kernel/drivers/edp/psy_depletion.c:
In function 'vsysmin_set'
/nvidia/DEV_KERNEL/kernel/drivers/edp/psy_depletion.c:297:2:
warning: 'flush_delayed_work_sync' is deprecated
(declared at
/nvidia/DEV_KERNEL/kernel/include/linux/workqueue.h:454)
[-Wdeprecated-declarations]

Change-Id: Ib6ee73feb40560aa5eb9b8941047e5313ac3aaa9
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/278887
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
(cherry picked from commit 1ad8994d893cf805e84988a4f1077250f90957bb)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agomisc: tegra-throughput: Use notifiers
Arto Merilainen [Wed, 25 Sep 2013 12:39:34 +0000]
misc: tegra-throughput: Use notifiers

We used to deliver this information by calling directly a function
inside nvhost_pod. This is not suitable for our needs as we want
to be able to use the same governor with several different (graphics)
devices in the same system.

This patch modifies tegra-throughput to use notifier chain for
delivering information about changed throughput hint.

Bug 1364804

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

5 years agovideo: tegra: host: Enable VIC scaling
Arto Merilainen [Wed, 25 Sep 2013 08:43:55 +0000]
video: tegra: host: Enable VIC scaling

This patch enables VIC scaling - including EMC scaling based on VIC.
We use the nvhost_pod governor that is used also for scaling
gr3d/gk20a. Load measurement is based on VIC actmon.

Bug 1364804

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

5 years agovideo: tegra: host: Add VIC support to nvhost_pod
Arto Merilainen [Wed, 25 Sep 2013 11:41:13 +0000]
video: tegra: host: Add VIC support to nvhost_pod

nvhost_pod has traditionally been used in 3d scaling. We now want
to use the same scaling policy to scale VIC03. At this point we
enable only scaling based on actmon value.

Bug 1364804

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

5 years agovideo: tegra: nvmap: dmabuf stash tracking
Alex Waterman [Tue, 3 Sep 2013 16:26:17 +0000]
video: tegra: nvmap: dmabuf stash tracking

Add a debugfs node to track and display stashed allocations.

Bug 1356091

Change-Id: Ib5c1407bff23e8b65f3d1d8944d57c35dfd00bd2
Signed-off-by: Alex Waterman <alexw@nvidia.com>
(cherry picked from commit 74695ae5eefa383579fe3598fa7bbb4d7536f3da)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agomisc: tegra-throughput: Use notifiers
Arto Merilainen [Wed, 25 Sep 2013 12:39:34 +0000]
misc: tegra-throughput: Use notifiers

We used to deliver this information by calling directly a function
inside nvhost_pod. This is not suitable for our needs as we want
to be able to use the same governor with several different (graphics)
devices in the same system.

This patch modifies tegra-throughput to use notifier chain for
delivering information about changed throughput hint.

Bug 1364804

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

5 years agovideo: tegra: host: Support linear EMC scaling
Arto Merilainen [Wed, 25 Sep 2013 11:05:47 +0000]
video: tegra: host: Support linear EMC scaling

Some units have strict linear relationship between unit clock and
required memory bandwidth, however, currently automatic EMC
relationship computation expects a non-linear relationship. This
patch adds a flag to nvhost device data to indicate if the
EMC should be scaled based using linear relationship.

Bug 1364804

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

5 years agoARM: tegra: pcie: Some general fixes
Jay Agarwal [Thu, 19 Sep 2013 12:56:28 +0000]
ARM: tegra: pcie: Some general fixes

1. Make Deassert reset line programming common
   for both T30 and T124
2. Program all thresholds for clock gating
3. Remove redundant code to enable bus mastering
   and accepting memory and IO requests

Bug 1354396
Bug 1228219

Change-Id: I0e1cadacdd2c65bb8563ef2ebe94c6cb84efeb9a
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/276582
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
(cherry picked from commit 1413e1e04fa90e19bcb075c092a80c9bd0d615e3)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: ardbeg: Enable SDR104 mode for SD
R Raj Kumar [Fri, 20 Sep 2013 10:11:13 +0000]
ARM: tegra: ardbeg: Enable SDR104 mode for SD

Enable SDR104 mode for SD.
Enable POR frequency for SD on E1780.

Bug 1340258

Change-Id: I23b625bcce4be5fd9833e5eec4c3ffaf5916a8ca
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/277152
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
(cherry picked from commit 0794b21578d47eea1f80a5bb8754d907c0574d03)
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: I1c1232313aefe835f9c71dac10a2fe2034853d2a
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
(cherry picked from commit f40e0a66661685b5d8c2260e2bca4281526f33b8)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: Use only possible freqs
Arto Merilainen [Wed, 25 Sep 2013 08:38:53 +0000]
video: tegra: host: Use only possible freqs

The generic devfreq profile used DVFS table for determining possible
frequencies. However, the table may not be consistent with the minimum
frequency of the device and the table may include duplicate frequencies
in the beginning and the end.

This patch adds necessary logic to rule out the bad frequencies.

Bug 1364804

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

5 years agosecurity: tlk_driver: serialize calls to tlk
James Zhao [Wed, 25 Sep 2013 21:10:00 +0000]
security: tlk_driver: serialize calls to tlk

Add mutex lock to serialize all ioctls that will
result in a smc call to tlk.

bug 1340442
bug 1340471

Change-Id: Ie2cc1e21dcff0a78c971aad0c230f71d1f2b1c49
Signed-off-by: James Zhao <jamesz@nvidia.com>
(cherry picked from commit 2a9da9d1c1e717d7f44befb0ca84cbca413b9e3f)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: gk20a: Disable GPU bus clock in power-off
Alex Frid [Fri, 20 Sep 2013 05:11:10 +0000]
video: tegra: gk20a: Disable GPU bus clock in power-off

When gk20a is powered off, disable gbus shared user clock and re-enable
it on resume. Still keep direct control of GPCPLL in place as a backup
to prevent system hang in case when gbus clock clients do not balance
enable/disable controls.

Bug 1364240

Change-Id: I50bc1dc10b4b2a405e2c969a08a8ef4ad75de241
Signed-off-by: Alex Frid <afrid@nvidia.com>
(cherry picked from commit 8338eecc4f1775006d106879cc02f582f6fa243a)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: nvmap: remove nvmap_handle_address_user_id API
Krishna Reddy [Thu, 26 Sep 2013 20:27:22 +0000]
video: tegra: nvmap: remove nvmap_handle_address_user_id API

this API is obsolete and no longer necessary.

Change-Id: I45fa9d48a7e242f745ce944d0dc74795964cefac
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
(cherry picked from commit d96cf686f0054d79731f80651935e149c6bfeb24)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agomedia: platform: tegra: nvavp: replace nvmap_handle_address_user_id
Krishna Reddy [Thu, 26 Sep 2013 20:23:37 +0000]
media: platform: tegra: nvavp: replace nvmap_handle_address_user_id

replace nvmap_handle_address_user_id with dmabuf API.

Change-Id: Ie1fc8e9ed50431208bdbf65ca869c0ccccaa9e75
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
(cherry picked from commit 77c602909a7634930aa63a594948340095ded660)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: nvmap: convert some of NvMap API to private
Krishna Reddy [Thu, 26 Sep 2013 19:11:55 +0000]
video: tegra: nvmap: convert some of NvMap API to private

convert nvmap_create_client/_dmabuf_export_from_ref/_ref_to_id,
nvmap_pin/_unpin into private API.
remove obsolete API nvmap_ref_to_user_id/_get_addr_from_user_id
as well.

Change-Id: I18025307d9d819d6c19df6dc558a03febd6fef14
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
(cherry picked from commit 0d0c64fc93436c0671672d2a6b55d64b55db8b50)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra12: clock: Enable GPU bus retention
Alex Frid [Fri, 20 Sep 2013 02:56:15 +0000]
ARM: tegra12: clock: Enable GPU bus retention

Change-Id: I3b3bf69932bf3e6106ff303d36d7691fc358b83f
Signed-off-by: Alex Frid <afrid@nvidia.com>
(cherry picked from commit 08ad24fbd1f8e0c34e74e15c50b30b0556abe67b)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: dvfs: Add thermal dvfs cooling device ops
Alex Frid [Thu, 12 Sep 2013 04:49:19 +0000]
ARM: tegra: dvfs: Add thermal dvfs cooling device ops

Added thermal dvfs cooling device operations to support voltage and
frequency scaling with temperature. Renamed tegra_dvfs_rail_cooling_ops
to tegra_dvfs_vmin_cooling_ops to differentiate with newly added
tegra_dvfs_vts_cooling_ops.

Bug 1273253

Change-Id: I7f8f9082d683883920e80d1e68331f4c0f1a53c6
Signed-off-by: Alex Frid <afrid@nvidia.com>
(cherry picked from commit 13790063b65041f1cf171ad058b8f9b4df8ca1b6)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: tegra: remove 312Mhz due to memqual failure
Xue Dong [Thu, 26 Sep 2013 22:34:40 +0000]
arm: tegra: remove 312Mhz due to memqual failure

Change-Id: Ic1ff0cf3eb9aada54fdf0c803c430439ce598dfc
Signed-off-by: Xue Dong <xdong@nvidia.com>
(cherry picked from commit 714fffcab30ed95018c03df4743de00a9c8a2d61)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: tegra: loki: enable EMC dvfs support
siddardha naraharisetti [Fri, 6 Sep 2013 21:04:20 +0000]
arm: tegra: loki: enable EMC dvfs support

added loki emc dvfs tables and enabled emc dvfs support

Bug 1363896

Change-Id: Ibb95e5d442aa23b1e11a03a88c1e150ab16e69d5
Signed-off-by: siddardha naraharisetti <siddardhan@nvidia.com>
(cherry picked from commit 6ade3fbf0366f29c71d346c0239a0fc01e44d529)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: nvmap: support using Fd's for handle
Krishna Reddy [Thu, 5 Sep 2013 22:43:33 +0000]
video: tegra: nvmap: support using Fd's for handle

support to return Fd's to user space instead of kernel virtual
address.

Change-Id: I25f4d883b88ccd249889eeacab99d0c71c25ae81
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/271085
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>
(cherry picked from commit c9d5edf8c7a72313c117fd5eb2cb57e727ba3986)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: nvhost header update
Ken Adams [Thu, 26 Sep 2013 15:43:38 +0000]
video: tegra: nvhost header update

Synchronizes hw_* header updates.

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

5 years agoARM: tegra12: clock: Add reset propagation delays
Kaz Fukuoka [Wed, 25 Sep 2013 01:07:42 +0000]
ARM: tegra12: clock: Add reset propagation delays

Added explicit reset propagation delay in resume procedure.

Ported from Tegra14 Change-Id: I25b8e124599a177691cff3c868909bff382e5373

Change-Id: I50b6ac00a9dcc682852dc5387d172893d4335a55
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
(cherry picked from commit 9f06263084eff3e0b513fec2475a173c11846223)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: dc: Do not enable fb on Android
Michael Frydrych [Thu, 26 Sep 2013 14:02:50 +0000]
video: tegra: dc: Do not enable fb on Android

Fixes WAR implemented in dc925c2dff so that it
explicitly disables fb window on Android and enables
the fb window otherwise.

Bug 1356757

Change-Id: I931063cd9042b2cc2884d448731f0972da277af1
Signed-off-by: Michael Frydrych <mfrydrych@nvidia.com>
Reviewed-on: http://git-master/r/279371
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
(cherry picked from commit 002c090e13f234f52b77782720a90633aac2b75f)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: dvfs: Handle zero GPU rail voltage
Alex Frid [Fri, 20 Sep 2013 05:45:09 +0000]
ARM: tegra: dvfs: Handle zero GPU rail voltage

Preserved voltage of the rail with in-band enable / disable control
when all clocks associated with dvfs rail are disabled, and "0"
voltage is requested. The rail will be turned off via explicit call
to regulator interface - applicable to GPU rail.

No changes if "0" voltage is requested for rail with side-band control,
and jump-to-zero property - CPU rail: allow to pass "0" through,
mainly for statistical purpose. Added warning and preserve voltage
if "0" requested for core rail - must never happen (core system clocks
are never disabled at run-time).

Change-Id: I724ea9373d0731d6f115ecde1e3b8dd8e7ff2884
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/278180
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit fab7582bcae0c63a645aa2cbb9e1e001b4b5603c)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra12: clock: Support shared bus rate retention
Alex Frid [Thu, 19 Sep 2013 22:08:33 +0000]
ARM: tegra12: clock: Support shared bus rate retention

Added Tegra12 shared bus rate retention mechanism: do not scale bus
clock to minimum rate if there is no rate request from shared users;
instead keep current bus rate.

This mechanism allows to reduce voltage scaling and pll re-locking
steps during shared bus on/off transitions provided underlying physical
clock is disabled when all floor and bandwidth users are disabled. It
should not be used with always-on buses like emc or system clock. For
now, retention is not enabled on any Tegra12 shared buses.

Change-Id: I9bc611311d0a801f11c094154a09d3456322395e
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/278178
Tested-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit 2e9524c6c42fc92bec83f032d6fe3571748e2059)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agomedia:platform:tegra: reduce delay in ar0261.
Amey Asgaonkar [Wed, 18 Sep 2013 22:16:49 +0000]
media:platform:tegra: reduce delay in ar0261.

This change reduces the two delay in ar0261 driver
from 100 ms to 10 ms.

Bug 1366970

Change-Id: I8fd4a288ff0e3496f7d2ac6650b628cae8c71fb0
Signed-off-by: Amey Asgaonkar <aasgaonkar@nvidia.com>
(cherry picked from commit f48ad6a07c0cb9b5479ef69928b82ff4966723eb)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agomedia: platform: tegra: ov5693: update fuseid read
Phil Breczinski [Mon, 16 Sep 2013 23:39:33 +0000]
media: platform: tegra: ov5693: update fuseid read

Update ov5693's fuse ID read ioctl handling to match
the standard.

Bug 1369367

Change-Id: I600bd459ca4c8315b4f2bfe243a3e36e5ffc8aa7
Signed-off-by: Phil Breczinski <pbreczinski@nvidia.com>
(cherry picked from commit 84654e65576d0c9d735d889959786c8883678689)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: dc: Fix HDMI powergating issue
Chao Xu [Tue, 24 Sep 2013 23:14:45 +0000]
video: tegra: dc: Fix HDMI powergating issue

Setting DISPB connected state after pending HPD is handled so DC won't
powergate DIPB accidentally.

Bug 1364348

Change-Id: Ib71267a73c205d1957972d462987e8f4cb542712
Signed-off-by: Chao Xu <cxu@nvidia.com>
Reviewed-on: http://git-master/r/278533
Reviewed-by: Automatic_Commit_Validation_User
(cherry picked from commit d6bee34206954a33f3245dea13d39c35b5fb9a5f)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra12: clock: Fix shared user request calculation
Kaz Fukuoka [Wed, 18 Sep 2013 21:22:44 +0000]
ARM: tegra12: clock: Fix shared user request calculation

Fixed rate request calculation for shared users with non 1:1 bus to
user rate ratio. No harm was done so far since there are no such users
defined on Tegra12.

Ported from Tegra14 Change-Id: I8895b90a65df04607b610a95bcdf304de46a29ad

Change-Id: I58fdaa4e340950d27254fa0545302f035571d0e6
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
(cherry picked from commit 0ba6719cd905b14a630b47006518b4ba4191d45c)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoarm: tegra: emc: fix compiler warnings
Philip Rakity [Tue, 3 Sep 2013 18:39:53 +0000]
arm: tegra: emc:  fix compiler warnings

/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c: In function 'emc_writel':
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:373:2:
warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'long unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c: In function 'emc0_writel':
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:377:2:
warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'long unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c: In function 'emc1_writel':
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:381:2:
warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'long unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c: In function 'emc_readl':
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:385:2:
warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:104:19: note: expected 'void const volatile *' but argument is of type 'long unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c: In function 'mc_writel':
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:389:2:
warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'long unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c: In function 'mc_readl':
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:393:2:
warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:104:19: note: expected 'void const volatile *' but argument is of type 'long unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c: In function 'ccfifo_writel':
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:398:2:
warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:399:2:
warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c: In function 'set_over_temp_timing':
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:496:2:
warning: passing argument 2 of '__raw_writel' discards 'const' qualifier from pointer target type [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'void const *'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:497:2:
warning: passing argument 2 of '__raw_writel' discards 'const' qualifier from pointer target type [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'void const *'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:498:2:
warning: passing argument 2 of '__raw_writel' discards 'const' qualifier from pointer target type [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'void const *'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c: In function 'do_clock_change':
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:616:2:
warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:617:2:
warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:104:19: note: expected 'void const volatile *' but argument is of type 'unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c: In function 'emc_set_clock':
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:673:3:
warning: passing argument 2 of '__raw_writel' discards 'const' qualifier from pointer target type [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'void const *'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:677:4:
warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:679:4:
warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:731:5:
warning: passing argument 2 of '__raw_writel' discards 'const' qualifier from pointer target type [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'void const *'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:746:5:
warning: passing argument 2 of '__raw_writel' discards 'const' qualifier from pointer target type [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:88:20:
note: expected 'void volatile *' but argument is of type 'void const *'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c: In function 'emc_get_timing':
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:788:4:
warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:104:19:
note: expected 'void const volatile *' but argument is of type 'unsigned int'
/nvidia/DEV_KERNEL/kernel/arch/arm/mach-tegra/tegra11_emc.c:790:4:
warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [enabled by default]
/nvidia/DEV_KERNEL/kernel/arch/arm/include/asm/io.h:104:19:
note: expected 'void const volatile *' but argument is of type 'unsigned int'

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

Conflicts:
arch/arm/mach-tegra/tegra11_emc.c

5 years agovideo: tegra: nvmap: Stashing depends on IOMMU API
Alex Waterman [Fri, 20 Sep 2013 17:55:34 +0000]
video: tegra: nvmap: Stashing depends on IOMMU API

The stashing code in nvmap has a dependency on the IOMMU API. This
patch adds the dependency to the Kconfig for nvmap.

Bug 1356091

Change-Id: I6bac4ee7384e4a7acd2273c5048881990b94c1f5
Signed-off-by: Alex Waterman <alexw@nvidia.com>
(cherry picked from commit b6fdd2f0836cbecde35dddc234f2a3a5de2f0cf4)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: nvmap: cleanup: Remove unused variable
Alex Waterman [Mon, 23 Sep 2013 19:32:28 +0000]
video: tegra: nvmap: cleanup: Remove unused variable

Change-Id: Ia58610d813b552fc2cf7bc5d95f52431b4e3d8a1
Signed-off-by: Alex Waterman <alexw@nvidia.com>
(cherry picked from commit 98613a040b44f6ef9ec744e199279cd51ad84ec7)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: host: remove nvmap client creation
Krishna Reddy [Wed, 25 Sep 2013 00:09:57 +0000]
video: tegra: host: remove nvmap client creation

remove nvmap client creation, which is no longer
necessary.

Change-Id: Ice0a966408e49aa930ff8ce473836334c4a414af
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/278552
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
(cherry picked from commit f4e9d74fb9a2a0b79606cbceafd08c81f4b8d7fb)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra12: clock: add sdmmc3,4 to emc
Naveen Kumar Arepalli [Tue, 24 Sep 2013 12:17:30 +0000]
ARM: tegra12: clock: add sdmmc3,4 to emc

Add sdmmc3 and sdmmc4 to emc as a client.
Increasing emc freq helps sdmmc3 and sdmmc4 KPI.

Bug 1259830

Change-Id: Ie806aace782966c7c81665a29bfcfeb84d43e425
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
(cherry picked from commit a9ef6a6c1ea272054154f8b8aa793da27fe989d9)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: ardbeg: Enable HS200 mode for eMMC
Naveen Kumar Arepalli [Thu, 19 Sep 2013 09:32:43 +0000]
ARM: tegra: ardbeg: Enable HS200 mode for eMMC

-Enable HS200 mode for eMMC
-Enable POR frequency for eMMC on E1780

Bug 1259830

Change-Id: Ia0695d213f0c4020d48ccf673728a7e44fc2d545
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
(cherry picked from commit 67169f277e90012aef5dcd423508eeda72b4bca6)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agopower: reset: palmas: add DT support
Laxman Dewangan [Thu, 26 Sep 2013 11:03:46 +0000]
power: reset: palmas: add DT support

Add DT support on palmas power-off driver.

Change-Id: Ie1ab874ae2b49f9e564101d70b24862a2c7a910e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 808d2d9c09ba2e125659642d66ededab8cd99ca9)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agopalmas: regulator: do not support charge-pump regulator for non-tps80036
Laxman Dewangan [Thu, 26 Sep 2013 07:55:34 +0000]
palmas: regulator: do not support charge-pump regulator for non-tps80036

Bypass the regulator registration of CHARGE_PUMP regulator for non-tps80036
Palmas devices.

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

5 years agomfd: palmas: add support for DT
Laxman Dewangan [Thu, 26 Sep 2013 07:31:43 +0000]
mfd: palmas: add support for DT

Add DT support for Palmas mfd driver.

Change-Id: Id96e62031790c77d9e9ee333068e49901c0126e3
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 4897d990b665cc27cc3645ea437a51585cabaab0)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agomfd: palmas: cleanup error path
Laxman Dewangan [Thu, 26 Sep 2013 07:23:39 +0000]
mfd: palmas: cleanup error path

Fix the resource leak and clean the error path.

Change-Id: I4b5697ab2cedb8bd7cc00a49e572071d7c91ab8d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 62c91240337bed836e654a685d81e326b71e4b5c)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoextcon: palmas: add extcon connection name property for DT
Laxman Dewangan [Thu, 26 Sep 2013 09:56:00 +0000]
extcon: palmas: add extcon connection name property for DT

Add property to set the extcon connection name so that the name
can be configure from DT.

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

5 years agofury: add default dts for project fury
Hayden Du [Thu, 26 Sep 2013 03:54:37 +0000]
fury: add default dts for project fury

Change-Id: I12b868aae65493790d579340d7ad0b1851ab9aaa
Signed-off-by: Hayden Du <haydend@nvidia.com>
(cherry picked from commit 0c73453d229391d73ea76563391fd3b6e436af04)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agovideo: tegra: gk20a: add elpg_enable sysfs node
Prashant Malani [Tue, 17 Sep 2013 21:31:57 +0000]
video: tegra: gk20a: add elpg_enable sysfs node

Add the ability to toggle elpg on/off at runtime.

Bug 1365937

Change-Id: I2cae49f0eddd116406c50e87a61b6cfab49c4fdf
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
(cherry picked from commit beb42c16d939d2df932dcd174ba38b888ad93b46)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agoARM: tegra: Remove board specific data
Ashwin Joshi [Tue, 1 Oct 2013 07:30:44 +0000]
ARM: tegra: Remove board specific data

Remove board specific data from common code. It should be set in board
file or passed through a DT.

Bug 1371545

Change-Id: I435bbefd83a9d007b670fcd098dd65e43c6b2fa8
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/280630
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: Ardbeg: Update SATA platform data
Ashwin Joshi [Tue, 1 Oct 2013 07:32:15 +0000]
ARM: tegra: Ardbeg: Update SATA platform data

Pass all board specific data for SATA from board file. Earlier it was
set in common code, moved it to board file.

Bug 1371545

Change-Id: Ice2642e3ee57cad5821224f4607b14559c4a785e
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/280631
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: mm: fix mm merge conflict
Adeel Raza [Tue, 1 Oct 2013 00:23:43 +0000]
arm: mm: fix mm merge conflict

Bug 1379902

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

5 years agoMerge 3.8 changes up to main-promo-2013.09.30-C1.1
Dan Willemsen [Tue, 1 Oct 2013 18:20:23 +0000]
Merge 3.8 changes up to main-promo-2013.09.30-C1.1

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