media: video: ov2710: add sensor group hold

Implements a group hold so that the gain, frame length, and
coarse time can all be written in one ioctl call

Also fixes AEC manual control register value

Also implements bulk i2c send in the same way as ov5650

Bug 953910

Change-Id: Iaa2e8ac6c0156564920696afaa099321db6314f6
Signed-off-by: Pablo Ceballos <pceballos@nvidia.com>
Reviewed-on: http://git-master/r/94380
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Patrick Shehane <pshehane@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
arm: tegra: usb: fix suspend resume issues of ULPI phy

Fixing suspend resume issues observed with ULPI phy during
entering/exiting LP0 on enterprise.

bug 989510

Change-Id: Iaf5da7597281b5e1a78df7bdf32c46422cb5c6ef
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/104959
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
ARM: tegra: usb: enable pmu vbus interrupts

Enable pmu vbus interrupt for Enterprise and Whistler
to save power by turning off controller clock

Change-Id: I691bdd76ca71d63d98f83e2a3a18bbfcfc16a473
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/105150
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
video: tegra: host: Fix error case memory leaks

When a submit fails, the related nvhost_job is not freed. Add an
explicit free. Also, 3D is mapping the save buffer, but it is not
unmapped.

Bug 991972

Change-Id: Ie335adb5e64f54557e76d12dfb6a9a1557781e8d
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/105152
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
media: video: tegra: space correction

A space is missing between the words 'an' and 'independent'
in the print statement:
	dev_info(&info->i2c_client->dev,
		"%s no regulator found for %s. "
		"This board may not have an"
		"independent %s regulator.\n",
		__func__, info->vreg[j].vreg_name,
		info->vreg[j].vreg_name);

Bug 991768
Signed-off-by: Preetham Chandru <pchandru@nvidia.com>

Change-Id: Idde809c162b3b32c1db57436273af1810f03000a
Reviewed-on: http://git-master/r/105157
Tested-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit
arm: tegra: usb: add null ulpi baseband ops

Adding the implementation of null ulpi
 baseband ops.

Bug 991485

Change-Id: Ic5ed9b2143650a07528189c80c5b6b8b8a9657c7
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/105398
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
GVS: Gerrit_Virtual_Submit
asoc: codecs: ALC5639/40: Change to reduce codec pwr in lp0

Bug 964287

1) Add support for resetting the codec while entering in lp0
   state to save codec power in lpo for KAI.
2) Fix for cache sync.
3) Add index sync functionality.

Change-Id: I04039eb55944bfe7f06e6a1405ac3c810c5688a1
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/104480
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
video: tegra: host: Use correct units in default timeout

Convert the jiffies to msecs when assigning a channel the default
timeout.

Change-Id: If9b6fb7c695e9621a0c50d99d4d1362b6dd214b6
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/105022
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
PM QoS: Set minimum online cpus default to zero

Change default PM QoS request value for minimum online cpus
parameter from 1 to 0. This is consistent with all other
PM_QOS_MAX type parameters, and allow to differentiate request
for 1 CPU and "no request".

Change-Id: I548449d0b7a443b77f7f065e1e1f10dffc5587ed
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/102119
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-by: Satya Popuri <spopuri@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
ARM: tegra: power: Go to G-CPU if minimum 1 is requested

On Tegra3 switch and stay on G-CPU if minimum 1 is requested via
PM QoS interface. Allow return to LP-CPU only if request is at
default 0 level.

Change-Id: Ie1a732fe6c6a1dcd2f7e78be01e32dcc5a7993a6
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/102120
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-by: Satya Popuri <spopuri@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
ARM: tegra: ventana: get rid of gpio enable/disable calls

Gpio direction setting and freeing functions will do the needful now.

Bug 984440

Change-Id: I598cfbda4ac1d8fe7a61fe070abc92c5179807e9
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/104493
GVS: Gerrit_Virtual_Submit
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
video: tegra: host: Remove nvhost dsi driver

Remove nvhost dsi driver. Real dsi driver is in tegradc.

Bug 982965

Change-Id: I86044ba586d796ae8d049471a154dcf37bd0e6ed
Reviewed-on: http://git-master/r/104975
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
ASoC: tegra: remove compilation warning

Ensure i2s_client_bits and i2s_audio_bits do not get used
uninitialized.

Bug 949219

Change-Id: Ibdd7f2598278639388d2c2afb5843f2471375ea2
Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/105426
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
serial: tegra: disable interrupt when changing configuration

Disable the interrupts when the baudrate or any uart
configuration. This will avoid the interrupt to be call
when configuration is getting change.

bug 984164
bug 969087

Change-Id: Id008964773237726a0ec4a04c428d3975bf3ebd9
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/104476
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Yu (Engrg-SW) <davyu@nvidia.com>
Tested-by: David Yu (Engrg-SW) <davyu@nvidia.com>
arm: tegra: pci: Support for dock hot plug

PCIE dock detection is done using GPIO for cardhu
e1291 board. Currently supporting only hotplug
disconnect when all pcie devices will be stopped
and will not work on hotplug connect later.

Bug 912743
Bug 955043
Bug 946385

Change-Id: Ibb2869c12e193be5e6e7e057e149e7699598a061
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/87315
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
ARM: tegra: kai: Remove tegra_gpio_enable/disable

Removing tegra_gpio_enable and disable calls
from board files as they are supported thorugh
set direction calls in the driver

Bug 984439

Change-Id: I4ec51c8eb68c373b7cec6903bf52539cd520b227
Reviewed-on: http://git-master/r/102813
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
video: tegra: Config option for cache maint by set/ways.

Add config option to enable/disable cache maintenance by set/ways.

Change-Id: Ie795e19650b2c05cd4789dbc1e8f04f9edc70bf1
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/104290
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
arm: tegra: Enable config NVMAP_CACHE_MAINT_BY_SET_WAYS.

Change-Id: Ia6dccfbd0464bc088dfcb05cc16e7f2ad35a9783
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/104291
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
ARM: Tegra: changed pingroups

Changed pingroups with proper bit fields
provided in TRM.

Bug 978870

Change-Id: Ie02ff14448103c70e27149ac95cd487d33ab52c0
Signed-off-by: Mohit Kataria <mkataria@nvidia.com>
Reviewed-on: http://git-master/r/103353
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
ARM: tegra: cleanup wake header usage

Removed unused wake header file from Tegra board files

bug 980993

Change-Id: I61d919a2dc5b98caaca612b990fd1a7d06e76ae2
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/103622
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>