6 years agoregulator: palmas: fix the ramp delay logic comparison
Laxman Dewangan [Fri, 26 Apr 2013 09:45:53 +0000]
regulator: palmas: fix the ramp delay logic comparison

Change-Id: I4eb8a1f5262c8fc5fbc42f504bc44bebad2a5719
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/223305
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Philip Rakity <prakity@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agousb: otg: tegra: update interrupt status properly
Rohith Seelaboyina [Thu, 25 Apr 2013 07:10:21 +0000]
usb: otg: tegra: update interrupt status properly

Interrupt status is being overridden,
fix this accordingly

Bug 1275428

Change-Id: I0812cbda3fd75a7d33dc180db31ad2ee1699d3bf
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/222812
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: tegratab: do not enable DC1 in DC probe
Youngjin Kim [Thu, 25 Apr 2013 07:12:47 +0000]
ARM: tegra: tegratab: do not enable DC1 in DC probe

Remove TEGRA_DC_FLAG_ENABLED flag from disp2 platform data
not to enable DC1 in DC probe.

Bug 1270114

Change-Id: Idc2c294d9c48b2d0004aed277dcfac3b1cfd32d6
Signed-off-by: Youngjin Kim <nkim@nvidia.com>
Reviewed-on: http://git-master/r/222809
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: tegra: add base address & size for 2d and 3d
Mayuresh Kulkarni [Fri, 7 Dec 2012 10:01:19 +0000]
arm: tegra: add base address & size for 2d and 3d

bug 1041377

Change-Id: I2f3d0eb0b2e92a70ec641be2920ae61a57cd4417
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/169347
(cherry picked from commit d7d37a1fe4f6a62f1bb10dd760bfc60538b78ffb)
Reviewed-on: http://git-master/r/221834
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoArm: tegra: tegratab: change utmi host phy config
Shawn Joo [Fri, 19 Apr 2013 07:05:18 +0000]
Arm: tegra: tegratab: change utmi host phy config

change usb host mode phy config for tegratab.
xcvr setup and hs slew LSB is modified.

Bug 1272371

Change-Id: Iec3d2954d7fd154def01cf01d570acbac33d910c
Signed-off-by: Shawn Joo <sjoo@nvidia.com>
Reviewed-on: http://git-master/r/220919
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: tegra: macallan: correct the roof_floors of ldos
Hunk Lin [Thu, 25 Apr 2013 12:55:31 +0000]
arm: tegra: macallan: correct the roof_floors of ldos

Set roof_floor of ldo2/ldo3/ldo9/ldoln to be 0. These three rails' ON/OFF
should be controlled by drivers.
External control(roof_floor) should be only used for the power rails which
require to be on during system idle/active and do not require to be on when
it is in sleep/lp0.

Bug 1278668
Bug 1278671
Bug 1278672
Bug 1279327

Change-Id: Ia5114538a7bdf9b8d3ae39f2a26d0cbf7ec70c95
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/222923
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: pluto: remove external control from LDO9
Laxman Dewangan [Thu, 25 Apr 2013 07:15:50 +0000]
ARM: tegra: pluto: remove external control from LDO9

The Palmas-LDO9 is used for supplyign the voltage to sdmmc3-ap rail
and sdmmc driver already take care of rail to be enable/disable and
hence it is not require to configure it as external control.

bug 1278358

Change-Id: Ie825d79d516ec9d9e1f1336822f67845aaf1269e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/222840
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: usb: disable USB_WAKE_ON_CNNT_EN_DEV bit
Petlozu Pravareshwar [Wed, 3 Apr 2013 10:13:35 +0000]
ARM: tegra: usb: disable USB_WAKE_ON_CNNT_EN_DEV bit

Disable USB_WAKE_ON_CNNT_EN_DEV bit during phy_power_off.

Bug 1251685
Bug 1223856

Change-Id: Ifbe24badcada19472d47fe92117f5a4b0e28eda7
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/216068
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: add clamping status read.
Kevin Huang [Mon, 15 Apr 2013 22:59:15 +0000]
ARM: tegra: add clamping status read.

Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Change-Id: I2bf7b0d4cd88583295183347ed6a4bc1c0e450f1
Reviewed-on: http://git-master/r/219959
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
(cherry picked from commit 56469c85646b8fb859f2f30325d53de989d554f4)
Reviewed-on: http://git-master/r/221740
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: clock: ignore timeout warnings on pll_d/d2
Kevin Huang [Wed, 17 Apr 2013 01:44:25 +0000]
ARM: tegra: clock: ignore timeout warnings on pll_d/d2

Due to a hardware bug, plld/d2 lock bit cannot be asserted
during DSI unpower-gating. The lock bit can only be locked
after clamping of DSI is removed. It triggers false alarm
when plld/d2 is enabled. Ignore these warnigs when DIS
partition is still clamped.

Bug 1257086
Bug 1258312

Change-Id: I499efa0086dd677df70295efab26f7f8b3045a60
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/220017
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
(cherry picked from commit 853cf1d4e235ffcc64a27b0b602799aee6906e12)
Reviewed-on: http://git-master/r/221741
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoRevert "ARM: tegra: usb: increase line debounce count"
Ajay Gupta [Thu, 25 Apr 2013 23:26:02 +0000]
Revert "ARM: tegra: usb: increase line debounce count"

This reverts commit 1fb66376c0f5add2ed09e839e04fd1377f828db3.

Bug 1275437

Change-Id: I0a6ab63019a2d4484dec2ff32e63846fbc372374
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/223122
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: fix comparison in enforcing volt-temp constraint
Diwakar Tundlam [Tue, 23 Apr 2013 23:05:47 +0000]
ARM: tegra: fix comparison in enforcing volt-temp constraint

Bug 1270003

Change-Id: I345a7dc58cd65e0167525bbd8182bbc8d5753c05
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/222198
(cherry picked from commit d509ba241fd0eb1266994b68e16c13e9afec5961)
Reviewed-on: http://git-master/r/222633
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agoARM: Tegra: Dalmore: Use config2 power tree for A02 and A05
Graziano Misuraca [Tue, 23 Apr 2013 17:14:33 +0000]
ARM: Tegra: Dalmore: Use config2 power tree for A02 and A05

Change-Id: Ibd74ca9f63de80b6e27c6c5835857ba277d64cb8
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/222128
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: Tegra: Roth: Toggle DDC pull down with hpd
Graziano Misuraca [Thu, 4 Apr 2013 00:23:06 +0000]
ARM: Tegra: Roth: Toggle DDC pull down with hpd

Only set DDC_SDA and DDC_SCL pull downs to be active
when we detect a hotplug. Otherwise keep them disabled.

Bug 1237421

Change-Id: I57bb7209ac79762f90c88e999a75133d8125c453
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/216317
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: dts: Tegra114: Remove host1x DT nodes in default
Min-wuk Lee [Wed, 24 Apr 2013 01:37:30 +0000]
ARM: dts: Tegra114: Remove host1x DT nodes in default

Remove host1x DT nodes in tegra114.dtsi, since it is
not used in default. These nodes need to be moved
to the place where they are required.

Bug 1240921

Change-Id: I0b6a503880e06d47c478a88b4de4b1c8874d5caf
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/222228
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agonet: wireless: bcmdhd: Fix Warning F1 Signature
Jeetesh Burman [Tue, 23 Apr 2013 07:06:33 +0000]
net: wireless: bcmdhd: Fix Warning F1 Signature

The priority level of Warning message F1 Signature is
reduced from DHD_ERROR to DHD_INFO.

Bug 1249615

Change-Id: I0e976c0741bc3794268f31b0e874465c94173c6e
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/221939
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: macallan: disable vbus while going to lp0
Hayden Du [Tue, 23 Apr 2013 04:44:57 +0000]
ARM: tegra: macallan: disable vbus while going to lp0

disable vbus while going to lp0

bug 1276088

Change-Id: I03dce42f52eaa64b7c65f35374dd750260a9c36a
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/221882
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoArm: tegra: usb_phy: add config for HSSLEW LSB.
Shawn Joo [Fri, 19 Apr 2013 04:17:07 +0000]
Arm: tegra: usb_phy: add config for HSSLEW LSB.

while tuning usb characterization HS slew LSB is required to be adjusted.
add a code in usb phy.

Bug 1272371

Change-Id: If1b4507e326c25aeac7acdd4817509b9536181af
Signed-off-by: Shawn Joo <sjoo@nvidia.com>
Reviewed-on: http://git-master/r/220843
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: dts: tegra114: Add max17048_battery DT support for TegraTab
Jinyoung Park [Wed, 17 Apr 2013 14:41:09 +0000]
arm: dts: tegra114: Add max17048_battery DT support for TegraTab

Added max17048 device tree and wrapped I2C and platform data for max17048
in #ifndef CONFIG_OF to prevent duplicate registration.

Bug 1240935

Change-Id: I920d6dc30522f296083a3a79d66884a5869686c4
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/220236
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agopower: max17048: Add DT support
Jinyoung Park [Wed, 17 Apr 2013 14:37:42 +0000]
power: max17048: Add DT support

Added DT support and documentation for max17048_battery.

Bug 1240935

Change-Id: I9536e81d0a55625bd6a53f70feb03160acaeeba6
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/220235
Reviewed-by: Alex Courbot <acourbot@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra11: allow disabling HDMI through DT
Alexandre Courbot [Tue, 12 Mar 2013 06:42:40 +0000]
ARM: tegra11: allow disabling HDMI through DT

HDMI output can be disabled by setting the "host1x/hdmi" node's status
to disabled. Also factorizes the common HDMI initialization code to one
place.

Bug 1239870

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Change-Id: I4202b5832c77e265dae2c3bcb7d92c509cffd606
Reviewed-on: http://git-master/r/208311
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agopower: max17042: new depletion equations
Sivaram Nair [Wed, 24 Apr 2013 13:05:00 +0000]
power: max17042: new depletion equations

Existing depletion calculation is too slow to react. The depletion does
not kick in until we are way too low in the SOC. Applying new equations.

Bug 1264825

Change-Id: I0bfc3ee3a61c7dfb4987bcb20b54677285941dba
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/222575
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishnan Geeyarpuram <kgeeyarpuram@nvidia.com>
Tested-by: Krishnan Geeyarpuram <kgeeyarpuram@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoARM: tegra: pluto: add entries to RBAT mapping LUT
Sivaram Nair [Tue, 9 Apr 2013 08:42:34 +0000]
ARM: tegra: pluto: add entries to RBAT mapping LUT

Data from Yoku 2000 mAh battery data sheet.

Bug 1264825

Change-Id: Ia012d2adb1b03de8181ba1593ef672b3899b6184
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/222574
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agopower: max17042: interpolate RBAT values
Sivaram Nair [Tue, 9 Apr 2013 08:35:15 +0000]
power: max17042: interpolate RBAT values

Patch to interpolate RBAT values from discrete steps.

Bug 1264825

Change-Id: Id2ddcde984d1ddd0ac27786d6fd3abe2d7aa4239
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/222573
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoARM: tegra: pluto: change battery cap to 15W
Sivaram Nair [Wed, 24 Apr 2013 09:04:01 +0000]
ARM: tegra: pluto: change battery cap to 15W

Bug 1264825

Change-Id: I1959dbdb54e1f84f32b1066c96fd56c24dbe0140
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/222572
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoEDP: tegra: change AP+DRAM gain factor to 130
Sivaram Nair [Wed, 24 Apr 2013 08:36:55 +0000]
EDP: tegra: change AP+DRAM gain factor to 130

Bug 1264825

Change-Id: Ic05558d2dd733682a65c31cc5fc9ca35e1d7664f
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/222571
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishnan Geeyarpuram <kgeeyarpuram@nvidia.com>
Tested-by: Krishnan Geeyarpuram <kgeeyarpuram@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoARM: tegra: pluto: new AP+DRAM tables
Sivaram Nair [Wed, 24 Apr 2013 08:35:57 +0000]
ARM: tegra: pluto: new AP+DRAM tables

Bug 1264825

Change-Id: I99acca553bd11f9d9db1481fc6099cc3c2eebf32
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/222570
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishnan Geeyarpuram <kgeeyarpuram@nvidia.com>
Tested-by: Krishnan Geeyarpuram <kgeeyarpuram@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoEDP: tegra: remove loan from tegra_sysedp_corecap
Sivaram Nair [Wed, 24 Apr 2013 08:33:11 +0000]
EDP: tegra: remove loan from tegra_sysedp_corecap

loan is exclusively used for the CPU power right now - no need to
include it in the tables. This reduces the table length.

Bug 1264825

Change-Id: I6c563d0b02e11cd72a40bc6f645b29fe816274d9
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/222569
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoARM: tegra: pluto: empty AP+DRAM capping table
Sivaram Nair [Wed, 24 Apr 2013 08:32:03 +0000]
ARM: tegra: pluto: empty AP+DRAM capping table

Preparing for the next change that includes struct changes.

Bug 1264825

Change-Id: I177c5da25d9c6024049b1f25c62d9c7f8dd4551d
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/222568
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoARM: tegra: pluto: set AP+DRAM E-state req to 20W
Sivaram Nair [Wed, 24 Apr 2013 15:17:28 +0000]
ARM: tegra: pluto: set AP+DRAM E-state req to 20W

Bug 1264825

Change-Id: I659ebc7ac8e694a3170241a8026c493d76574e0c
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/222567
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoEDP: tegra: add initial request to core client
Sivaram Nair [Wed, 24 Apr 2013 08:01:12 +0000]
EDP: tegra: add initial request to core client

This patch contains changes to let the core client specify an initial
E-state (rather than assuming the highest possible state).

Bug 1264825

Change-Id: If3b44c0f411d8c2b69762c26761f807b073b6345
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/222566
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishnan Geeyarpuram <kgeeyarpuram@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoarm: tegratab: remove unused camera configs
Jake Park [Wed, 24 Apr 2013 07:21:24 +0000]
arm: tegratab: remove unused camera configs

Below camera sensors are not for t114 platforms:
-CONFIG_VIDEO_OV5650=y
-CONFIG_VIDEO_OV9726=y
-CONFIG_VIDEO_OV2710=y

Also removed below which are not for T114 platforms:
-CONFIG_VIDEO_AR0832=y : sensor for enterprise
-CONFIG_TORCH_TPS61050=y : flash for cardhu
-CONFIG_VIDEO_SH532U=y : focuser for enterprise

Refer to http://git-master/r/219299

Change-Id: I90e25bf9b8c4b1c121fd4cce38abe07c32506096
Signed-off-by: Jake Park <jakep@nvidia.com>
Reviewed-on: http://git-master/r/222362
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: pluto: add battery characterization data
Syed Rafiuddin [Mon, 15 Apr 2013 07:58:26 +0000]
arm: tegra: pluto: add battery characterization data

addition of battery characterization data for pluto
platform

Bug 1261346

Change-Id: Ia98ebaa1a6dc96d0d39c60e6383f1144833e1a60
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/221925
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
Tested-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoinput: misc: compass: akm89xx: fix memory leak and race on accessing inf
David Yu [Tue, 23 Apr 2013 06:41:08 +0000]
input: misc: compass: akm89xx: fix memory leak and race on accessing inf

Bug 1276763

Change-Id: Ia16541ac45642c4758b55f041a6c3bc89dc6a00f
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/221920
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Kim <bok@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegra: tegratab: add DT data for ov5693
Jake Park [Mon, 15 Apr 2013 06:36:56 +0000]
arm: tegra: tegratab: add DT data for ov5693

Add DT support data for ov5693 bayer sensor

Bug 1255103

Change-Id: I14f34704c24ec0a2986effc19d14c7af5c31a9cd
Signed-off-by: Jake Park <jakep@nvidia.com>
Reviewed-on: http://git-master/r/220001
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: tegratab: add DT data for ad5823
Jake Park [Mon, 15 Apr 2013 06:16:21 +0000]
arm: tegra: tegratab: add DT data for ad5823

Add DT support data for ad5823 focuser

Bug 1255103

Change-Id: Ifcece67dfbbd79bcee72bb180112bf8192e6a8e1
Signed-off-by: Jake Park <jakep@nvidia.com>
Reviewed-on: http://git-master/r/220000
Reviewed-by: Peter Kim <pekim@nvidia.com>
Reviewed-by: Karl Kim <kkim@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoARM: tegra: phy: set line debounce count to 1
Preetham Chandru R [Fri, 19 Apr 2013 12:27:02 +0000]
ARM: tegra: phy: set line debounce count to 1

Set UTMI line debounce count to 1.
With this change the system wakes from LP0 when we disconnect USB-MSD.

Bug 1255249

Change-Id: I1560ddebba2b6859dbeea3c245cc6c52c6219708
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/212674
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: tegra: dvfs: Specify CL-DVFS tuning margin in mV
Alex Frid [Fri, 5 Apr 2013 06:09:34 +0000]
ARM: tegra: dvfs: Specify CL-DVFS tuning margin in mV

Changed CL-DVFS tuning threshold margin specification from LUT steps
to mV. This change made margin independent of LUT granularity.

Change-Id: Id25d419a4f32eaf6767cd966a78c9a372de3c1f2
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/216790
(cherry picked from commit 2d7a60b73bdea741061d21f28d747511715f3095)
Reviewed-on: http://git-master/r/222328
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: tegratab: Change slew rate of vdd_cpu to 2.5mV/us
Jinyoung Park [Tue, 23 Apr 2013 06:13:19 +0000]
ARM: tegra: tegratab: Change slew rate of vdd_cpu to 2.5mV/us

Changed rate of vdd_cpu to 2.5mV/us from 5.0mV/us due to undershoot
issue when voltage down scaling.
And adjusted sample rate of cl-dvfs to 11.5kHz according to slew rate.

Bug 1268516

Change-Id: I0a613d99628361e04628682d165e1456b9635b66
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/221908
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: usb: increase line debounce count
Rohith Seelaboyina [Wed, 24 Apr 2013 04:33:46 +0000]
ARM: tegra: usb: increase line debounce count

increasing line debounce count as system is not
resuming from LP0 on connecting low-speed devices.

Bug 1275437

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

6 years agousb: gadget: tegra: Turn off vbus sensors
Suresh Mangipudi [Tue, 23 Apr 2013 11:49:42 +0000]
usb: gadget: tegra: Turn off vbus sensors

The USB vbus sensors are supposed to be cleared. For proper functioning
of USB in device mode.

Bug 1274241

Change-Id: I5342f311b1987f0d1fdac6ed63ba591d61f9cba2
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/222071
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agousb: host: tegra: disble vbus while going to lp0
Rohith Seelaboyina [Tue, 23 Apr 2013 13:15:49 +0000]
usb: host: tegra: disble vbus while going to lp0

disable vbus while going to lp0

Bug 1274508

Change-Id: If0fc94193e17a797e3e76e01b9863141c46248f8
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/221579
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Harry Hong <hhong@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: tegra: usb: disable vbus while going to lp0
Rohith Seelaboyina [Tue, 23 Apr 2013 13:14:57 +0000]
ARM: tegra: usb: disable vbus while going to lp0

disable vbus while going to lp0

Bug 1274508

Change-Id: I1abed5ad250083aab1f06b26ddfbea37e5f0aec4
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/221578
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Harry Hong <hhong@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: tegra: tegratab: disable vbus while going to lp0
Rohith Seelaboyina [Mon, 22 Apr 2013 12:02:57 +0000]
ARM: tegra: tegratab: disable vbus while going to lp0

disable vbus while going to lp0

Bug 1274508

Change-Id: Id8fc118dffafdeac2117b1788c575ec3f966efee
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Signed-off-by: Simon Je <sje@nvidia.com>
Reviewed-on: http://git-master/r/221577
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: tegra: dalmore: increase fb2_size
Ramalingam C [Tue, 23 Apr 2013 13:36:35 +0000]
arm: tegra: dalmore: increase fb2_size

Increase fb2_size to accommodate 1920x1200 mode on HDMI monitors

Bug 1277083

Change-Id: Ieec3dc4f93972e7935598468ecfc62f10642ce08
Signed-off-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-on: http://git-master/r/222098
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: macallan: correct the roof_floor for some rails
Kerwin Wan [Tue, 23 Apr 2013 12:37:52 +0000]
arm: tegra: macallan: correct the roof_floor for some rails

Set roof_floor of ldo4, ldo5 and ldo7 to be 0.
External control(roof_floor) should be only used for the
power rails which require to be on during system idle/active
and do not require to be on when it is in sleep/lp0.

Bug 1241085

Change-Id: I80fbba27040e45a05e771bcf734184941cb451c9
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/222094
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarch: arm: tegratab: remove BMP180 config
David Yu [Tue, 23 Apr 2013 07:54:12 +0000]
arch: arm: tegratab: remove BMP180 config

Remove BMP180 pressure sensor which is not neccessary.

Change-Id: I8fa3f36d59f92e30482e35d6b6160d563596def0
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/221979
Reviewed-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-by: Bo Kim <bok@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agopower: max77665: fix temperature reading
Xin Xie [Wed, 17 Apr 2013 21:33:17 +0000]
power: max77665: fix temperature reading

We are using 0xFF as error code for temperature reading, but 0xFF is also
25.5c which is a legal temperature reading.

Fix this issue by using dedicated error code return value.

bug 1236790

Change-Id: Ic0be2909ec10ce5763f77dc6ec30a7c6bc5d9d03
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/220786
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agopower: max77665: enable high current charging
Xin Xie [Fri, 12 Apr 2013 00:16:44 +0000]
power: max77665: enable high current charging

This patch enables the high power charging (>500mA) on max77665.

Not all of wall charger or CDP port can support 1.5A charging. We need
dynamically detect the charger current capability in order to have the
maximum output efficiency. This can be done by detect max77665 is in the
'regulation loop' mode.

During the high power charging, VBUS out can get cut off if input VBUS
is below VCHIN_UVLO, and AP wll turn off the charging. We will detect
this condition and only turn off the charging when USB cable is indeed
unplugged.

bug 1236790
bug 1272664

Change-Id: I1a23d3e2bba066a48dc392055d7347bab956dda0
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/220785
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarm: tegra: soctherm: fix scheduling in atomic
Xin Xie [Thu, 18 Apr 2013 19:27:47 +0000]
arm: tegra: soctherm: fix scheduling in atomic

disable_irq() can sleep which should not be called with spinlock locked.

bug 1236790

Change-Id: Iff0ee96ceffa2fd7ab587267b96569fe21f61fe6
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/220784
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: tegratab: fix gyro orientation.
Hyongbin Kim [Tue, 16 Apr 2013 07:11:27 +0000]
arm: tegra: tegratab: fix gyro orientation.

Bug 1273475

Change-Id: I04d6c89131edbb222a43353680a66326c819f750
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/219701
Reviewed-by: Joshua Cha <joshuac@nvidia.com>
Tested-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agousb: xhci: tegra: save leakage power if SS link suspended
Ajay Gupta [Tue, 23 Apr 2013 17:33:21 +0000]
usb: xhci: tegra: save leakage power if SS link suspended

Bug 1275290

Change-Id: Ieaeb7f5caf0312ad3e1be2e6278fb154353ccff4
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/222223
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: dvfs: Rename dvfs cooling device operations
Alex Frid [Tue, 23 Apr 2013 06:30:29 +0000]
ARM: tegra: dvfs: Rename dvfs cooling device operations

Renamed dvfs cooling device operations to match updated device name
vmin_cdev (for both legacy and cl_dvfs cooling devices).

Change-Id: I24a3ee3d2c2e9cf738395a5d9788345b0e3ab732
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/221922
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoasoc: tegra: Disable MIC_BIAS route
Simon Je [Mon, 22 Apr 2013 12:06:29 +0000]
asoc: tegra: Disable MIC_BIAS route

Tegratab doesn't have circuit to control MIC_BIAS by GPIO.
Diable MIC_BIAS route in codec when built-in MIC(DMIC) is used
to prevent noise.

Bug 1273574

Change-Id: Iecc1f0e6a0f9b508d14acdf1c7dac9107c8748d9
Signed-off-by: Simon Je <sje@nvidia.com>
Reviewed-on: http://git-master/r/221580
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agoARM: tegra: macallan: enable dma based transfer
Hunk Lin [Mon, 22 Apr 2013 06:00:38 +0000]
ARM: tegra: macallan: enable dma based transfer

enable dma based transfer for T114 A02 SOC based board.

Bug 1233632

Change-Id: I3f91c1921d9373b0d81635d617204c349005fd52
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/221448
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: tegratab: set SPDIF_IN to open drain enable signal
Hunk Lin [Sun, 21 Apr 2013 09:32:16 +0000]
arm: tegra: tegratab: set SPDIF_IN to open drain enable signal

If this pin is drived to high and there is the over-current condition in HDMI
5V regulator. It will create a power-to-ground short. So we need change
this pin to open drain and enable pull-up.

Bug 1255023

Change-Id: I63bf18ad9fda984f641f26801053be129c09b881
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/221388
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: tegratab: add power detect rails
Hunk Lin [Sun, 21 Apr 2013 09:08:05 +0000]
arm: tegra: tegratab: add power detect rails

Add full power detect rails to fix high power in IO power rails and prevent
potential PAD broken.

Bug 1255023

Change-Id: Ib9b2f8ba64e3b5a1a6db0d8ec01626e9447f3a53
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/221387
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: macallan/tegratab: Clear fb2 if unspecified
Hunk Lin [Sun, 21 Apr 2013 08:28:57 +0000]
ARM: tegra: macallan/tegratab: Clear fb2 if unspecified

Clear framebuffer2 if and only if framebuffer2 is not specified by the
bootloader. If the bootloader framebuffer2 is specified, then copy the
contents to kernel framebuffer2.

Bug 1229981

Change-Id: I7eb6fc121e2f1e3d81394e3a8620ac5d370d76f2
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/221385
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Youngjin Kim <nkim@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: macallan: update torch level limit
Hunk Lin [Sun, 21 Apr 2013 08:08:35 +0000]
ARM: tegra: macallan: update torch level limit

Macallan use the same camera module as Dalmore, so we need to limit the
torch level to 150mA to resolve the torch level too high issue.

Bug 1242531

Change-Id: I086c49978194954e123345d969ca52fbf38d591e
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/221382
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: dc: Fix for typo when setting cursor image
Vikram Fugro [Mon, 15 Apr 2013 13:22:43 +0000]
ARM: tegra: dc: Fix for typo when setting cursor image

Bitwise AND (&) was mistakenly typed as conditional
AND (&&) resulting the condition to always evaluate
to TRUE, resulting in ERROR. Fixed the typo.

Bug 1219374
Bug 1244900

Signed-off-by: Vikram Fugro <vfugro@nvidia.com>
Change-Id: I107271edfda97d21793afa324d54e7c5164d8853
Reviewed-on: http://git-master/r/219680
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoarm: tegra: properly handle CPU leakage model failure
Diwakar Tundlam [Wed, 6 Mar 2013 21:08:08 +0000]
arm: tegra: properly handle CPU leakage model failure

Actual CPU leakage current is computed is based on IDDQ, temperature
using a set of parameters based on the leakage model. For high IDDQ
values the model breaks down and the computed leakage current returns
a negative value, which is wrong. We revert to default minimum CPU
frequency limits and emit an error message to alert user.

Bug 1251570

Change-Id: Ic51be65061a22659523bd03048e5af35ac3d3ab7
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/206808
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agobcmdhd: Add 300 msec delay during chip power-off
Nitin Bindal [Wed, 10 Apr 2013 12:00:41 +0000]
bcmdhd: Add 300 msec delay during chip power-off

Add 300 msec delay during power-off to complete
leftover commands.

Bug 1267427

Change-Id: Id5a8a514bc64cd4d6717c71afb35e3dc44b14b62
Signed-off-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-on: http://git-master/r/218243
(cherry picked from commit 26fdc55fc2a213002a491866f266d355b047386a)
Reviewed-on: http://git-master/r/219663
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agobcmdhd: use firmware defined ampdu value on driver start
bibhayr [Tue, 9 Apr 2013 06:16:51 +0000]
bcmdhd: use firmware defined ampdu value on driver start

Bug 1258426
Bug 1262099

Change-Id: I48d6139ae7d36970233501ca284952be19be8039
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/217660
(cherry picked from commit 0ab241eaa4a92e96972bdcd4f271c48422d28434)
Reviewed-on: http://git-master/r/222060
Reviewed-by: Nitin Bindal <nbindal@nvidia.com>
Tested-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: introduce manual config table for t11x
Andy Park [Wed, 17 Apr 2013 23:43:16 +0000]
ARM: tegra: introduce manual config table for t11x

To facilitate and keep track of software changes on pinmux table, manual
configuration table is introduced so that the developers are aware of pinmux
settings that are not in sync with the spreadsheet. Any pinmux configuration
changes made in software side should be upstreamed to spreadsheet.

Some refactorings are done to reduce the redundancy and new macros for gpio and
unused pins are introduced as well to be sync'd with the current autogeneration
tool.

Bug 1256207
Bug 1231210

Change-Id: I8887bfb219760e8ec4e8422f8a3ca97615c6f9da
Signed-off-by: Andy Park <andyp@nvidia.com>
Reviewed-on: http://git-master/r/221653
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: remove SDMMC4_RST from pinmux
Andy Park [Wed, 17 Apr 2013 21:53:49 +0000]
ARM: tegra: remove SDMMC4_RST from pinmux

SDMMC4_RST does not exist in T11x. Remove it for consistency.

Bug 1232862

Change-Id: Ic58e22ec0bcd1458ba05598a9230348bf7610834
Signed-off-by: Andy Park <andyp@nvidia.com>
Reviewed-on: http://git-master/r/221651
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Ashwini Ghuge <aghuge@nvidia.com>

6 years agoARM: tegra: macallan: Initialize INA219 in Macallan
Leo He [Sun, 21 Apr 2013 15:44:26 +0000]
ARM: tegra: macallan: Initialize INA219 in Macallan

Initialize all the INA219 devices in Macallan.
It was confirmed that an uninitialized INA219 will cause
the extra power consumption on VS_AUD_SYS rail.

bug 1255056

Change-Id: I7b634737e191e34d85fe5988fb829197c4d81fc5
Signed-off-by: Leo He <leoh@nvidia.com>
Reviewed-on: http://git-master/r/221427
Reviewed-by: Hunk Lin <hulin@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: macallan: Change TMP451 conversion rate for Macallan
Leo He [Tue, 16 Apr 2013 08:26:23 +0000]
ARM: tegra: macallan: Change TMP451 conversion rate for Macallan

Reduce temperature sensor's conversion rate to 4Hz on Macallan.
It was confirmed that it is a sufficiently fast to detect crossing of
key temperature points during worst case temperature change rates.

Bug 1270302

Change-Id: I64db45d1f24971ca63faab154256e18794aec208
Signed-off-by: Leo He <leoh@nvidia.com>
Reviewed-on: http://git-master/r/219729
Reviewed-by: Hunk Lin <hulin@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agomedia: video: tegra: ad5816: settle time not reach
Charlie Huang [Wed, 17 Apr 2013 01:51:23 +0000]
media: video: tegra: ad5816: settle time not reach

In some systems with fast memory configuration, sometimes the settle
time is not satisfied between two set positions, especially the first
two after power on.

Implement the time counter between two set positions to maintain the
proper settle time.

bug 1237579

Change-Id: I046cbb2c9d4f55d475fe30114a58b1e2316f4efe
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/220019
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: dvfs: Simplify rail cooling device validation
Alex Frid [Sun, 21 Apr 2013 01:52:19 +0000]
ARM: tegra: dvfs: Simplify rail cooling device validation

Thermal limits and trip-points tables are validated by platform code,
when bound to the particular rail - skipped double check of matching
numbers during common dvfs rail initialization. Still checking if
there is a cooling device when valid thermal limits are set.

Change-Id: I5b05430c988e20fcee0305e5a91636ac81b9d0ac
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/221372
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: dvfs: Rename rail thermal state index
Alex Frid [Sun, 21 Apr 2013 00:54:23 +0000]
ARM: tegra: dvfs: Rename rail thermal state index

Renamed rail thermal state index from "thermal_idx" to
"therm_floor_idx", since it is used as index to thermal floors array.

Change-Id: Id59850ec483e90d101e10c4de0ffb8b915203dff
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/221356
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegra: dvfs: Rename rail cooling device
Alex Frid [Sun, 21 Apr 2013 00:12:54 +0000]
ARM: tegra: dvfs: Rename rail cooling device

Renamed rail cooling device from "pll_mode_cdev" to "vmin_cdev" to
clearly show association with rail Vmin control.

Change-Id: I9173305824fed13a2c10f7c20f4c1c2ba8186a79
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/221348
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: dvfs: Removed rail dfll mode thermal trips
Alex Frid [Sat, 20 Apr 2013 23:32:50 +0000]
ARM: tegra: dvfs: Removed rail dfll mode thermal trips

Removed separate set of trip-points for rail cooling device in dfll
mode. Used the same set as in pll mode. No need for two sets, and rail
thermal code had required them to be identical, anyway (bailed out
with WARN if requirement was violated).

Change-Id: Icf4b12736794cd5b5fabad8a01186c176689df07
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/221347
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra11: dvfs: Update C2BUS/C3BUs modules tables
Alex Frid [Fri, 19 Apr 2013 20:19:50 +0000]
ARM: tegra11: dvfs: Update C2BUS/C3BUs modules tables

Bug 1161126

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

6 years agoARM: tegra11: dvfs: Update SCPU, SCLK and Host1x tables
Alex Frid [Fri, 19 Apr 2013 07:08:01 +0000]
ARM: tegra11: dvfs: Update SCPU, SCLK and Host1x tables

Bug 1161126

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

6 years agoarm: tegra: macallan: correct GMI pinmux to save power in LP0
tony liu [Thu, 21 Mar 2013 06:26:38 +0000]
arm: tegra: macallan: correct GMI pinmux to save power in LP0

GMI_AD7,GMI_CS1*,GMI_CS2*,GMI_CS7*: disbale PULL_UP in LP0
GMI_CS4*: disable the PULL_UP
GMI_AD12: correct it from input to output pin and remove the PULL_UP
GMI_DQS,GMI_WP: move to unused pin group

Bug 1254955

Change-Id: I45bcd4cd39a35c5a76aca262dbf48b6c19cb3c2c
Signed-off-by: tony liu <tonliu@nvidia.com>
Reviewed-on: http://git-master/r/211527
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: usb: update xcvr values on usb1
Rohith Seelaboyina [Tue, 16 Apr 2013 05:35:17 +0000]
ARM: tegra: usb: update xcvr values on usb1

update xcvr values on usb1 to pass low eye diagram

Bug 1157637

Change-Id: If8fcdcfb5c99ac42d279e813d63779ed3e9f54df
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/219414
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: macallan: enable unaligned_dma_buf_support
Hunk Lin [Sun, 21 Apr 2013 08:46:09 +0000]
ARM: tegra: macallan: enable unaligned_dma_buf_support

enable unalgined_dma_buf_support for boards in which
h/w fix is enabled.

Bug 1235943

Change-Id: I2a2d4964922ad173758f6ad8af0ee79da7dad664
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/221386
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: tegra: tegratab: enable PMIC OTG ID pin detect
Harry Hong [Mon, 22 Apr 2013 02:07:42 +0000]
ARM: tegra: tegratab: enable PMIC OTG ID pin detect

bug 1274508
bug 1256755

Change-Id: Ifaea5667a3f12c507e0e6da1baf1746cf524330e
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/221407
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra114: set always-on and boot-on if externally controlled
Laxman Dewangan [Thu, 18 Apr 2013 06:21:09 +0000]
ARM: tegra114: set always-on and boot-on if externally controlled

Set the power rails to be always ON if it is externally controlled
for boards Pluto, Dalmore. Macalan and Tegratab.

bug 1267800
bug 1267804

Change-Id: Iec57cd013f6811f8a008b475c6dd9eba1cebe4e9
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/218871
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agostaging: iio: cm3217: remove ADC calibration
Sri Krishna chowdary [Fri, 19 Apr 2013 11:05:45 +0000]
staging: iio: cm3217: remove ADC calibration

ALS sensor is expected to give contiguous lux values and
not in steps. Hence, removing indexToValue funciton which
does this.

Bug 1274481

Change-Id: Ib422c32e11dbfe4dc53d2ff15ec99b55b4123b3f
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/221021
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoextcon: max77665: add wakeup support
Laxman Dewangan [Fri, 19 Apr 2013 14:42:50 +0000]
extcon: max77665: add wakeup support

Add wakeup capability on the USB plugin/plugout.
The wakeup functionality can be choose through
sysfs interface.

bug 1272636

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

6 years agoARM: tegra114: wakeup: enable Wake15 and Wake52
Laxman Dewangan [Fri, 19 Apr 2013 14:40:54 +0000]
ARM: tegra114: wakeup: enable Wake15 and Wake52

Add GPIO entry for the wake15 as GPIO_PJ2, wake52 as GPIO_PEE3 and
change the wake_to_irq() table for wake15 to INT_EDP as this is
interrupt for EDP.

bug 1272636

Change-Id: I186b045cc890956ad72e02c88f1b2ce9a608393e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/221069
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoarm: tegra: soctherm: add support for wakeup from suspend
Laxman Dewangan [Fri, 19 Apr 2013 13:46:30 +0000]
arm: tegra: soctherm:  add support for wakeup from suspend

SocTherm have multiple inputs like OC1, OC2 etc and it supports
interrupt to the device through this input line.

Adding the wakeup support for these interrupt supported by the
soctherm.

The wakeup source on wakeup table is initailized through the gpio
of these pins.

bug 1272636

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: If30d74454fd706056043bea7269b5f6357465321
Reviewed-on: http://git-master/r/221068
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoregulator: palmas: set roof floor after registering regulator
Laxman Dewangan [Mon, 15 Apr 2013 11:55:30 +0000]
regulator: palmas: set roof floor after registering regulator

Initailize the roof floor of rails after registering regulators
to make sure the rails are configured properly as per regulator
init data.

bug 1267800
bug 1267804

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

6 years agoregulator: palmas: add support for ext power req
Gaurav Batra [Tue, 2 Apr 2013 18:56:42 +0000]
regulator: palmas: add support for ext power req

Bug 1242520

Change-Id: I0911977291a8fa0eccff3cba0d7fdedafbc91a36
Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/215721
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: tegra: pluto: power: hdmi support for 4K
Gaurav Batra [Tue, 26 Feb 2013 18:47:21 +0000]
arm: tegra: pluto: power: hdmi support for 4K

Changed the supply from ldo1 to ldo4 for hdmi_pll.
Also added the enable / disable functions for hdmi.

Bug 1242520

Change-Id: I599f24a58a12bd7d1c39912622cf60f89f124403
Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/206846
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agoARM: tegra: pluto: put HV IOs into DPD explicitly during LP1
Daniel Solomon [Fri, 12 Apr 2013 18:36:30 +0000]
ARM: tegra: pluto: put HV IOs into DPD explicitly during LP1

Rail VDDIO_HV is consuming higher power than predicted during LP1,
this could be fixed by explicitly putting the pins on that rail
into DPD mode. And by putting the pins into tristate mode, it
saves additional power during LP1.

bug 1248007

Change-Id: I636a307c6a24d4489b4889a068ccd2d00c6665d3
Signed-off-by: Eric Miao <emiao@nvidia.com>
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/213864
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoregmap: irq: enable wake support by default
Laxman Dewangan [Fri, 19 Apr 2013 13:43:16 +0000]
regmap: irq: enable wake support by default

regmap-irq framework is used vastly by mfd drivers and some of
devices like TPS65910, TPS80036 do not support the wake base
register to enable wake.

Currently wake in regmap-irq only supported if client driver
passes the wake base register.

As the regmap-irq is mostly used by mfd devices and it is require
to have wake support from these devices in most of use cases,
enabling wake support by default in regmap-irq.

(Cherrypicked from mainline
55ac85e942c6783e728964861df36fc80e8ced93)

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

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

6 years agoregulator: palmas: do not disable smps10 in suspend if is enabled by client
Mallikarjun Kasoju [Thu, 18 Apr 2013 13:00:38 +0000]
regulator: palmas: do not disable smps10 in suspend if is enabled by client

Do not disable the smps10 in suspend as part of boost suspend if client have
enabled it through regulator call and has not called regulator_disable.

bug 1266948

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

6 years agoCpufreq: create/remove percpu sysfs nodes once
Puneet Saxena [Tue, 23 Oct 2012 08:15:39 +0000]
Cpufreq: create/remove percpu sysfs nodes once

On cpu hotplug on/off, percpu "cpufreq" sysfs node and it's
sub nodes are freshly created and removed. This increases
cpu up/down latency.

Create percpu "cpufreq" sysfs node and it's sub nodes in driver
registration and remove it in unregistration. This decreases
cpu up/down latency significantly.

Bug 1040355

Change-Id: I5c2b02e74de0ae4fe08dedc959bd7402cd9b7aa5
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/146812
(cherry picked from commit 298382285677fa791098d117ccc0a0a3d9ab0f9a)
Reviewed-on: http://git-master/r/219379
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoARM: tegra: dalmore: Fix logical vs bitwise AND bug
Ajay Gupta [Wed, 10 Apr 2013 22:15:49 +0000]
ARM: tegra: dalmore: Fix logical vs bitwise AND bug

Fixes bug be correctly using bitwise '&' AND operation

Change-Id: I3dbc6a5f91cbafbe93203bd84d8b989a419e307e
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/218396
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoaudio: a2220: disable and release clk when probe failed
Eric Miao [Fri, 19 Apr 2013 05:26:28 +0000]
audio: a2220: disable and release clk when probe failed

bug 1271568

Change-Id: I49af42385ffced98b358861850bf88d739cb2dcd
Signed-off-by: Eric Miao <emiao@nvidia.com>
Reviewed-on: http://git-master/r/220895
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vijay Mali <vmali@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agomedia: video: tegra: imx132: Optimize i2c write
Sudhir Vyas [Wed, 10 Apr 2013 07:10:22 +0000]
media: video: tegra: imx132: Optimize i2c write

Add bulk i2c writes.

Bug 1234944

Change-Id: I57fbe31972fc69de2b7b6c4338450b7ade26c597
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/218122
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agousb: xhci: tegra: fix unreliable hs disconnect
Ajay Gupta [Wed, 17 Apr 2013 21:46:44 +0000]
usb: xhci: tegra: fix unreliable hs disconnect

Changes:
- Don't service FW increase/decrease mbox message from fw.

Bug 1250832

Change-Id: Ieaf0784c772c869f11c5701aa92b629e6308d16c
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/220355
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharath Yadav <byadav@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoasoc: tegra: Fix Kernel panic during recording
Vijay Mali [Tue, 16 Apr 2013 06:56:01 +0000]
asoc: tegra: Fix Kernel panic during recording

Add boundary check for DAM ifc and channel id
if all functions where these are used.
During camcoder recording DAM functions are called with
negative ifc, causing kernel panic.

Change-Id: Idd4df5eae579f9a89222361d594a79ddcdfc1fe5
Signed-off-by: Vijay Mali <vmali@nvidia.com>
Reviewed-on: http://git-master/r/219692
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agovideo: tegra: host: fix 3d.emc calculation
Ilan Aelion [Mon, 15 Apr 2013 23:02:39 +0000]
video: tegra: host: fix 3d.emc calculation

Bug 1268909

Change-Id: I04f5ae2b4b6138bbca0306b0f76c0b763c018b74
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/219565
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agoarm: tegra: MT9M114 tegratab board specific code
kkim [Tue, 9 Apr 2013 06:23:21 +0000]
arm: tegra: MT9M114 tegratab board specific code

Bug 1255019

Change-Id: Ie4ee64557d4619d8e2d5b796d03b962a074d1f0d
Signed-off-by: kkim <kkim@nvidia.com>
Reviewed-on: http://git-master/r/217663
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agovideo: tegra: dc: updated tegra_hdmi_audio_config table
Emma Yan [Thu, 21 Mar 2013 11:28:42 +0000]
video: tegra: dc: updated tegra_hdmi_audio_config table

Added 241500000 pclk entry for 1440p (2560x1440) HDMI support

Bug 1254995

Change-Id: If68cee3eed532ef06d23e6a967836fde161c3e58
Signed-off-by: Emma Yan <eyan@nvidia.com>
Reviewed-on: http://git-master/r/211936
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoxhci: Don't warn on empty ring for suspended devices.
Sarah Sharp [Mon, 18 Mar 2013 17:19:51 +0000]
xhci: Don't warn on empty ring for suspended devices.

When a device attached to the roothub is suspended, the endpoint rings
are stopped.  The host may generate a completion event with the
completion code set to 'Stopped' or 'Stopped Invalid' when the ring is
halted.  The current xHCI code prints a warning in that case, which can
be really annoying if the USB device is coming into and out of suspend.

Remove the unnecessary warning.

Change-Id: I8b41df8f3aeb256338c701451bc140979a1edc31
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Tested-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-on: http://git-master/r/220360
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>

6 years agousb: xhci: Fix TRB transfer length macro used for Event TRB.
Vivek Gautam [Thu, 21 Mar 2013 06:36:48 +0000]
usb: xhci: Fix TRB transfer length macro used for Event TRB.

Use proper macro while extracting TRB transfer length from
Transfer event TRBs. Adding a macro EVENT_TRB_LEN (bits 0:23)
for the same, and use it instead of TRB_LEN (bits 0:16) in
case of event TRBs.

This patch should be backported to kernels as old as 2.6.31, that
contain the commit b10de142119a676552df3f0d2e3a9d647036c26a "USB: xhci:
Bulk transfer support".  This patch will have issues applying to older
kernels.

Change-Id: Ia142db5d9313c71e56b19761379c343703fbc97b
Signed-off-by: Vivek gautam <gautam.vivek@samsung.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable@vger.kernel.org
Reviewed-on: http://git-master/r/220359
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>