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>

6 years agopower: bq2419x: Do not disable charging
Syed Rafiuddin [Thu, 24 Jan 2013 09:27:46 +0000]
power: bq2419x: Do not disable charging

Battery charger should not be disabled,
and set to safe "off" charge mode

Bug 1215704

Change-Id: I40bd56f469e937b6e105de3f7055316573e8f572
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/192025
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra11: clock: Set xusb pll pad iddq by default
Hunk Lin [Mon, 17 Dec 2012 12:24:11 +0000]
ARM: tegra11: clock: Set xusb pll pad iddq by default

For the boards which don't use PLLE, set xusb pll pad override and iddq for
power saving. The override and iddq will be clear after PLLE is enabled.

Bug 1054317

Change-Id: Ic2da1311058f1033300557f6b0457e940547579e
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/167749
(cherry picked from commit 039f84235fe7c481ff6de0bba74f22cf7d0eb1d9)
Reviewed-on: http://git-master/r/193413
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agousb: gadget: tegra: add NV charger detection
Rakesh Bodla [Wed, 23 Jan 2013 15:19:33 +0000]
usb: gadget: tegra: add NV charger detection

Adding the support to detect NV charger and
set current limit to withdraw as 2.0amps.

Bug 1193528

Change-Id: I5ef6c553b33dfa45bfd9e07a9ba05ddf3c75e239
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/192055
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agomach-tegra: tegra[3,11]: bluesleep as built-in or module
Mursalin Akon [Thu, 24 Jan 2013 22:19:22 +0000]
mach-tegra: tegra[3,11]: bluesleep as built-in or module

allow bluesleep as built-in or module

Bug 1219372

Change-Id: I2815783c38291c5493e0448cd1a0f9e3bc0daf2d
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/193946
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>

6 years agoconfig: t114: enable auto load of bcmdhd
Mursalin Akon [Tue, 22 Jan 2013 23:39:56 +0000]
config: t114: enable auto load of bcmdhd

enable auto load of bcmdhd on dalmore

Bug 1222525

Change-Id: I49639754d712bc5a733694a55172e90c2cad5b80
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/193180
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>

6 years agoasoc: tegra: SPI interface for TI codec
Scott Peterson [Wed, 23 Jan 2013 23:53:01 +0000]
asoc: tegra: SPI interface for TI codec

Add support for accessing the TI aic3262 codec
using the spi interface

Change-Id: I30c72ac2bec5cd51e472f8f4e0750cd533d354a3

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

6 years agoARM: tegra: dvfs: Move common core voltage capping code
Alex Frid [Thu, 24 Jan 2013 01:25:11 +0000]
ARM: tegra: dvfs: Move common core voltage capping code

Moved common for Tegra3 and Tegra11 core voltage capping code to
a separate file.

Change-Id: I69c365abdaba80dae64d07c3c3c1c9f8d42cff19
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/193602
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>

6 years agohwmon: ina3221: Support for turning off ina
Anshul Jain [Thu, 24 Jan 2013 02:05:56 +0000]
hwmon: ina3221: Support for turning off ina

This is an optimization to turn off INA device based on number of cores
online. Also, this change removes support for turning on/off INA at runtime
using sysfs node. Additionaly, this change creates a new API power2_*,
which return 0 if ina device is turned off.

Bug 1223376
Bug 1207777

Change-Id: I0beedffa10d7e11e280e96c2c58c4dd191b87819
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/193580
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agovideo: tegra: dc: HDMI VSI for extended resolution
Jon Mayo [Wed, 12 Dec 2012 00:50:41 +0000]
video: tegra: dc: HDMI VSI for extended resolution

Bug 1167856

Change-Id: I40ef0501d7cbd61eb2176b45a7d9289d1d23865d
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/170281
(cherry picked from commit 33f73a0600ffd60174cfee2554d31216dfd4c343)
Reviewed-on: http://git-master/r/193499
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Rakesh Iyer <riyer@nvidia.com>

6 years agovideo: tegra: dc: support HDMI avi format values
Jon Mayo [Tue, 11 Dec 2012 21:02:12 +0000]
video: tegra: dc: support HDMI avi format values

Support all HDMI VIC format values using cea_modes[] list for determining the
the AVI format number.  Stores aspect ratio in fb_videmode and tegra_dc_mode so
that ambiguous modes are resolved.

Bug 1167856
Bug 1173814

Change-Id: Icf66753732076b99dd0ff0163f4a4f6a9f90ae57
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/170279
(cherry picked from commit e9f8abd89c1c2ac222ab0233448d391057ce3c93)
Reviewed-on: http://git-master/r/193498
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Rakesh Iyer <riyer@nvidia.com>

6 years agoinput: touch: raydium: Boost CPU only while leaving idle mode
Yogish Kulkarni [Sun, 20 Jan 2013 07:15:45 +0000]
input: touch: raydium: Boost CPU only while leaving idle mode

Raydium driver puts panel into idle mode after TimeToIdle period
which is calculated as,

TimeToIdle = (Firmware configurable param) * 10 * (panel scan rate);

Presently value of firmware configurable param is 5 for all
platforms. For 298Hz panel, idle will be invoked when no touch
activity is detected for ~168ms. During this time interval panel
will keep on raising IRQ at scan rate. Current CPU boosting logic
will keep on sending PM QoS request to boost CPU during this
interval, which can result to increased power numbers.

To boost CPU we can use the fact that raydium driver puts panel
into autoscan-mode after TimeToIdle, the mode where panel will
not send IRQ's unless it detects touch. This will result into
better power numbers as well serve the purpose to boost CPU only
on first touch IRQ.

If autoscan mode or idle mode is disabled, CPU won't be boosted.
undef NV_ENABLE_CPU_BOOST to disable CPU boosting.

Bug 1221911

Change-Id: Ibb6b4775039cc211fec33c2dde715454293bfdec
Signed-off-by: Yogish Kulkarni <yogishk@nvidia.com>
Reviewed-on: http://git-master/r/192939
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: clock: Add common EMC interface header
Alex Frid [Sat, 19 Jan 2013 05:09:09 +0000]
ARM: tegra: clock: Add common EMC interface header

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

6 years agogpio: tegra: Fix definition of TEGRA_GPIO_INVALID
Laxman Dewangan [Thu, 17 Jan 2013 12:56:12 +0000]
gpio: tegra: Fix definition of TEGRA_GPIO_INVALID

Make the TEGRA_GPIO_INVALID is -ve so that gpio_is_valid() return false
with this argument.

bug 1214078

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

6 years agoARM: tegra11: clock: Initialize XUSB clocks
Alex Frid [Fri, 11 Jan 2013 00:34:29 +0000]
ARM: tegra11: clock: Initialize XUSB clocks

Bug 1167739

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

6 years agoARM: tegra11: clock: Change PLLE input clock
Alex Frid [Thu, 10 Jan 2013 06:13:39 +0000]
ARM: tegra11: clock: Change PLLE input clock

Changed PLLE input clock from PLL_RE to oscillator.

Bug 1167739

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

6 years agoARM: tegra11: clock: Update XUSB plls configuration
Alex Frid [Thu, 10 Jan 2013 03:34:53 +0000]
ARM: tegra11: clock: Update XUSB plls configuration

- set PLLE spread spectrum coefficients
- added possible PLLE configuration with 12MHz input clock
- increased PLLREFE maximum rate to 672MHz

Bug 1167739

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

6 years agoARM: tegra11x: Raise clock rate for C1NC power gating
Bo Yan [Tue, 15 Jan 2013 22:06:27 +0000]
ARM: tegra11x: Raise clock rate for C1NC power gating

The C1NC power gating has long latency when slow cpu runs at very
low clock rate. Raising it to 204MHz can reduce this latency
significantly. The CPU clock is reverted back to its original value
once slow CPU wakes up.

bug 1177454

Change-Id: Idc6122f0a2ba8ad35c963942c60e9cf4a4f0b0c2
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/193501
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: dalmore: update emc table to latest
Ray Poudrier [Wed, 23 Jan 2013 20:09:16 +0000]
ARM: tegra: dalmore: update emc table to latest

Bug 1189313

Change-Id: Ib2502085e533f3f858a058a337ef2cf4a62391c0
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/193500
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: Tegra: Parse memtype commandline argument
Graziano Misuraca [Fri, 18 Jan 2013 19:36:19 +0000]
ARM: Tegra: Parse memtype commandline argument

Parse memtype argument and make available
through 'tegra_get_memory_type()' call
in board.h

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

6 years agoarm: tegra: board changes due to thermal_trip_info in soctherm
Diwakar Tundlam [Thu, 17 Jan 2013 21:20:56 +0000]
arm: tegra: board changes due to thermal_trip_info in soctherm

Bug 1200075

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