video: tegra: host: Set rate for all clocks in nvhost device

Fixed rate setting problem what set rate for only a clock in nvhost
device, even if there are clocks more than one in nvhost device.

Bug 938580

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/85129
(cherry picked from commit 5818d42dc0ad5dfa7659dca5d7f61b572c08613d)

Change-Id: Id3a7be50541b1d93a2ed7353f3eabc71dd398773
Reviewed-on: http://git-master/r/87276
Tested-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
ARM: tegra: config: Disable MPU6050 Gyroscope driver

For cardhu and ventana the Gyroscope present is MPU3050 and not
MPU6050. Hence disabling MPU6050 Gyroscope driver from the defconfig.

Bug 946328
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Change-Id: I5dc9133ca4f3d51832eeeab26c7b76ee55302a0a
Reviewed-on: http://git-master/r/88314
Reviewed-by: Shashank Sharma <shashanks@nvidia.com>
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
ARM: tegra: Put all Tegra Kconfig entries under if ARCH_TEGRA

Change-Id: I49041ada720045908a433b44f301036fc4913462
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/88955
Reviewed-by: Stephen Warren <swarren@nvidia.com>
regulator: tps65910: Sleep off rails when ext sleep configured

Keep the rails OFF in sleep mode only when the rails are
controlled by external sleep control.
The devices tps65910 and tps65911, both has the sleep input.
The tps65911's sleep input is not same as tps65910's EN3 and hence
taking care of SLEEP input as separate external sleep control input.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
cherry picked from mainline commit
	87ae88a17396fe3f91c34ab44f460e5680eb6f61

Change-Id: I05645082ad5268a4553891db6b35af33650b7a95
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/89125
asoc: wm8753 machine: change M/S configuration for bt

change M/S configuration for bt, with BT as Slave and Modem
as Master

Change-Id: Ifae5ca228f3bcf0f882f47e79448c10bcc33ec4d
Reviewed-on: http://git-master/r/89127
Tested-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
video: tegra: nvmap: optimize uc & wc allocations.

Changing page attributes and cache maintenance reduces
performance in applications doing runtime reallocations.

Keep pool of UC & WC pages to avoid expensive
operations when doing allocations.

bug 865816
(refactored initial changes from Kirill and added shrinker
notification handling)

Change-Id: I43206efb1adc750ded672bfe074e0648f2f9490b
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/87532
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
misc: tegra-baseband: Add support for L2 and cleanup code.

Bug 886459

Signed-off-by: Raj Jayaraman <rjayaraman@nvidia.com>
(cherry picked from commit 9032b38a76d8337ee6b9582265171ca09473a3e9)

Change-Id: Ifa5ad5bdb3a782119a2920281bc39ce5f6fd2a5a
Reviewed-on: http://git-master/r/88868
Reviewed-by: Rajkumar Jayaraman <rjayaraman@nvidia.com>
Tested-by: Rajkumar Jayaraman <rjayaraman@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>
crypto: tegra-se: Check for valid reqeusted buffer size

Added check for valid requested process buffer size.

Bug 928454

Change-Id: I2dc389af64cb3de2f0a0a3f0bbc5057dd9bd676c
Reviewed-on: http://git-master/r/89381
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
ARM: mm: Use CONFIG_CPA

Use CONFIG_CPA flag to allow disabling CPA code.

Change-Id: Ic6a4993dbabbef8d9847295f698887d73d81269a
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/88464
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
iio: light: ALS driver for LTR558

Adding driver for Ambient Light and Proximity sensor from
Lite On Technology.
This driver has sysfs interface to get the als and proximity values
and enable/disable als and proximity.

Bug 901133

Change-Id: Iafa0346d74825a67d94143181922de7a16cc7718
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/83837
Reviewed-by: Darrell Hunt <dhunt@nvidia.com>
regulator: max77663: Don't use low-power mode for N-Channel LDOs

N-Channel LDOs on MAX77663 doesn't work well. It has glitches. Don't
use it as WAR.

Bug 949641

Change-Id: Ib0c8918137bccc0ce3b30bd6d97ad5f9bd39277e
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/87691
Tested-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
mfd: max77663: Handle case for PWR_OFF and SFT_RST setting simultaneously

MAX77663 PMU doesn't allow PWR_OFF and SFT_RST setting in ONOFF_CFG1
at the same time. So if it try to set PWR_OFF and SFT_RST to ONOFF_CFG1
simultaneously, handle only SFT_RST and ignore PWR_OFF.

Bug 949650

Change-Id: I90c602e22c813b05fcd9047153cea3ed2cbd596f
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/87981
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Johnny Qiu <joqiu@nvidia.com>
arm: tegra: kai: registering LTR558 ALS on I2C

Registering LTR558 Ambient light and Proximity sensor on I2C bus.

Bug 901133

Change-Id: I34b996813a409229a1baa25a069f0ba4758b154e
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/88228
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
arm: tegra: whistler: Add board suspend/resume

Adding board suspend/resume functionality for whistler.

bug 907612

Change-Id: Ibb4178bbed7e4fa5f0d8b0080a34e85a3fe5aefc
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/88278
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Tested-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
arm: tegra: kai: turn off status LED all the time

Bug 949015
Bug 947228
Bug 947203

Change-Id: Iaca9ff0aba45546c0c16699ae35cc89ff7a043aa
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/89120
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
serial: tegra: Define correct port type

When doing the cat /proc/tty/driver/tegra_uart, the serial
core display the message as
0: uart:unknown port:00000000 irq:68 tx:0 rx:0 CTS|DSR|CD|RI
4: uart:unknown port:00000000 irq:123 tx:0 rx:0 CTS|DSR|CD|RI

This is because the correct port type and iotype are not getting
set in tegra serial driver.

Setting these parameter to proper to display the information as
1: uart:TEGRA_UART mmio:0x70006040 irq:69 tx:0 rx:0 CTS|DSR|CD|RI
2: uart:TEGRA_UART mmio:0x70006200 irq:78 tx:477 rx:1603 RTS|CTS|DTR|DSR|CD|RI
3: uart:TEGRA_UART mmio:0x70006300 irq:122 tx:0 rx:0 CTS|DSR|CD|RI
4: uart:TEGRA_UART mmio:0x70006400 irq:123 tx:0 rx:0 CTS|DSR|CD|RI

bug 889724

Change-Id: Ia095623c53d1a3840c4d3759141cdf23cc2d4547
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/89122
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
asoc: machine: add api to query voice call state

Change-Id: I0b2b50c007d9e7b722b2c4bbc0282c51a8d18b00
Reviewed-on: http://git-master/r/88239
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
wireless: bcmdhd: make wext and cfg80211 choices

make wext and cfg80211 integration from
bcmdhd choices

Bug 924521

Change-Id: Ie0c46159003985e4e4b29b2809fe881ce924dbee
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/88908
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>
Tested-by: Gerrit_Virtual_Submit
defconfig: tegra3: enable wext feature of bcmdhd

enable wext to make the bcmdhd driver integrate with
network manager

Bug 924521

Change-Id: I5cd90a72e844d024256323e936bfba072766adf0
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/89158
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>
Tested-by: Gerrit_Virtual_Submit
ARM: tegra: clock: Disable early-ack during EMC clock change

Bug 935079

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

Change-Id: Ifd155a66469e9463da89639b6577c1f90972f4ac
Reviewed-on: http://git-master/r/89347
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>