Revert "ARM: Tegra: p1852: changed pinmux settings"

This reverts commit e764753820cb723501692204d8d36c5103903a2c.
arm: tegra: pci: unmap/map memory while pwroff/on

Rearranged the code to release all memory and res-
ources whenever poweroff is called and re-allocate
them whenever power on is called.

Bug 963969

Change-Id: I31d9cd1e8603e638714bba765aadfdd4eed78d93
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/116048
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
arm: tegra: pci: Organize pcie initialization code

1. Initialize PCIe on every resume whether device
   is dock/undocked.
2. Poweroff PCIe if Poweron failed at any stage.
3. Make PCIe initialization robust so that it is
   successful anytime dock is connected i.e while
   in LP0 or after it's exit or else.

Bug 1020949

Change-Id: I79cd75f2bf7164a9b5c8906a370364dba5183ac8
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/117532
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
arm: tegra: la: hack latency allowance formula

Remove the ad-hoc scale factor of final latency allowance.
Scale the fifo size to pretend that our FIFO is only as deep
as the lowest fullness we expect to see.

Bug 995270

Change-Id: I78ed2246d2031a2303f81a19fe05c95572a692b0
Signed-off-by: Michael Frydrych <mfrydrych@nvidia.com>
Reviewed-on: http://git-master/r/118816
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Graziano Misuraca <gmisuraca@nvidia.com>
Tested-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
ARM: tegra: wake source interrupts enabled

Tegra wake source interrupts are only enabled before suspend

bug 904746

Change-Id: Ie9722199b4541f2bac77e47d0c8c7e65d5d8b54d
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/115655
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Revert "arm: tegra: cec: Add IO support for tegra3 cec"

This reverts commit 8f80cbbf354f7e7ba9a3d0cc5a778d5fa1121dcb.
ARM: tegra: dvfs: enable regulator before using it

The dvfs system require the regulator for regulating
the voltage. The regulator should be enable before
using it to make sure the reference count enabling rail
of that rail should be properly counted.

Change-Id: Ib8b673ecb7939ac80f46bdf90ffec27b8f62df6b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/118598
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
ARM: tegra: Remove timer workaround

Reprogramming running timers may cause timer interrupt state
to get out of sync and result in lost timer interrupts.

Bug 950482

Change-Id: I83c9d735f9b041e8a57d73ba466f5f9c89ca1b89
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/111242
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
arm: tegra: Added sysfs knobs for RT thresholds

Added different bias levels to RT and added the option to
modify the bias level through sysfs knobs

Bug 1003531

Reviewed-on: http://git-master/r/114271
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit 654bc674034f384d8826806fb443d4e9c67b9b3b)

Change-Id: I2e647a65fb89926dd9f0b2ac3edc3dca8eb659a1
Reviewed-on: http://git-master/r/118201
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Tested-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
ARM: tegra: Add profile that disables runnable threads

Add profile [0, 0, 0] which effectively disables runnable threads

Bug 1003531

Change-Id: Ia45e533d5a6531b06c44c6d95f2f7cfd93cf976e
Signed-off-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-on: http://git-master/r/118219
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Revert "Modified the hot-plug governor down_delay to be 500ms instead of 2s"

This is required as it is causing performance regression for SD, eMMC and USB

Bug 1006055
Bug 1021754

This reverts commit 2f5a59bbeee465fb33d012b8dc714fa0c1637209.

Change-Id: Ie54c28859ead976b5c554191d42eb22569370063
Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/118575
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
arm: tegra: secureos: disable L2 as part of sleep CPU SMC

This is an alternate way to have the L2 disabled available with
later TL secureos versions.

In this version, the sleep CPU SMC which is the last one issued
before entering LP2 on CPU0, will also disable the L2 without a
flush of the secureos workspace.

Change-Id: I61c3caade6cb6f922b9d9f9ca0739bc6ae4e78cd
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-on: http://git-master/r/128951
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: James Zhao <jamesz@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Revert "arm: tegra: xmm: removing L3 state transition"

This reverts commit ea957c2de09b608a55b49f1ec1408a16d65308a5.
Revert "arm: tegra: xmm: changing mdelay and add wait_event"

This reverts commit c98dede36510e1d5329b26cba5be005b52978971.
Revert "arm: tegra: xmm: pm qos for modem enumeration"

This reverts commit 85103ffb05dc35d342e0ced8cab75aedf619beb1.
Revert "arm: tegra: xmm: simultaneous L3 to L0 wakeup"

This reverts commit 9874f9572f416e190befce95e0c53df4e0a62645.
Revert "arm: tegra: xmm: baseband modem pm code cleanup"

This reverts commit ac536813fa240186f7268bcb400547a4b8f90164.
Revert "arm: tegra: xmm: check return value of autopm_get"

This reverts commit eada4f8e518a87a9171db5463783fd3166c67fa7.
Revert "arm: tegra: enterprise: disable dsi_csi_rail in LP0"

This reverts commit 69b3378dd9151627f621b40a5fe82fe697494ee3.
Revert "arm: tegra: xmm: add shutdown handler to off cp"

This reverts commit b3c06d9f3b9b2764edfa56816899b5d124af3c1f.