Revert "restored modem config and uart driver, forgot to do that earlier"

This reverts commit 7238e329aba3942093d57230ab5bf25251457e7a.
change of plans... gpio pe1 can't be added since we don't have it in wakeup pad. it's new irq interface that doesn't check correctly passed it but it still didn't work after few longer tests. I removed proximity sensor gpio from wakepad and added not fully implemented solution of blocking lp0 when proximity sensor is using pe1 gpio for readings. This way we have lp1 during calls and hopefully still can wakeup the phone
added suspending/resuming of proximity sensor in early suspend instead of just before suspend. This way it won't be awaken during wakelock work but only when screen is turned on.
set max sleep speed to 216MHz and add special case for waking on call when cpu is boosted to full speed
some cleaning in board files
fix for compilation problem
Revert "Revert "restored modem config and uart driver, forgot to do that earlier""

This reverts commit ca4800080f69cfb8b6f0a221d0abc0f16c74d122.
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>
ARM: tegra: lp0 WAKE2 status clear

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

Change-Id: I1bd5c48baf86ba23d0352594e97c360d363ce991
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/121185
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 7f9749a0050aa4bbe770f1a061f5ae8c8545dfa8)
Reviewed-on: http://git-master/r/123459
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Revert "arm: tegra: Enable speculative line fill in SCU."

This reverts commit 06c880a6086183173c361b4a9d4f8047c6a39769.
This CL is reverted as it causes write perf regression with lmbench(bw_mem)
benchmark.
Bug 1026077

Change-Id: I7ff9ffbfe74e2083aa43cab75b694b1c61987bc3
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/125097
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
arm: tegra: optimize L2 enable/disable paths for secureos

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

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

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

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

Change-Id: I756d2ceda83d5d8d6bc5670218e9d874d5e5f62a
Reviewed-on: http://git-master/r/119786
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
arm: tegra: sd: enable sd dpd

This is a WAR solution that allows for the turning on
SD DPD feature.

The original issue is that enabling SD DPD immediately after device comes
out of LP0 causes ULPI disconnect. The root cause of that is
not known.

The WAR is to delay the enabling of SD DPD for 100ms after
device comes out of LP0.

Bug 929628

Change-Id: I3c5e35ace422e5441535c2c0fe18545b53bbddc4
Signed-off-by: Wen Yi <wyi@nvidia.com>
(cherry picked from commit bffb7b917d52a3523af80db21322ec7ba5fd33f9)
Reviewed-on: http://git-master/r/113392
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Conflicts:

	arch/arm/mach-tegra/pm.h
ARM: tegra: reset io dpd mode

Bootloader io dpd settings are cleared during kernel initialization

bug 758856

Change-Id: Ic6d5250a5ae127bb45ab37b9200ca06c8d1f11a2
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/115395
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Revert "Revert "Revert "restored modem config and uart driver, forgot to
do that earlier"""

This reverts commit cbda3913393e13c3b16bf0d02a17160522855de3.
LP1 for proximity sensor wakeup
pinmux handling on init/shutdown of audio. It's not finished yet but looks like it fixes audio issue on booting with headphones plugged in.
further pinmux suspend/resume handling
enabling remote wakeup and hotplug for usb, not sure if that's a good idea but have to make a commit
undervolting enhancements (preparations for usermode control) and proximity handling on call (hopefully cleanest way to make phone go to LP1 while call and keep LP0 in any other state)
suspend/resume optimizations