arm: configs: tegra3: Enable boost cpu frequency

Enabling boost CPU frequency for tegra gadget
to improve USB performance.

Bug 1020850

Change-Id: I3ef7cbc4e023ffe1443fc2e662550963f34d1daf
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/120353
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rama Kandhala <rkandhala@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
video: tegra: hdcp: Fix Locking Issue

Locking in nvhdcp was set up in such a way that we couldn't
change the state of the HDMI plug while negotiating the HDCP connection.

Another lock was added that is only taken when the state of the plug or
hdcp session are changed.  This enables correct failure if the plug is removed
during negotiation.

Bug 1024031

Change-Id: Ia9e49fcd7b996d2ce5338a72ce4e66c1ab40e1bb
Reviewed-on: http://git-master/r/120546
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
arm: tegra: optimize L2 enable/disable paths for secureos

For the CONFIG_TRUSTED_FOUNDATION code paths, differentiate L2
enable vs. reenable, which are different SMCs (won't trigger an
invalidate in the case of a reenable).

On an L2 disable SMC, optionally pass a 0 for the L2 ways arg,
which skips the full clean/invalidate (and simply just disabled
the L2).

In order to safely skip flushing the L2 on the disable, we have
to be careful what we dirty from the type we flush the L1 and
disable the L2.

Bug 939415
Signed-off-by: Chris Johnson <cwj@nvidia.com>

Change-Id: Ie83703e8a1620dcd4a913e43bb0775ce3f1709b5
Reviewed-on: http://git-master/r/119786
Reviewed-on: http://git-master/r/120956
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-by: James Zhao <jamesz@nvidia.com>
Tested-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>
GVS: Gerrit_Virtual_Submit
media: video: tegra: fix sh532u buffer overflows

We need to validate the buffer size before we
copy buffers from/to user space.

Bug 1027334

Change-Id: I0717e9ff1d2e5eb3e8a863555457f4bcfdbb2cb9
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/120185
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Patrick Shehane <pshehane@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
ARM: tegra: kai: update memory timings

Extend tick length to 60ns

Bug 1001229

Change-Id: I8a96dd08b6d11a196c9b82bec403ab2e4676e2f4
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/113081
(cherry picked from commit 487622aa43568d3f6f9a9f5fc98176e5ffdd6246)
Reviewed-on: http://git-master/r/120965
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>
ARM: tegra: enterprise: update memory timings

Extend to 60ns tick

Bug 1001229

Change-Id: Id2b01218a7c5cb1566d0e8c175defb12c79e6497
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/113122
(cherry picked from commit 176fd3fbaede0d38281fe4bad721856e7fef0833)
Reviewed-on: http://git-master/r/120966
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>
ARM: tegra: cardhu: update memory timings

Extend tick length to 60ns

Also add missed Cardhu SKU 1000 table

Bug 1001229
Bug 970610

Change-Id: I224158a88d02595d5b911f59b6920b9ed99481ab
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/113315
(cherry picked from commit 492193079047d9c5a4fff617a14191438f356e42)
Reviewed-on: http://git-master/r/120967
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>
misc: bcm4329: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

Change-Id: I38dac94bd0eb753c779db61f71c1e01295faa89e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120848
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com>
ARM: tegra: enterprise: remove macro for common fixed regs

The macro FIXED_REGS_COMMON used in only one place and it
is no more common across A02 and A04 and hence removing
this. Also remove unnecessary back slash.

Change-Id: If56512a3f957d06406e9baf369dd409feb82b55b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/121132
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
rtc: tps80031: register as mfd sub device

register RTC driver of TPS80031 as mfd sub
driver in place of adding it as a sub devices.
This is inline with the mfd driver policy.

Change-Id: I2f9c13478a1e85c9670dd7bc576ec761f2e24733
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/121133
Reviewed-by: Automatic_Commit_Validation_User
power: tps80031: battery-gauge: register as mfd sub device

Register battery gauge driver of TPS80031 as mfd
sub driver in place of adding it as a sub devices.
This is inline with the mfd driver policy.

Change-Id: I15765be19fc138695de2d813e5fa025400747c86
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/121134
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
power: tps80031: battery-charger: register as mfd sub device

Register battery charger driver of TPS80031 as mfd
sub driver in place of adding it as a sub devices.
This is inline with the mfd driver policy.

Change-Id: I8cff39f5c9b22434f7c5b9d4ed9f3865ff4c0001
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/121135
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
mfd: tps80031: gpadc: register as mfd sub device

Register General Purpose ADC driver of TPS80031 as
mfd sub driver in place of adding it as a sub devices.
This is inline with the mfd driver policy.

Change-Id: Ib3f86f05716baef96ee534eec5ae262627c6a853
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/121136
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
mfd: tps80031: remove support for subdevs registration

The mfd sub devices should get added through the
mfd_add_devices() not through legacy style of
adding sub devices.

Change-Id: If275d41629d799f1e22d95fd442ebe7d3ace448e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/121137
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
ARM: tegra: lp0 WAKE2 status clear

Tegra pmc WAKE2 status registers also need to be cleared
before re-entering lp0 mode.

Change-Id: I1bd5c48baf86ba23d0352594e97c360d363ce991
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/121185
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
WAR: gr3d: limit 3d clock when camera is on

As WAR, limit 3d clock frequency and emc clock frequency
when camera is on and chip is AP37. 3d clock is set to
361MHz and 437MHz is requested for emc clock with this
change. This change allows 3d to request 1.1V in Core
instead of 1.3V in AP37.

Bug 1001262
Bug 1019309

Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Change-Id: I1dbab3469a31ef603f7665fc5a6cb5c1999f89b6
Reviewed-on: http://git-master/r/120480
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
kernel/drivers: Atmel: Increase input_dev buf size

Multi-touch causes a lot of events being generated. Increase the
buffer size so that it does not queue up very rapidly. May still
cause the screen to become slow.

BUG 1025871

Change-Id: If4488e38c88f0a533d7deb5654f67ca896f9f344
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/121497
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Jung <djung@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
mfd: add support for MAXIM77665

Maxim 77665 is Companion PMIC for Smartphones and Tablets.
This support Flash, Fuel Gauge, Haptic, MUIC and battery
charging.
This patch add the core driver for interface for accessing
resgister of the device.

Change-Id: I7d5dff8c222147b2ca1cd21a652f593cd7294601
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/121587
Reviewed-by: Automatic_Commit_Validation_User
mfd: tps65090: initialize regmap before accessing register

The regmap should be initialized before irq initialization
happen as register are accessed during irq init.

Change-Id: I301e8b84596a9075209901cbaff1dc42a944e163
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/121623
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
ARM: tegra: e1853: Add e1853 defconfig

Add a defconfig file for E1853 board

Bug 966833
Bug 1018258

Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>

Change-Id: I7cbde666acbe13fcaca2f56d877e0b4872756c17
Reviewed-on: http://git-master/r/118281
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-by: Bhavesh Parekh <bparekh@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
(cherry picked from commit 465ba7c85429964a7937a6683376d72e396ebe47)
Reviewed-on: http://git-master/r/119650
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>