arm: tegra: config: Enable Read Only NTFS file system support.

Bug 896757

Change-Id: I7ebce860f62c79f4e675be26da76f517960086d2
Signed-off-by: Gaurav Sarode <gsarode@nvidia.com>
Reviewed-on: http://git-master/r/83455
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
arm: tegra: io: Increase host1x io size

This accomodates dsi second instance address space.

Bug 928423

Change-Id: I4aa3314b3227f49b3fe49552503fbdb2fd1c9ddb
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/83773
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
mmc: fix sdhci_host PM flags usage

MMC_PM_KEEP_POWER was used on the wrong structure member, which might
cause card interrupt lost during suspend/resume

Bug 936503

Change-Id: Ib42d7a5ba27c0175e944223967c416a3c80802dd
Signed-off-by: David Schalig <dschalig@nvidia.com>
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/83011
Reviewed-on: http://git-master/r/86020
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Revert "arm: tegra: kai: turn off status LED in LP0"

This reverts commit 39af9f4c2c3cf0d9b8026986db5d73b9ad3ffe11.

Stat LED control through PMU GPIO should be implemented in another
way. No need to touch PMU driver.

Change-Id: I7b577364275a3da3f6fee0b683a4a1323123ae63
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/86827
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Revert "mfd: max77663: add support for status LED control through PMU GPIO"

This reverts commit 11c94f0d529a089f8cc37311258fd518be576383.

Stat LED control through PMU GPIO should be implemented in another
way. No need to touch PMU driver.

Change-Id: Iecde818425640616df0a92339e1c0e8b323800bd
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/86828
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
ARM: tegra: dma: define global dma address only once

Define the global address as static global in file and
uses this in different functions. This way, it will avoid
the same definition at multiple functions.

Change-Id: I71d7ec075c70356c52ae9ce36339b4b9cc082f70
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/86872
Reviewed-by: Stephen Warren <swarren@nvidia.com>
arm: tegra3: Enable leds-gpio

Change-Id: I4c1e264df22e01a50ea6df7abeb2afbd5e28206e
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/86878
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
arm: tegra: kai: Turn off status LED during LP0

Use leds-gpio to control status LED during LP0.

Bug 920845
Bug 931371

Change-Id: I22f11629bcefe7ecb47181ad5c461f505654dde1
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/86879
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
spi: tegra: Fix CS status properly in spi setup

Fixing the logic to clear/set spi cs level on default command
register.

Change-Id: I55e130ecb02dae6e11ad7048730ed11df9848e94
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/86888
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com>
arm: tegra: p1852: Add nvavp driver

Change-Id: Ibbddfeb25bbbb5610c1cd18fb20029fd0c4a009e
Signed-off-by: Bob Johnston <bjohnston@nvidia.com>
Reviewed-on: http://git-master/r/86250
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Conflicts:
	arch/arm/mach-tegra/board-p1852-panel.c
ALSA: HDA: Prevent delay in opening hdmi pcm

When monitor is plugged in instead of reading the complete ELD buffer
only read the relavant bytes required to update pcm info. Go through
the complete ELD buffer once LPCM sad ELD information is updated in
ELD structure. This is required to reduce the delay in getting a valid
PCM information which in turn delays opening of HDMI PCM stream.

Also if a valid LPCM SAD ELD information is not available when
hdmi_pcm_open is called then instead of looping inside hdmi_pcm_open
return error to unblock other operations. User space should retry to
open HDA PCM device after some time.

Bug 931930
Bug 913739
Bug 906076

Change-Id: Iaaef3f0e361ae406c92605b056bd4dff9c2b7856
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/83143
Reviewed-by: Scott Peterson <speterson@nvidia.com>
power: max17048: Add battery custom model data

- Addition of battery custom data to max17048 driver
- Update battery properties like online and charging/discharging
status instantaneously based on the interrupt.

Change-Id: I84f4833caf4c25fb4d73c74c9e986084bb33a94a
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/83505
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
power: smb349: Addition of interrupt support

-Addition of interrupt support to update charger
properties to fuel-gauge driver.

Change-Id: If6384921247b6534f2d8142ad5fd079c5f6e0890
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/83507
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
arm: tegra: kai: avoid export of wifi board specific functions

Bug 931928

Change-Id: Id7f65295dd0f67cae1aca8ccb2c8471382ecb6bd
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/84818
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
asoc: codecs: Add Headset detect support for ALC5639/40

Add support for headset detection for ALC5639/40
codec for kai board.

Bug 937914

Change-Id: I0bb9e913601c37a1cc8f7094fbdd3885aeec92b3
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/86348
Reviewed-by: Chandler Zhang <chazhang@nvidia.com>
Tested-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
arm: tegra: power: disable SUSPEND_LP2 mode selection

Disable selection of LP2 suspend mode from sysfs and
if LP2 mode set from board file change mode to LP0

Bug 928456

Change-Id: I1603153e23688ff1048289c4e04f7c7337f480af
Reviewed-on: http://git-master/r/86580
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
asoc: tegra: ALC5640 machine: Add headset detect support

Add support for headset detection on kai board.

Bug 937914

Change-Id: Ic69f5ffda45f71c3f566533ef74fd2a94d82894c
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/86601
Reviewed-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
dtv: Added power management support

Added suspend/resume function in kernel model to support power
management.

fixed bug 914638

Change-Id: I2746710b6eba6d2528f27b4226383985e314943f
Signed-off-by: Adam Jiang <chaoj@nvidia.com>
Reviewed-on: http://git-master/r/86757
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
arm: cache: fix v7 boot with lockdep enabled

Bootup with lockdep enabled has been broken on v7 since b46c0f74657d
("ARM: 7321/1: cache-v7: Disable preemption when reading CCSIDR").

This is because v7_setup (which is called very early during boot) calls
v7_flush_dcache_all, and the save_and_disable_irqs added by that patch
ends up attempting to call into lockdep C code (trace_hardirqs_off())
when we are in no position to execute it (no stack, MMU off).

Fix this by using a notrace variant of save_and_disable_irqs. The code
already uses the notrace variant of restore_irqs.

Change-Id: I1110a7e07fa3f96022b2e198488fa698c91e2642
Reviewed-by: Nicolas Pitre <(address hidden)>
Acked-by: Stephen Boyd <(address hidden)>
Cc: Catalin Marinas <(address hidden)>
Cc: stable@vger.kernel.org
Signed-off-by: Rabin Vincent <(address hidden)>
Reviewed-on: http://git-master/r/86779
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
ARM: tegra: dma: Call callback from main isr

In order to avoid the passing of the spin lock irq flags
to different isr handler, calling the callbacks from main
isr itself. Callback function should be call without spin
lock.

Change-Id: I9e9980cef5d1de4dd4e31b8ef5fdff223b77bb22
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/86873
Reviewed-by: Stephen Warren <swarren@nvidia.com>