arm: tegra: kai: read mac address from board eeprom

Bug 927456

Change-Id: I98e1d8960888a4e6dd429e73c9ac0d1fce7d90be
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/86958
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
tegra: usb: phy: hsic phy configuration changes

Program TXFILLTUNNING to 0x10 to avoid any under
runs at HSIC phy.
Program host mode before hsic phy selection.
Program RTUNE to 50 ohm for T30

Bug 903265

Change-Id: Id30d55f312dab1bc04994a8b6a2fa0e68a02a20e
Signed-off-by: Seshendra Gadagottu<sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/82754
(cherry picked from commit 078d0086aed45e3fe3a58a7b29afc6a2bdd907ed)
Reviewed-on: http://git-master/r/87501
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
tegra: usb: host: Clean-up hsic device connection retries

usb_phy is handling conenction with hsic device. Removing
hsic conenction re-tries logic from ehci_tegra.

Bug 932606

Change-Id: I7bdea39966eb66d4cb8271d913c449dfa1ff4b2f
Signed-off-by: Seshendra Gadagottu<sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/82758
(cherry picked from commit 5e3c81372ffb2601cc9f078111b90aba03a7b1f0)
Reviewed-on: http://git-master/r/87502
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
arm: tegra: xmm power state handling

Avoid unwanted xmm power state changes.
Added missing spin_unlock_irqrestore.

Bug 935834
Bug 938553

Signed-off-by: Seshendra Gadagottu<sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/82796
(cherry picked from commit 8af674aadfc1196851d5a2ecd1ecdd2cfe2d4148)

Change-Id: Ic5b354376c0239773762d1b0f6e8848491e74e08
Reviewed-on: http://git-master/r/87503
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
arm: tegra: Enable gizmo settings after system resume

Enable save/restore gizmo settings for all tegra chip sets.

Bug 935834

Change-Id: I0400d555c05c5558aca2bf3d2cee707c7db77927
Signed-off-by: Seshendra Gadagottu<sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/83037
(cherry picked from commit 5a51bbfc4715dc50571ccfc44c31d8318ba306c1)
Reviewed-on: http://git-master/r/87507
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
arm: config: tegra3: enable NL80211_TESTMODE

Enable NL80211_TESTMODE to support nl80211 testmode commands

Bug 926626

Change-Id: I8627ab36079699b81b22cc7e5818e42c534d29a9
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/87508
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
arm: tegra: whistler: reduce reserved fb memory

Android needs framebuffer for recovery process and display transition
from boot loader to kernel. Reserve only required memory for these scenarios.

Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
(cherry picked from commit 6e4617224e5b9fe5793691a33f3304acff336e55)

Change-Id: I9892025ed256cb0be5c337d65cd84ba42b604158
Reviewed-on: http://git-master/r/87620
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
arm: tegra: whistler: reduce carveout size

Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
(cherry picked from commit 9896377607fb90757289434cd969bebc52726f51)

Change-Id: Ibe6da0737ccd39930ef68f4fb886b507c5efbafe
Reviewed-on: http://git-master/r/87621
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
mmc: tegra: Clear SPI_MODE_CLKEN_OVERRIDE bit by default

This bit should always be 0 according to TRM.

Bug 929985

Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/79975
(cherry picked from commit 9371d04b4f9d79f1e03e60120bf1bba28af77d4b)

Change-Id: I225d6b5442f63809a77ce92d9cbd152dc4112ac4
Reviewed-on: http://git-master/r/87640
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
asoc: codecs: Fix pop noise while booting for ALC5639/40

Fix for pop noise 'cut' from internal speaker while booting
on kai board.

Bug 929049

Change-Id: I9c3fe7e05d869709f50036042e70abc91722885e
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/87685
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
usb: cdc-acm: Add acm handle validity check

Added check for acm handle validity before doing any action
in acm_suspend, acm_resume and acm_reset_resume functions.

Bug 939237

Change-Id: Idc5d7db6bd405056a90b85009825ccbd03547757
Signed-off-by: Seshendra Gadagottu<sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/83413
(cherry picked from commit 1dd9736cd2df12c0315a44c95010cb64eee04050)
Reviewed-on: http://git-master/r/87504
Reviewed-by: Steve Lin <stlin@nvidia.com>
arm : tegra : comm: AT command loss WAR

Workaround to avoid make cdc-acm susp_count
to negative.

Bug 935834

Change-Id: I251049537e21662de329f11ecbad0ce15abb1037
Signed-off-by: Seshendra Gadagottu<sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/84288
(cherry picked from commit d056c04d453bc641e856a61251e7d0aa2dcce73b)
Reviewed-on: http://git-master/r/87505
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
arm: tegra: comms: add mutex for on/off switch

Mutex protection is added on xmm_onoff

Bug 938553

Change-Id: I260847861a56f612f06c20cd7429c19c9001ac99
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/84751
(cherry picked from commit 14ac86297c4faa6a9cbf95877b782c997698347c)
Reviewed-on: http://git-master/r/87506
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>
ARM: tegra: clock: Increase Tegra3 EACK countdown

Bug 935079

Signed-off-by: Alex Frid <afrid@nvidia.com>
(cherry picked from commit 5e70d23ef33dbdf0ce628fd2f287eec1b145dd8e)

Change-Id: Ib8bd72b2cac82b50789f86d034d6ad03b76a657f
Reviewed-on: http://git-master/r/87539
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
ARM: tegra: power: Fix LP2 timers suspend/resume

On entry/exit to suspend state remove/restore Tegra3 LP2 wake timers
interrupts affinity to the respective secondary CPUs.

Change-Id: I9b46c5fa446a8c6e813343f4564abda5313853da
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/87541
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
mmc: mmc_test support to set ios parameters

support to change *ios* parameteres

bug 930113

Change-Id: I469db49ec9e4ca533ba3be654455ae6b4b052d1c
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/79238
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
arm: tegra: update thermal sensor configurations

Bug 941960

Removed CONFIG_TEGRA_INTERNAL_TSENSOR_EDP_SUPPORT.
Add internal tsensor on kai.

Change-Id: Iaefa43112fbbaa42d43a428ecb86ad821e683f85
Signed-off-by: Hao Tang <htang@nvidia.com>
Reviewed-on: http://git-master/r/84350
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
mmc: enable mmc suspend/resume for sdio device

Bug 942826

Change-Id: Ie782f17c51e78994e0fc96da3fbbe2e6592f58dc
Signed-off-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-on: http://git-master/r/84697
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com>
Tested-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
arm: tegra: kai: set default_enable to false

Bug 931371
Bug 947203
Bug 947228

Disable usb hotplug in kai as enterprise to save power

Change-Id: Ia621052d3e825c8b0bd1ef61645dd424df6c29eb
Signed-off-by: Hao Tang <htang@nvidia.com>
Reviewed-on: http://git-master/r/85626
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
tegra: pcie: Remove unnecessary clock operations

All these clock operations should be handled by
powergate operations.

bug 840051

Reviewed-on: http://git-master/r/66177
(cherry picked from commit 1ad8fe3e184db04063275c837e240827bda009e9)

Change-Id: I0159c6c1f64932b22b25d31d4bb1ff9d41385879
Reviewed-on: http://git-master/r/86126
Tested-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-by: Krishna Thota <kthota@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>