6 years agoARM: tegra: use irq name XUSB instead of USB3
Ajay Gupta [Tue, 29 Jan 2013 01:16:51 +0000]
ARM: tegra: use irq name XUSB instead of USB3

This is to avoid confusion between EHCI and XUSB as
USB3 implies ehci host controller #3

BUG 1057074

Change-Id: I6fd6dbdf8bc41e7892cad719e3d9f02d193a70e5
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/196146
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoasoc: tegra: aic326x: Fix build break and cleanup
Vijay Mali [Thu, 31 Jan 2013 10:32:15 +0000]
asoc: tegra: aic326x: Fix build break and cleanup

Fix build break for cardhu where DAM coefficient
programming is not supported. Add appropriate check for
compilation.
Cleanup - remove DAM shutdown sequence

Bug 1179798

Change-Id: Ia12dcbd1eb45b27d18ae2a2acb6d5554256cc7f9
Signed-off-by: Vijay Mali <vmali@nvidia.com>
Reviewed-on: http://git-master/r/195949
Reviewed-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Scott Peterson <speterson@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agocrypto: tegra-se: Use proper rsa key slot
venkatajagadish [Thu, 31 Jan 2013 08:50:06 +0000]
crypto: tegra-se: Use proper rsa key slot

This change fixes the S.E time out errors while
executing RSA test

Bug 1218410

Change-Id: Icbbcdd7b3d86a259dc3ff19ebb4b3a7374135e47
Signed-off-by: venkatajagadish <vjagadish@nvidia.com>
Reviewed-on: http://git-master/r/195912
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shravani D <shravanid@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoarm: tegra: Turn on hw phase in for PRISM
Mitch Luban [Wed, 30 Jan 2013 23:09:31 +0000]
arm: tegra: Turn on hw phase in for PRISM

HW phase in is needed for extreme cases where flicker is
observed.

Bug 1224366

Change-Id: I84ceb5d465d7349e59c0dca3cb288f32d7d44f36
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/195722
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoARM: tegra11: clock: Add direct access to CPU DFLL
Alex Frid [Wed, 30 Jan 2013 01:04:19 +0000]
ARM: tegra11: clock: Add direct access to CPU DFLL

Added CPU DFLL access API for CPU idle driver to directly manipulate
DFLL rate underneath cpufreq governor, provided CPU rail is under DFLL
control.

Change-Id: I108cbffe530e8620513fb11e89707b003cb34b9d
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/195399
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra_fuse: Add chip revision A02 for T114
Hoang Pham [Thu, 31 Jan 2013 19:56:58 +0000]
ARM: tegra_fuse: Add chip revision A02 for T114

Change-Id: I18ecaa707a96aa36b1e5e833b904c028c195162c
Signed-off-by: Hoang Pham <hopham@nvidia.com>
Reviewed-on: http://git-master/r/196116
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: mm: Remove unnecessary CMO in Cortex A15 startup
Bo Yan [Wed, 12 Dec 2012 19:18:35 +0000]
ARM: mm: Remove unnecessary CMO in Cortex A15 startup

Cortex-A15 flush L2 cache after reset, there is no need to do this
in software, if L2 is already invalidated in bootloader and
cache is disabled. For secondary startup, there is no reason to
flush L2 as well.

This change assumes the setup code is always entered as the result
of CPU reset.

Change-Id: I6d58f8b4a638b70acfb35b97c87a09266aceef41
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/170563
(cherry picked from commit 26e7a8ea22abe09852fa1ce36b6cec8dc8fc5978)
Reviewed-on: http://git-master/r/196044
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>

6 years agomedia: video: tegra: update imx091 set mode print
Wei Chen [Wed, 30 Jan 2013 18:27:37 +0000]
media: video: tegra: update imx091 set mode print

enable imx091 set mode info print to help debugging

bug 1219966

Change-Id: Idc93dffef935560751f0a847e88d2f57683ababf
Signed-off-by: Wei Chen <wechen@nvidia.com>
Reviewed-on: http://git-master/r/195618
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Joshua Widen <jwiden@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agomisc: nct1008: Apply hysteresis to only PASSIVE trip_points
Diwakar Tundlam [Thu, 31 Jan 2013 23:37:44 +0000]
misc: nct1008: Apply hysteresis to only PASSIVE trip_points

Applying hysteresis to ACTIVE trip point messes up EDP limiting.

Bug 1200202

Change-Id: Id723f2c2d094d7e1e72cee208b54afed64175c2a
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/196193
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agousb: xhci: WAR fix for xhci_bus_suspend failed -16
joyw [Thu, 31 Jan 2013 11:17:33 +0000]
usb: xhci: WAR fix for xhci_bus_suspend failed -16

Add delay after programming host controller port status register.

Change-Id: Ic023653879de43f30f2cd4366d1944d0c14089fc
Signed-off-by: joyw <joyw@nvidia.com>
Reviewed-on: http://git-master/r/196188
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>

6 years agousb: xhci: WAR fix panic in xhci_free_dev
joyw [Thu, 31 Jan 2013 10:51:25 +0000]
usb: xhci: WAR fix panic in xhci_free_dev

Avoid kernel panic in xhci_free_dev function.
Add WRAN_ON to get noticed when issue reproduced.

Change-Id: I493166c0032526bfa190a7dc2abb5156309eedd3
Signed-off-by: joyw <joyw@nvidia.com>
Reviewed-on: http://git-master/r/196187
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>

6 years agousb: core: WAR fix panic in usb_match_one_id
joyw [Thu, 31 Jan 2013 10:00:10 +0000]
usb: core: WAR fix panic in usb_match_one_id

Fixed kernel panic when LP0 wake by HS device
connected behind FS hub cum keyboard (Kensington).
Add WARN_ON to notice when reproduce again.

Change-Id: I92a774dffb8266a4a948dd7eae2e386700638291
Signed-off-by: joyw <joyw@nvidia.com>
Reviewed-on: http://git-master/r/196186
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>

6 years agoarm: tegra: soctherm: Adjust trip_temp for hysteresis
Diwakar Tundlam [Thu, 31 Jan 2013 23:12:58 +0000]
arm: tegra: soctherm: Adjust trip_temp for hysteresis

Apply hysteresis to PASSIVE trip points to avoid deadlock when thermal
governor stops polling but temp is above sensor lower temperature
threshold. Governor deadlock leads to a dangerous unthrottled runaway
rise in temperature.

Bug 1200202
Bug 1200077

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

6 years agousb: xhci: tegra: don't disable wakeup event for unused ports
Ajay Gupta [Thu, 31 Jan 2013 03:26:06 +0000]
usb: xhci: tegra: don't disable wakeup event for unused ports

We had seen ELPG loop issue if wakeup event for unused ports are not
disabled. This seems to be due to some programming in USB2 driver which
has been fixed now so there is no need to disable wakeup event for unused
ports.

BUG 1177456

Change-Id: I6bce86cffed826ae5ea294da44334d8afdf7fd0e

Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Change-Id: I5c230adc7f729a34c096ab2d9fc463a45d0e1720
Reviewed-on: http://git-master/r/196148
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agousb: xhci: tegra: enable regulator first before clock
Ajay Gupta [Tue, 29 Jan 2013 19:23:06 +0000]
usb: xhci: tegra: enable regulator first before clock

This fixes below errro message seen during xusb initialization

"Lock bit on pll pll_e always timeouts "

BUG 1199726

Change-Id: I26e3d70784a9109d63ff70e1b43ebfb35145e9d0
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-on: http://git-master/r/195636
Reviewed-on: http://git-master/r/196147
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoxhci: tegra: WAR for utmipll in IDDQ mode
JC Kuo [Wed, 30 Jan 2013 13:10:28 +0000]
xhci: tegra: WAR for utmipll in IDDQ mode

At resume path, clock driver (tegra11_pll_clk_init()) put utmipll in
IDDQ mode, USB 3.0 needs utmipll being carried out of IDDQ mode for
proper UTMI operation.

Bug 1220999

Change-Id: I18cfe3eed96d2dd850c9f99459f99f5d8a680449
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/196031
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoxhci: tegra: WAR for utmi bias pd bit
JC Kuo [Wed, 30 Jan 2013 07:12:10 +0000]
xhci: tegra: WAR for utmi bias pd bit

This is a workaround for utmi bias pad power down bit setting.
BIAS_PD bit of UTMIP_BIAS_CFG0 register has to be cleared if xusb
owns any of the utmi ports.

Bug 1167876

Change-Id: I0cfae12c516ec7bb10b3e13a8dc7c526c2294551
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/196024
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-by: Henry Lin <henryl@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoarm: tegra: soctherm: mark some variables const as necessary
Diwakar Tundlam [Thu, 31 Jan 2013 08:34:00 +0000]
arm: tegra: soctherm: mark some variables const as necessary

Bug 1200077

Change-Id: Icf44e111230d5ddf861943ec19a8d9e77ed86efe
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/195907
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoarm: tegra: soctherm: round down trip temps to sensor precision
Diwakar Tundlam [Thu, 31 Jan 2013 08:12:57 +0000]
arm: tegra: soctherm: round down trip temps to sensor precision

Emit a warning whenever forced rounding down is done during init and
when setting trip_temp via sysfs.

Bug 1200077

Change-Id: I4ded4df19adb4192d51ab3ea6872ae0c052589af
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/195898
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra11: clock: Don't propagate boot clock clean up
Alex Frid [Thu, 31 Jan 2013 05:27:50 +0000]
ARM: tegra11: clock: Don't propagate boot clock clean up

When disabling coupled gate clocks left on by boot-loader, but not
ref-counted during kernel initialization, do not propagate disable
operation to coupled parents.

Bug 1226948

Change-Id: I4b4e56138f46d08dd70be2ba3781c5845098bf22
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/195843
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoaudio: Implement tfa driver shutdown.
Vinod Subbarayalu [Thu, 31 Jan 2013 00:48:16 +0000]
audio: Implement tfa driver shutdown.

Change-Id: I3519880bf003e2bb194b15b4b5d44361c49f6233
Signed-off-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com>
Reviewed-on: http://git-master/r/195754
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agoARM: tegra: xusb: add more resources to xusb
JC Kuo [Fri, 14 Dec 2012 22:33:57 +0000]
ARM: tegra: xusb: add more resources to xusb

Added below required resources for xusb:
- TEGRA_XUSB_PADCTL_BASE
- TEGRA_XUSB_FPCI_BASE
- TEGRA_XUSB_IPFS_BASE

Also added names to other existing resources

Change-Id: Ida1691ef312c453991a327786bd91d40d141099f
Signed-off-by: Bharath Yadav <byadav@nvidia.com>
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Signed-off-by: Henry Lin <henryl@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190496
(cherry picked from commit fb6b48f30c17e9717b3e9aa06abef0cc7fa98865)
Reviewed-on: http://git-master/r/194677
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoarm: tegra: macallan: create board file
Kerwin Wan [Mon, 14 Jan 2013 07:39:19 +0000]
arm: tegra: macallan: create board file

Create initial board files and config files for Macallan.

Bug 1216782

Change-Id: I5ccf8f79a1c29659fc518277da1a96531f48c5ba
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Signed-off-by: Hayden Du <haydend@nvidia.com>
Signed-off-by: hyongbink <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/193645
Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com>

6 years agomedia: tegra: as3648: modify shutdown functionality
Sri Krishna chowdary [Tue, 22 Jan 2013 09:01:29 +0000]
media: tegra: as3648: modify shutdown functionality

Shutdown functionality needs that it should wait for
any pending i2c transations and there should be no i2c transaction
after the function returns.

To turn off led, power off regulator instead of trying to write
into device registers.

Bug 1175095

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

6 years agoARM: tegra: pluto: register i2c for NFC
Rakesh Goyal [Thu, 31 Jan 2013 13:57:51 +0000]
ARM: tegra: pluto: register i2c for NFC

Bug 1227903

Change-Id: I856b6e298d7451404f676f30ab8f2dea65f23c0f
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/196011
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agopower: bq2419x: acquire mutex lock
Kunal Agrawal [Thu, 31 Jan 2013 03:47:41 +0000]
power: bq2419x: acquire mutex lock

add changes to acquire mutex lock at the start of the function.

Bug 1225027

Signed-off-by: Kunal Agrawal <kunala@nvidia.com>
Change-Id: I2a7b9cb243fa45590039be635d85f4245823baed
Reviewed-on: http://git-master/r/195821
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoInput: xpad - add ftrace logging
Vikas Jain [Wed, 30 Jan 2013 10:23:29 +0000]
Input: xpad - add ftrace logging

This will help to profile the xpad responsiveness and
overall latency in the system.

Bug 1226968

Change-Id: I20205a4a89beb4ae0d1c888eaf1e1b874e1a9772
Signed-off-by: Vikas Jain <vjain@nvidia.com>
Reviewed-on: http://git-master/r/195507
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra11: clock: Update direct access to CPU backup source
Alex Frid [Tue, 29 Jan 2013 20:49:42 +0000]
ARM: tegra11: clock: Update direct access to CPU backup source

Minimized locking calls in CPU backup source direct access API.

Change-Id: I483537ce55e360259d2fbfbf85b705b53fe42e55
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/195398
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: Tegra: Pluto: Update emc dvfs table
Graziano Misuraca [Tue, 29 Jan 2013 22:00:31 +0000]
ARM: Tegra: Pluto: Update emc dvfs table

Update emc dvfs table for AP40 SKU for
792/624/408/312/204/102/68/40.8/20.4/12.75
MHz support.

Bug 1189313

Change-Id: Ie59f9672faed60f00991a2453f2484ae91d8b728
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/195235
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra11x: set cpu_lp2_min_residency to 1000
Richard Zhao [Mon, 21 Jan 2013 01:51:41 +0000]
ARM: tegra11x: set cpu_lp2_min_residency to 1000

cpu_lp2_min_residency set the minimal cpuidle lp2 target residency. It
can tune chances entering to lp2.

It fixes bug that lp2 consumes more power when video playback. If
cpu_lp2_min_residency is zero, it causes higher G cpu residency and
more cluster switch.

Bug 1216668

Change-Id: I7246dda75fea488b75d8f4a0a8446e2efe3b55e0
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: http://git-master/r/192702
(cherry picked from commit 12054d76a810f419d8f9cf477c76a1b38fe13e5c)
Reviewed-on: http://git-master/r/193634
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: Tegra: Dalmore: Add T40S memtype emc table
Graziano Misuraca [Thu, 24 Jan 2013 01:10:42 +0000]
ARM: Tegra: Dalmore: Add T40S memtype emc table

Add a table for 1600MHz memory and check the
memtype commandline argument to determine which
to select.

Update 1866 T40S table to include 528MHz

Bug 1189313

Change-Id: I56dc8f772f7b94a1f6e1a20fd7acb7bbde02151c
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/193562
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: Tegra: Roth: Disable Touch
Matt Wagner [Thu, 31 Jan 2013 19:36:55 +0000]
ARM: Tegra: Roth: Disable Touch

Remove touch initialization

Bug 1227415

Change-Id: I6dc285e925bd629baf4171f9dbd29b881dcd710e
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/196106
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: tegra: Move all tj dependent thermals from nct to soc_therm
Diwakar Tundlam [Wed, 30 Jan 2013 00:44:32 +0000]
arm: tegra: Move all tj dependent thermals from nct to soc_therm

Functions moved are vdd_cpu, core edp. Raised shutdown limit for nct.
Added two higher temps for cpu_edp to support higher soc_therm temps.

Doing this only for Dalmore and Pluto. No real changes to Roth.

Bug 1200075

Change-Id: I2b4ac4ba7cd933bd47c30ab2ad9eabb3a3da5fbe
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/195331
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: Tegra: Dalmore: Add E1613 EMC DVFS table
Graziano Misuraca [Tue, 29 Jan 2013 19:20:20 +0000]
ARM: Tegra: Dalmore: Add E1613 EMC DVFS table

Bug 1179719

Change-Id: I2a26e9897d424b857e5e08ee379349c90cd4915b
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/195180
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agousb: xhci: fix Short Packet handling for isochronous
JC Kuo [Thu, 6 Dec 2012 12:16:19 +0000]
usb: xhci: fix Short Packet handling for isochronous

When Short Packet happens on a multiple-TRBs TD, xHCD needs to
calculate the exact amount of transferred data because upper layer
driver wants it. In order to achieve, xHCD has to:
1. set ISP bit for all TRBs belongs to a IN TD, and
2. set IOC bit for the last TRB of the IN TD.

Once HC detects a Short Transfer, HC will send Short Packet event for
the TRB which encountered Short Packet and also send Short Packet event
fot the last TRB which has IOC bit set.

With those two events, xHCD can calculate the exact amount of bytes which
xHC has completed for the TD. (4.10.1.1)

Bug 1158352

Change-Id: I38f04825ddc3e12f124e12a9abf05a36beb43886
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/192883
(cherry picked from commit 860031e312ecd6c5b384775ae31b7729d19b82a3)

Signed-off-by: JC Kuo <jckuo@nvidia.com>
Change-Id: I9d41f4c8f4d029b1032c74fbe080ac4a9bdaa8bc
Reviewed-on: http://git-master/r/194698
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharath Yadav <byadav@nvidia.com>
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agousb: xhci: tegra: add delay after PMC_USB_AO_0 program
Ajay Gupta [Wed, 16 Jan 2013 22:23:56 +0000]
usb: xhci: tegra: add delay after PMC_USB_AO_0 program

We have seen LP0 loop when system wake done using FS device connect.
Discussed with hardware team and USB2 team and this delay is needed
for D+/D- value detectors to become stable

BUG 1221008

Change-Id: If755c69013e1124b7edf22eff10f46ee054fe6c1

Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Change-Id: I5b12a2930c718b00c69015386ef8662a7a6fe109
Reviewed-on: http://git-master/r/192890
(cherry picked from commit 5d9506e2348887a689575ab3135b1d7d19581830)

Signed-off-by: JC Kuo <jckuo@nvidia.com>
Change-Id: Ib37733cc0b0f393fa5e04beefff3200c2e6fec91
Reviewed-on: http://git-master/r/194697
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoxhci: fix null-pointer dereference when destroying half-built segment rings
Julius Werner [Thu, 1 Nov 2012 19:47:59 +0000]
xhci: fix null-pointer dereference when destroying half-built segment rings

xhci_alloc_segments_for_ring() builds a list of xhci_segments and links
the tail to head at the end (forming a ring). When it bails out for OOM
reasons half-way through, it tries to destroy its half-built list with
xhci_free_segments_for_ring(), even though it is not a ring yet. This
causes a null-pointer dereference upon hitting the last element.

Furthermore, one of its callers (xhci_ring_alloc()) mistakenly believes
the output parameters to be valid upon this kind of OOM failure, and
calls xhci_ring_free() on them. Since the (incomplete) list/ring should
already be destroyed in that case, this would lead to a use after free.

This patch fixes those issues by having xhci_alloc_segments_for_ring()
destroy its half-built, non-circular list manually and destroying the
invalid struct xhci_ring in xhci_ring_alloc() with a plain kfree().

This patch should be backported to kernels as old as 2.6.31, that
contains the commit 0ebbab37422315a5d0cb29792271085bafdf38c0 "USB: xhci:
Ring allocation and initialization."

A separate patch will need to be developed for kernels older than 3.4,
since the ring allocation code was refactored in that kernel.

Change-Id: I4d2a860f8d4773bedc76b7c1fc1bb42b7322dbcf
Signed-off-by: Julius Werner <jwerner@chromium.org>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/192889
(cherry picked from commit 98033448c22e3605fe38b4ea254c79da6da964e4)

Signed-off-by: JC Kuo <jckuo@nvidia.com>
Change-Id: I3e2a95488577c98188bf931bda85840c4e9d1098
Reviewed-on: http://git-master/r/194695
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoxHCI: handle command after aborting the command ring
Elric Fu [Wed, 27 Jun 2012 08:55:43 +0000]
xHCI: handle command after aborting the command ring

According to xHCI spec section 4.6.1.1 and section 4.6.1.2,
after aborting a command on the command ring, xHC will
generate a command completion event with its completion
code set to Command Ring Stopped at least. If a command is
currently executing at the time of aborting a command, xHC
also generate a command completion event with its completion
code set to Command Abort. When the command ring is stopped,
software may remove, add, or rearrage Command Descriptors.

To cancel a command, software will initialize a command
descriptor for the cancel command, and add it into a
cancel_cmd_list of xhci. When the command ring is stopped,
software will find the command trbs described by command
descriptors in cancel_cmd_list and modify it to No Op
command. If software can't find the matched trbs, we can
think it had been finished.

This patch should be backported to kernels as old as 3.0, that contain
the commit 7ed603ecf8b68ab81f4c83097d3063d43ec73bb8 "xhci: Add an
assertion to check for virt_dev=0 bug." That commit papers over a NULL
pointer dereference, and this patch fixes the underlying issue that
caused the NULL pointer dereference.

Change-Id: Iacd87c59b7ec4a89a36ecb9e741b6a05c9b2939d
Signed-off-by: Elric Fu <elricfu1@gmail.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Tested-by: Miroslav Sabljic <miroslav.sabljic@avl.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/192888
(cherry picked from commit e848acee24ce2530d14730a2d819ca5f92149cbf)

Signed-off-by: JC Kuo <jckuo@nvidia.com>
Change-Id: I67d9ad035ab18dd47c281d460374064c73384d56
Reviewed-on: http://git-master/r/194694
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoxHCI: cancel command after command timeout
Elric Fu [Wed, 27 Jun 2012 08:31:52 +0000]
xHCI: cancel command after command timeout

The patch is used to cancel command when the command isn't
acknowledged and a timeout occurs.

This patch should be backported to kernels as old as 3.0, that contain
the commit 7ed603ecf8b68ab81f4c83097d3063d43ec73bb8 "xhci: Add an
assertion to check for virt_dev=0 bug." That commit papers over a NULL
pointer dereference, and this patch fixes the underlying issue that
caused the NULL pointer dereference.

Change-Id: If0818ee9da17afedd4e4326baf72418b609c84dc
Signed-off-by: Elric Fu <elricfu1@gmail.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Tested-by: Miroslav Sabljic <miroslav.sabljic@avl.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/192887
(cherry picked from commit 22f80927cc0abc9a39c2752740b3403e0721f41d)

Signed-off-by: JC Kuo <jckuo@nvidia.com>
Change-Id: Ic9089487bce520e92745c521beca9d1dacc50b44
Reviewed-on: http://git-master/r/194693
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoxHCI: add aborting command ring function
Elric Fu [Wed, 27 Jun 2012 08:31:12 +0000]
xHCI: add aborting command ring function

Software have to abort command ring and cancel command
when a command is failed or hang. Otherwise, the command
ring will hang up and can't handle the others. An example
of a command that may hang is the Address Device Command,
because waiting for a SET_ADDRESS request to be acknowledged
by a USB device is outside of the xHC's ability to control.

To cancel a command, software will initialize a command
descriptor for the cancel command, and add it into a
cancel_cmd_list of xhci.

Sarah: Fixed missing newline on "Have the command ring been stopped?"
debugging statement.

This patch should be backported to kernels as old as 3.0, that contain
the commit 7ed603ecf8b68ab81f4c83097d3063d43ec73bb8 "xhci: Add an
assertion to check for virt_dev=0 bug." That commit papers over a NULL
pointer dereference, and this patch fixes the underlying issue that
caused the NULL pointer dereference.

Change-Id: I6d008c9e56b8612393f1952473b3a50fe88b8c0a
Signed-off-by: Elric Fu <elricfu1@gmail.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Tested-by: Miroslav Sabljic <miroslav.sabljic@avl.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/192886
(cherry picked from commit 16c9b4cf3e6669864671ef0410e4796ef1796581)

Signed-off-by: JC Kuo <jckuo@nvidia.com>
Change-Id: I84965ed882f049a497a9586fdbfa37b72f69b404
Reviewed-on: http://git-master/r/194692
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoxHCI: add cmd_ring_state
Elric Fu [Wed, 27 Jun 2012 08:30:57 +0000]
xHCI: add cmd_ring_state

Adding cmd_ring_state for command ring. It helps to verify
the current command ring state for controlling the command
ring operations.

This patch should be backported to kernels as old as 3.0.  The commit
7ed603ecf8b68ab81f4c83097d3063d43ec73bb8 "xhci: Add an assertion to
check for virt_dev=0 bug." papers over the NULL pointer dereference that
I now believe is related to a timed out Set Address command.  This (and
the four patches that follow it) contain the real fix that also allows
VIA USB 3.0 hubs to consistently re-enumerate during the plug/unplug
stress tests.

Change-Id: I50976948d2d81a73d7019b20139e93d1a84e38e5
Signed-off-by: Elric Fu <elricfu1@gmail.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Tested-by: Miroslav Sabljic <miroslav.sabljic@avl.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/192885
(cherry picked from commit e3a84306998accbf075697d88792cd6c1eabe435)

Signed-off-by: JC Kuo <jckuo@nvidia.com>
Change-Id: I8f5b60cfa1d78d5c8f6790027cd2b1847b3fa699
Reviewed-on: http://git-master/r/194690
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoxhci: Fix a logical vs bitwise AND bug
Dan Carpenter [Mon, 13 Aug 2012 16:57:03 +0000]
xhci: Fix a logical vs bitwise AND bug

The intent was to test whether the flag was set.

This patch should be backported to stable kernels as old as 3.0, since
it fixes a bug in commit e95829f474f0db3a4d940cae1423783edd966027 "xhci:
Switch PPT ports to EHCI on shutdown.", which was marked for stable.

Change-Id: I084865f97fdc38d8966b49c92eafe51d7cc660a6
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190499
(cherry picked from commit e54abee5308040fabddedae314626a5bd2f1da08)

Signed-off-by: JC Kuo <jckuo@nvidia.com>
Change-Id: I589666284acb505742cae7bf5d7f5ccb32252146
Reviewed-on: http://git-master/r/194689
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoARM: tegra: defconfig: adding XUSB support.
Ajay Gupta [Wed, 3 Oct 2012 01:52:08 +0000]
ARM: tegra: defconfig: adding XUSB support.

Enabled xhci and tegra xusb as builtin driver.

Change-Id: Iad38f0f9719725408bbe7cb60a5c204181543a5b
Signed-off-by: Bharath Yadav <byadav@nvidia.com>
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190500
(cherry picked from commit 606b9dcc7a269b84bfcb550415e554c42f1286b6)

Signed-off-by: JC Kuo <jckuo@nvidia.com>
Change-Id: I3c527b57fb2b3d566772fe357bfcba4ecd19667c
Reviewed-on: http://git-master/r/194688
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra: pluto: updating regulators sources for xusb
Sri Krishna chowdary [Fri, 26 Oct 2012 13:51:28 +0000]
ARM: tegra: pluto: updating regulators sources for xusb

1. Registering XUSB driver as consumer for regulator
   sources on Pluto board.

2. Updating pad parameters for XUSB ports.

Bug 1055592

Change-Id: Ibba14828cd6b85f71299f886b44a49c1c521f6f9
Signed-off-by: Bharath Yadav <byadav@nvidia.com>
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190492
(cherry picked from commit 9c24a15d241251904daa032180550d750edd0c8e)

Signed-off-by: JC Kuo <jckuo@nvidia.com>
Change-Id: I06558edc18cd6f53fd54b4dd1063944ab2b42fac
Reviewed-on: http://git-master/r/194687
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra: dalmore: updating regulators sources for xusb
Sri Krishna chowdary [Fri, 26 Oct 2012 10:28:12 +0000]
ARM: tegra: dalmore: updating regulators sources for xusb

1. Registering XUSB driver as consumer for regulator
   sources on Dalmore board.

2. Updating pad parameters for XUSB ports.

Bug 1055592

Change-Id: I73c62fa7d9c23a7f7ca93aca63087db10d51cbb1
Signed-off-by: Bharath Yadav <byadav@nvidia.com>
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190493
(cherry picked from commit 662fc409e827b0334f4eb9174e171ab64b0e7b16)

Conflicts:

arch/arm/mach-tegra/fuse.h

Signed-off-by: JC Kuo <jckuo@nvidia.com>
Change-Id: I9c56bc26bd76330580ee61b908963bd812b73e5f
Reviewed-on: http://git-master/r/194682
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoarm: tegra: roth: support higher frequency HDMI
Rakesh Iyer [Thu, 24 Jan 2013 23:33:22 +0000]
arm: tegra: roth: support higher frequency HDMI

Support up to 4K HDMI on this board.

Bug 1167856
Bug 1185882

Change-Id: Ia0d784480be4f7f81db993b7cb874f533811def5
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/193963
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoarm: tegra: pluto: support higher frequency HDMI
Rakesh Iyer [Thu, 24 Jan 2013 23:26:34 +0000]
arm: tegra: pluto: support higher frequency HDMI

Support up to 4K HDMI on this board.

Bug 1167856
Bug 1185882

Change-Id: Idf097e9c2f75293f43c171a5a0b242c3f0c37c66
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/193962
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoRevert "mmc: tegra: Enable ACMD12 support"
Naveen Kumar Arepalli [Tue, 22 Jan 2013 04:04:39 +0000]
Revert "mmc: tegra: Enable ACMD12 support"

This reverts commit 69d0daebd926623453c5753c0a5a979811afecab.

Bug 1216065
Bug 1219868

Change-Id: Ia4a2d9c73b05590e120246aa78c7443ee1b67ad0
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/192924
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agommc: tegra: Tuning algorithm for high frequencies
Pavan Kunapuli [Tue, 29 Jan 2013 09:18:01 +0000]
mmc: tegra: Tuning algorithm for high frequencies

Tuning and tap value calculation algorithm for high
frequencies(> 82MHz).

Bug 1167519

Change-Id: Iab3b95a573a4c0636ea89522ec51243375469fd5
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/194797
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agousb: xhci: tegra: adding NVIDIA USB3.0 controller driver
Bharath Yadav [Sat, 6 Oct 2012 01:00:42 +0000]
usb: xhci: tegra: adding NVIDIA USB3.0 controller driver

Added xhci-tegra.c to support NVIDIA's XUSB host controller.

Bug 1055592

Change-Id: Iccbd0b63fc95cb31565bdb2008bd1b79372335aa
Signed-off-by: Bharath Yadav <byadav@nvidia.com>
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Signed-off-by: Henry Lin <henryl@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190498
(cherry picked from commit 06424eb08d7f86da3f15206c5adcdd950a764513)

Signed-off-by: JC Kuo <jckuo@nvidia.com>
Change-Id: Ie51a63bd87edeca74bca3198bec4537fa316ee37
Reviewed-on: http://git-master/r/194680
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharath Yadav <byadav@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoinput: touch: raydium: fix panic when touch panel not attached
Xiaohui Tao [Tue, 29 Jan 2013 23:02:01 +0000]
input: touch: raydium: fix panic when touch panel not attached

This issue is because the upper hal level is calling the driver
to suspend even when the driver is not installed. Cleanup the
resources when the driver fails to install.

Bug 1207093

Change-Id: I732a9748a5a3f9e084a29fe111da2b7563455a79
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/191411
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>

6 years agovideo: tegra: dsi2edp: add 25x16 panel support
Ken Chang [Mon, 7 Jan 2013 09:48:23 +0000]
video: tegra: dsi2edp: add 25x16 panel support

Configure 770 for 25x16 2x4 dsi input.

DSI settings:
 - DSI0/1 clock rate: 402.5MHz
 - TLPX: 80ns
 - THS-PREPARE: 50ns
 - THS-ZERO: 155ns

770 settins:
 - VSDelay: 650

Bug 1041269

Change-Id: I3db7f906ee84c8eddc35494d9d093e14af729ac9
Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: http://git-master/r/189122
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agopower: bq2419x: add shutdown functionality
Kunal Agrawal [Tue, 29 Jan 2013 09:14:19 +0000]
power: bq2419x: add shutdown functionality

Bug 1225027

Change-Id: I58f9ec45f105d58838312d644ed006d231923fef
Signed-off-by: Kunal Agrawal <kunala@nvidia.com>
Reviewed-on: http://git-master/r/195044
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoregulator: bq24192: add shutdown functionality
Kunal Agrawal [Tue, 29 Jan 2013 09:23:11 +0000]
regulator: bq24192: add shutdown functionality

Bug 1225027

Change-Id: I33eca8e87bc01ac4a3392e8ede362d47900de98d
Signed-off-by: Kunal Agrawal <kunala@nvidia.com>
Reviewed-on: http://git-master/r/195047
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoregulator: tps51632: add support for shutdown functionality
Kunal Agrawal [Wed, 30 Jan 2013 04:22:53 +0000]
regulator: tps51632: add support for shutdown functionality

Bug 1225025

Change-Id: I8bd9c00d088ad9f0a1660df5bb77876f65bc3113
Signed-off-by: Kunal Agrawal <kunala@nvidia.com>
Reviewed-on: http://git-master/r/195393
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoi2c: tegra: Return -EAGAIN in case of ARB Lost
Chaitanya Bandi [Wed, 30 Jan 2013 04:39:14 +0000]
i2c: tegra: Return -EAGAIN in case of ARB Lost

In case of ARB lost, return -EAGAIN so that the
communication is retried.

Bug 1222180

Change-Id: I003e02732568e08fabf6fe15f687e6ae73169f66
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/195401
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agotimekeeping: Fix time moving backwards
Ajay Nandakumar [Tue, 29 Jan 2013 11:46:47 +0000]
timekeeping: Fix time moving backwards

Changed the calculation logic that sometimes calculates
the time wrong.

Sometimes there is an overflow when the tv_nsec field in
the timespec structure is being added since it is 32-bit.

To resolve this issue nsec variable is being added first
so that the addition is performed in 64 bit signed format.

Bug 1217429

Change-Id: I9c65da88f02596ba73c47be6342ed909e650db22
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/195092
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Shridhar Rasal <srasal@nvidia.com>

6 years agoARM: Tegra: Dalmore: Add wakeup callback
Graziano Misuraca [Mon, 28 Jan 2013 19:53:16 +0000]
ARM: Tegra: Dalmore: Add wakeup callback

Add dalmore_wakeup_key callback to send
proper event on wake. Also modify the pinmux
for the Hall Effect Sensor to match the
power key.

Bug 1216920

Change-Id: I48dbb95e2b67723d54b1f1dc377243a380a24cfd
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/194832
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoinput: misc: cm3218: add shutdown functionality
Sri Krishna chowdary [Mon, 28 Jan 2013 13:17:16 +0000]
input: misc: cm3218: add shutdown functionality

Bug 1203781

Change-Id: Icd30c5f5772e61043e8e5276c8c53667793611e9
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/194669
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoARM: tegra11: clock: add utmip-pad clock entry for xusb
Ajay Gupta [Thu, 10 Jan 2013 22:54:13 +0000]
ARM: tegra11: clock: add utmip-pad clock entry for xusb

utmip-pad entry was missing for xusb and so devm_clk_get is
failing. Adding the same for xusb interface.

Change-Id: I14d4d172405063fd9eeee23fd33a66de1b9cd9ec
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190497
(cherry picked from commit 90c580cda3e695dae54c3a8b42332b15ac8f1475)
Reviewed-on: http://git-master/r/194676
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: correct irq name INT_USB3_NOT_SMI
JC Kuo [Wed, 9 Jan 2013 21:02:39 +0000]
ARM: tegra: correct irq name INT_USB3_NOT_SMI

Corrected the wrong irq name INT_USB3_NOT_SMI to correct name
INT_USB3_HOST_SMI

Change-Id: I7afc105a798022f27ab2e4468d33679c0de3f031
Signed-off-by: Bharath Yadav <byadav@nvidia.com>
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Signed-off-by: Henry Lin <henryl@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190495
(cherry picked from commit be6a7f5561563b2a813617bf39c92cfadb5d229a)
Reviewed-on: http://git-master/r/194675
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoARM: tegra: fix XUSB ID name to tegra-xhci
Ajay Gupta [Wed, 7 Nov 2012 19:21:27 +0000]
ARM: tegra: fix XUSB ID name to tegra-xhci

XUSB platform device and other clock sources are mapped
with device name as "tegra-xhci".

Change-Id: I758b3b9bfaa17255af68d611a688da886b859094
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190491
(cherry picked from commit 1ecdceebf1f51ca26dd20f5b6fb2e16f043f1c19)
Reviewed-on: http://git-master/r/194674
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: xusb: export xusb resources
Sri Krishna chowdary [Fri, 26 Oct 2012 10:07:31 +0000]
ARM: tegra: xusb: export xusb resources

Bug 1055592

Change-Id: Icc12cfe446918981ca34570650486df5f5c26f03
Signed-off-by: Bharath Yadav <byadav@nvidia.com>
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190490
(cherry picked from commit 0a78d7d31855fd1fbbaa2c6a2888092aa5a02036)
Reviewed-on: http://git-master/r/194672
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Tested-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agosecurity: tf_driver: integrate latest TL release
Hyung Taek Ryoo [Tue, 22 Jan 2013 22:56:08 +0000]
security: tf_driver: integrate latest TL release

Tegra4 version: TF_TEGRA4_AC02.05.40075

1. The LP0 Warmboot code of TF has been updated to reflect last changes
of Tegra bootloader. TF boot parameters which are passed to secure os
are removed in warmboot code. They can't live in warmboot code anymore
because of PKC boot feature in T114.
2. Disable L2 prefetch throttle to enhance performance.

Bug 1211749

Change-Id: I09648482766ef117f200729ab7220655f93163a4
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-on: http://git-master/r/193165
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoarm: tegra: soctherm: Implement fuse correction for therm_a/b
Diwakar Tundlam [Mon, 28 Jan 2013 22:37:23 +0000]
arm: tegra: soctherm: Implement fuse correction for therm_a/b

Bug 1200077

Change-Id: I664ad343eda227548b0398809c8a9b49fec7c754
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/193236
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>
Reviewed-by: Jiawei Huang <jiaweih@nvidia.com>
Tested-by: Jiawei Huang <jiaweih@nvidia.com>

6 years agoarm: tegra: added speaker EDP data
Dara Ramesh [Tue, 29 Jan 2013 11:57:09 +0000]
arm: tegra: added speaker EDP data

added EDP states in audio platform data for EDP implementation.

Bug 1160686

Change-Id: Icbf561f1e0760b30c9ba13549e3ab767b75dc850
Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-on: http://git-master/r/195095
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agoARM: tegra: Add barriers after cache operations
Amit Kamath [Tue, 29 Jan 2013 10:09:58 +0000]
ARM: tegra: Add barriers after cache operations

memory and instruction barriers are needed after the tlb is
invalidated and BTAC is flushed as per ARM TRM. Without this
there is a invalid page translation in some cases.

Bug 1189280

Change-Id: I85e297ffd9245c5066f656bbb70ea257b8b3b317
Signed-off-by: Amit Kamath <akamath@nvidia.com>
Reviewed-on: http://git-master/r/195070
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agoARM: tegra11: clock: Force out-of-table shared bus max limit
Alex Frid [Fri, 25 Jan 2013 08:05:20 +0000]
ARM: tegra11: clock: Force out-of-table shared bus max limit

So far, rate cap set by shared bus user with SHARED_CEILING attribute
was not clipped to possible bus rates. Since final rounding on shared
bus is always in up direction, bus clock could run at rate above the
ceiling that does not exactly match one of available bus rates. This
is fixed now by rounding cap rate down to possible bus rate before
final shared rate is determined.

Change-Id: If1052b657b60f9a6e07b730f8a8c0f36b17fdbdd
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/194845
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra11: clock: Disable dynamic cbus support
Alex Frid [Fri, 25 Jan 2013 06:12:33 +0000]
ARM: tegra11: clock: Disable dynamic cbus support

Disabled dynamic reload of c2bus and c3bus dvfs tables, since it is
no longer needed - all modules on each bus use the same table.

Change-Id: I7b2aa3a81a2bd9c00fc87219f391883521749765
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/194844
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra11: clock: Add CPU clock set parent abort message
Alex Frid [Tue, 22 Jan 2013 21:00:38 +0000]
ARM: tegra11: clock: Add CPU clock set parent abort message

Change-Id: I9fecef82634a53189f5054d9c30e7580997603a0
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/193175
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agomisc: nct1008: modify shutdown functionality
Sri Krishna chowdary [Tue, 22 Jan 2013 14:03:14 +0000]
misc: nct1008: modify shutdown functionality

i2c transation can happen through means other than
work_func. Wait for any ongoing i2c transaction and
then shutdown.

Bug 1202277

Change-Id: I8e89ee5aec170cae3897e45ddd7379e8d12eace2
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/193058
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoARM: tegra: cardhu: Add battery regulator
Laxman Dewangan [Tue, 22 Jan 2013 13:45:35 +0000]
ARM: tegra: cardhu: Add battery regulator

Add battery regulator which is always-on. The rail which is
powered from battery can be added on this rail as consumer.

bug 1218527

Change-Id: I2394e1894649cd4fa736646981374681f603c832
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 4b9cabe87060bf5f252206aba5b62ea1ccb2ff83)
Reviewed-on: http://git-master/r/193761
Tested-by: Preetham Chandru <pchandru@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoasoc: codecs: rt5640: fix headset power issue
Dara Ramesh [Mon, 28 Jan 2013 11:24:06 +0000]
asoc: codecs: rt5640:  fix headset power issue

Write back the power control register values
after detecting headset or headphone.

bug 1218111

Change-Id: I372c3d1e397290d8c31bd0591861731d4eb861db
Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-on: http://git-master/r/194637
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vijay Mali <vmali@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agovideo: tegra: dc: Fix clk enable/disable
Animesh Kishore [Thu, 27 Dec 2012 08:43:59 +0000]
video: tegra: dc: Fix clk enable/disable

-disable pll when display off
-balance extra clk reference

Bug 1209013

Change-Id: Ib810281ae692f6443171f4542ba71abb1d62e1d4
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/191764
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra11x: Decrease min_residency_noncpu
Bo Yan [Mon, 28 Jan 2013 23:04:00 +0000]
ARM: tegra11x: Decrease min_residency_noncpu

2ms seems a reasonable value for entring non-CPU power gating based
on available data.

bug 1177454

Change-Id: I4a28118cadc7804fec7a2832bc7584a3380505be
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/194854
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Richard Zhao <rizhao@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: t114: limit sdmmc1, sdmmc3 max clock.
Naveen Kumar Arepalli [Mon, 21 Jan 2013 06:04:27 +0000]
ARM: tegra: t114: limit sdmmc1, sdmmc3 max clock.

CRC errors are seen in higher clock rates.
limiting sdmmc1, sdmmc3 max clock to 82 MHZ.

Bug 1189241

Change-Id: Icc05e0e77ea1d4cfc958b106566d08ee519c85d3
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/194573
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Tested-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: tegra: dalmore: Fix compilation error with Tskin feature.
Hyungwoo Yang [Fri, 25 Jan 2013 23:17:00 +0000]
ARM: tegra: dalmore: Fix compilation error with Tskin feature.

Refactoring balanced throttling stucture missed Tskin part.
Due to that, there's compilation error with Tskin feature.

This change fix the compilation error.

Change-Id: I5c00e42e16a47c651070c55528ae1e711a17fe2e
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/194280
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegra: baseband: fix crash when queueing EDP work
Neil Patel [Fri, 25 Jan 2013 22:36:44 +0000]
ARM: tegra: baseband: fix crash when queueing EDP work

Add a check for EDP initialization in the driver before queueing EDP
work on the modem workqueue. Otherwise a BUG() will occur in cases
where the EDP client is not enabled.

Bug 1224860

Change-Id: Ibacb19abfe955244da4a833f39bd0adf13e4f04c
Signed-off-by: Neil Patel <neilp@nvidia.com>
Reviewed-on: http://git-master/r/194268
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Steve Lin <stlin@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>

6 years agoARM: config: tegra11: enable Tskin throttling
Hyungwoo Yang [Fri, 25 Jan 2013 23:32:42 +0000]
ARM: config: tegra11: enable Tskin throttling

Enable Tskin throttling by default for tegra11 platforms.

We enable Tskin throlling by default but Tskin throttling will never
happen due to its default Tskin coefficient values
in skin temperature estimator.

To make it work correctly, a platform should develop and set its own
correct Tskin coefficient values.

Bug 1158323

Reviewed-on: http://git-master/r/192559
(cherry picked from commit cb55b64885ec252fec5375732e0d49a376672e8d)
Change-Id: Ib67a6bdea56ae47db9245fd248990de02754199f
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/193965
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agomedia: video: tegra: pluto: front camera detect
Charlie Huang [Tue, 22 Jan 2013 23:15:01 +0000]
media: video: tegra: pluto: front camera detect

Detect ov5640 adapter by toggling the CAM_GPIO1 and read it back
from CAM_GPIO2.

On the ov5640 adapter board(E1633), pin 5 & 6 of connector J9 should
be shorted to make CAM_GPIO1 and CAM_GPIO2 connected.

bug 1207553

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

6 years agosoc: tegra: cs42l73: add speaker AMP EDP support
Dara Ramesh [Tue, 22 Jan 2013 14:41:19 +0000]
soc: tegra: cs42l73: add speaker AMP EDP support

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

Bug 1160686

Change-Id: I79906d3fd5dbfbedea7512d9745c59d700e325d5
Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-on: http://git-master/r/193065
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: Remove redundant tegra_idle_device
Bo Yan [Fri, 25 Jan 2013 21:55:24 +0000]
ARM: tegra: Remove redundant tegra_idle_device

cpuidle.c in drivers/cpuidle already defines per-CPU variable
cpuidle_devices, which holds registered devices for each CPU.
The static tegra_idle_device is unnecessary.

Change-Id: I471515b8d582fc25f5cec0f2d78b2db14b064c4e
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/194267
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra11: clock: Set shared ceiling users "always On"
Alex Frid [Fri, 18 Jan 2013 04:55:33 +0000]
ARM: tegra11: clock: Set shared ceiling users "always On"

Shared ceiling users apply caps to shared bus rate even if they are
disabled (this way shared bus clock can stay disabled when only cap
is applied). To properly reflect this relationship initialize shared
ceiling users in ON state with refcount 1.

Change-Id: I80ff49b0eea993c16c3918709bf9215f7ba97bd7
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/192627
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: pluto: enable power off on suspend for baseband
Yunfan Zhang [Wed, 23 Jan 2013 03:43:01 +0000]
ARM: tegra: pluto: enable power off on suspend for baseband

Enable hsic phy power off on suspend for ehci2 and ehci3

Bug 1222167

Change-Id: I23f2e004e68822e9e7d6292eee6d632fdb84d81c
Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-on: http://git-master/r/193259
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra11x: more accurate sleep time
Bo Yan [Wed, 23 Jan 2013 19:02:16 +0000]
ARM: tegra11x: more accurate sleep time

The sleep length in tick data structure does not reflect how long
timer has been running, thus the expected wake up trigger may be
set to a value which is too late.

Directly accessing timer register to get the next timer event,
which is then used to calculate the expected wake up time.

This implies we are sleeping shorter than before in case of cluster
power down, but will make sure we don't oversleep.

Change-Id: I84598db30b6a739103026d090b130f3adb63147b
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/193483
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>

6 years agoARM: tegra: clocks: Propagate shared bus update error
Alex Frid [Sun, 20 Jan 2013 05:36:04 +0000]
ARM: tegra: clocks: Propagate shared bus update error

Returned shared bus update error to the caller of enable and set
rate/parent operations.

Change-Id: Ie3ac2af277b54c42d20874dbbfc3d2dd507c200b
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/194032
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra11: clock: Update dual cbus user migration
Alex Frid [Sun, 20 Jan 2013 09:10:20 +0000]
ARM: tegra11: clock: Update dual cbus user migration

Removed dual cbus cross-lock mutex if CONFIG_TEGRA_MIGRATE_CBUS_USERS
option is not selected (no bus dependencies in this case).

In case when migrate option is selected, make sure that bus rate is
set even it has not changed (since user migration happens during rate
change).

Change-Id: Ibfab356cd8ff9729eebce22d06e4ce92f8a81a7c
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/194033
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoRevert "i2c: tegra: Add early_suspend support for always on i2c-clocks"
Bharat Nihalani [Mon, 28 Jan 2013 08:52:45 +0000]
Revert "i2c: tegra: Add early_suspend support for always on i2c-clocks"

This reverts commit fd83c64018fb60f306d684e0f5e858d26cae5ad5.

EARLYSUSPEND is not available in K3.4 and beyond. Hence reverting this
change. To achieve power savings expected from original change, need to
think of another ways like Run-time PM or something else.

Change-Id: Icaf0e0f43de1c90f6e088432f92b9aab4b24416d
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/194578
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>

6 years agoARM: tegra: dalmore: cleanup key support for 1000 and 1001 SKU
Laxman Dewangan [Thu, 24 Jan 2013 08:31:01 +0000]
ARM: tegra: dalmore: cleanup key support for 1000 and 1001 SKU

The 1001 SKU keys are supported with GPIO keys and KBC keys. Looking
at schematics, we do not need to have Tegra KBC based mapping for 1001
SKU. GPIO keys will suffice the requirements.

Clean-up the key registration and add all keys of 1001 SKU as gpio keys

bug 1222030

(Cherry-picked from commit
18122e818601976448598cbdc0dd9f0adcb87a57)

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

6 years agovideo: tegra: dsi: configure host_suspended correctly
Ken Chang [Thu, 24 Jan 2013 02:51:23 +0000]
video: tegra: dsi: configure host_suspended correctly

host_suspended needs to false after dsi enable.

Bug 1220747

Change-Id: I995170bc3b9fbcf2d21d8a6c23c1bdc8f4e20e66
Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: http://git-master/r/193618
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoasoc: tegra: aic326x: Add Voice call recording connections
Vijay Mali [Thu, 24 Jan 2013 05:44:07 +0000]
asoc: tegra: aic326x: Add Voice call recording connections

Use tegra for mixing UL+DL audio
Setup DAM for SRC and mixing
Add voice call recording connections

Bug 1179798

Change-Id: I8027ac48eb265537795c7c1ac1c57758fa6c8f20
Signed-off-by: Vijay Mali <vmali@nvidia.com>
Reviewed-on: http://git-master/r/193631
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra11: pluto: Add HiFi sample rate for AIC3262 Codec
Vijay Mali [Mon, 28 Jan 2013 06:13:31 +0000]
ARM: tegra11: pluto: Add HiFi sample rate for AIC3262 Codec

Add sample rate in HiFi port configuration for AIC3262 codec.
Initilization of sample rate is required to avoid reading wrong
sample rate of HiFi port during voice call recording case.

Bug 1179798

Change-Id: I3cec8cc071ba64c93e885aecf0db949ab3f836a6
Signed-off-by: Vijay Mali <vmali@nvidia.com>
Reviewed-on: http://git-master/r/194518
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agothermal: soctherm: enable hardware thermal throttling config
Diwakar Tundlam [Thu, 17 Jan 2013 23:21:31 +0000]
thermal: soctherm: enable hardware thermal throttling config

Bug 1200075

Change-Id: I3f6c3f3e0eca1cead8e9958d9afb5af32053d74b
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/192261
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>

6 years agopower: sbs-battery: add shutdown functionality
Syed Rafiuddin [Tue, 22 Jan 2013 07:25:44 +0000]
power: sbs-battery: add shutdown functionality

This change is intended to add the shutdown
functionality to the sbs compliant fuel gauge
driver

Bug 1202296

Change-Id: I337e67c67692f455d7752a02bc86844a0848cedd
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/194071
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: Tegra: Add T11x wakeups Header
Matt Wagner [Fri, 25 Jan 2013 21:37:27 +0000]
ARM: Tegra: Add T11x wakeups Header

Add header to map GPIOs to WAKE bits

Bug 1220330

Change-Id: Ic20744524c5d1a9f7bf8f6058171b4313348a5d8
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/194246
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra11x: Increase target residency for cluster
Bo Yan [Fri, 25 Jan 2013 00:42:47 +0000]
ARM: tegra11x: Increase target residency for cluster

Set threshold for C1NC power gating at 4ms for now. This needs to
be fine tuned. Set threshold for rail gating at 8ms for now, this
is an arbitrary number which is larger than the one for C1NC, but
rail gating has not been enabled yet, and also needs to be fine
tuned.

bug 1177454

Change-Id: I0dcbfb2d307904c9030a576d416e980e763fcec7
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/193986
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: tegra: board changes to enable hw throttling in soctherm
Diwakar Tundlam [Thu, 17 Jan 2013 23:23:09 +0000]
arm: tegra: board changes to enable hw throttling in soctherm

Bug 1200075

Change-Id: I407de39f60a65b55cf45fda25469b56b4fd3fccf
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/192262
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: Tegra: Roth: Add Configuration for KBC
Matt Wagner [Fri, 25 Jan 2013 21:38:40 +0000]
ARM: Tegra: Roth: Add Configuration for KBC

Add roth_wakeup_key detection and modify pinmux
for the Hall Effect Sensor to match the power key

Bug 1220330

Change-Id: I670489c301cc40751e845992351f884cfc97c157
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/194247
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: tegra: board: Add support for odm data for modem
Suresh Mangipudi [Fri, 5 Oct 2012 11:34:01 +0000]
arm: tegra: board: Add support for odm data for modem

Cardhu and Kai to use the odm data to register usb interface on which
modem is connected.
Also set the hotplug flag to true.

Bug 1029827

Change-Id: I8f8d80c70e73754e3ac0ec736275b24fc1c585f6
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/141946
Reviewed-on: http://git-master/r/192052
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: Tegra: Roth: Enable 1v8 Touch Regulator
Matt Wagner [Thu, 10 Jan 2013 22:47:12 +0000]
ARM: Tegra: Roth: Enable 1v8 Touch Regulator

Set up 1v8 Touch regulator dvdd_ts as a fixed_regulator

Set up Pinmux to work correctly for this new use

Bug 1216507

Reviewed-on: http://git-master/r/190412
(cherry picked from commit b51a0a50a2c2de8be4ba6e7920a757c4575dc7f1)

Change-Id: Ibb8266327a212f527c8c3076cfc4f30eeaf46f06
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/192566
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Jung <djung@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>