x3 power: Fix io power detection and add vmmc to ldo3

Change-Id: I3d6da2b0329504750c95d21b515625a6bd921260
Add optimization flags for LGE X3

Change-Id: Ida1ca58ac078dbe59edd35b09735bdae3c869a47
media: video: nvavp: Add option to boost sclk

Audio is glitch is observed if sclk is set to minimun and
display is on. As early suspend functionality is removed,
we need to update the display status using sysfs.

Add sysfs to boost sclk from user space when display is
turned on.

bug 1039961

Change-Id: Ib918b1bae7cdff7d3ea665b4bcf8c5879df50982
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/134394
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Shridhar Rasal <srasal@nvidia.com>
ARM: tegra: Add support for simulation platform

Disable actions that can't be simulated or take a long time on
the simulator.

Change-Id: I97b68d56e6c76ea256555e2389b2e6eae52ecf57
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/77457
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mark Stadler <mastadler@nvidia.com>
Tested-by: Mark Stadler <mastadler@nvidia.com>

Conflicts:
	arch/arm/mach-tegra/include/mach/latency_allowance.h
ARM: tegra: disable powergating on simulation

Change-Id: Ibcf0536bfb882dea1db7f7b61c68e3bbd562a291
Signed-off-by: Jeff Smith <jsmith@nvidia.com>
Reviewed-on: http://git-master/r/101277
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
video: tegra: nvavp: Powergate VDE

Bug 1059487

Change-Id: I55f51064070888007be6978b7317288bf5dc6c31
Signed-off-by: Jaiprakash Khemkar <jkhemkar@nvidia.com>
Reviewed-on: http://git-master/r/147483
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mohan Nimaje <mnimaje@nvidia.com>
Reviewed-by: Chandrakanth Gorantla <cgorantla@nvidia.com>
Reviewed-by: Vinayak Pore <vpore@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Gajanan Bhat <gbhat@nvidia.com>

Conflicts:
	arch/arm/mach-tegra/powergate.c
	drivers/media/video/tegra/nvavp/nvavp_dev.c
ARM: tegra: nvavp: Fix build break for format

Fix build break for wrong printf format specifier on carveout build.

Change-Id: I25ac1d78b85d29584d8363b5431b6124f6f0db93
Signed-off-by: Hiro Sugawara <hsugawara@nvidia.com>
Reviewed-on: http://git-master/r/139119
(cherry picked from commit 627defb796c7dda7c7155446739c5f1235a965ff)
Reviewed-on: http://git-master/r/159484
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
video: tegra: dc: change enable and hotplug_init arguments

pass device as argument for enable and hotplug_init so that it
can be used in board files to get the regulator using device name.

Bug 1154495

Change-Id: Ib549e4d9f2c6eaf4fbcc24851a3866f2fd3cbf84
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/142702
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

Conflicts:
	arch/arm/mach-tegra/board-curacao-panel.c
	arch/arm/mach-tegra/board-dalmore-panel.c
	arch/arm/mach-tegra/board-pluto-panel.c
	drivers/video/tegra/dc/dc.c
video: tegra: dsi: fix unreachable code

fix coverity issue

bug 1046331

Change-Id: I02738f564d91931b299c5edd2c3921ba9ce97d19
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/134761
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
video: tegra: dsi: Panasonic panel bring-up

Fix dsi host and panel related issues.

Reviewed-on: http://git-master/r/133414
(cherry picked from commit f5fdc4a5b18aa74a9499dfe41ce972be09ed7abb)

Change-Id: I7c0eeaa62a19c79c475a5c20562bb98cd89ac441
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/143092
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Conflicts:
	arch/arm/mach-tegra/board-dalmore-panel.c
	drivers/video/tegra/dc/dsi.c
video: tegra: dsi: Disable syncpt use

Use polling instead of syncpt.

Bug 1051903

Reviewed-on: http://git-master/r/134176
(cherry picked from commit 3c7671a1c7a8be7bdfe60e472f0757024400d538)

Change-Id: I2ba45170c804bb20de2da474aaa07040e213741a
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/143128
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Conflicts:
	drivers/video/tegra/dc/dsi.c
ARM: tegra: dsi: Fix panel init sequence

Panel spec recommends delays between each init cmd.
Providing the delay between cmds and increased delay
from sleep to display on

Reviewed-on: http://git-master/r/134360
(cherry picked from commit e314216dac4258e9d8253a3fb9fe264dbd7acdbb)

Change-Id: I0ce03ee8f0d2a10987bce3a9184e3736d5b8c462
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/143138
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Conflicts:
	arch/arm/mach-tegra/board-pluto-panel.c
video: tegra: dsi: Initialize mipi cal registers

Set default value of mipi cal registers to zero.

Reviewed-on: http://git-master/r/134493
(cherry picked from commit bb237898957c7a449801249fd4b8be4aceb96fc9)

Change-Id: I1ade141c851ba2ec85894234664e647b12424c2e
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/143145
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
video: tegra: dc: Fix bootloader to kernel display transition

Bug 1053029

Change-Id: I7e0386f94f305842439884a0dbd549f09b61cde0
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/139571
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/145892
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Conflicts:
	drivers/video/tegra/dc/dsi.c
video: tegra: dc: vfilter memclient only for 2x/3x

Make bandwidth and latency calculations for vfilter a Tegra 2x/3x only feature.

Bug 1055607

Change-Id: I182ce8fb3a0830532f7c8e9132d2d11119cfd009
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/139489
(cherry picked from commit ec4ad6ae4cd03dfb074ec30bc986bf2f59cb813d)
Reviewed-on: http://git-master/r/146976
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
dc: mach-tegra: pass sd settings bl_device_name

We can't always pass the backlight device directly to
nvsd. This change gives the backlight device name
to nvsd (which is known at build time) and then at
runtime can lookup the backlight device.

Bug 1047558

Reviewed-on: http://git-master/r/144241
(cherry picked from commit f9b84c91ebc1d172a3ee9de0e578b0943d2cb13c)

Change-Id: I5c65317336e8f0497d90880e649e2e8cca0a222d
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/147278
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Conflicts:
	arch/arm/mach-tegra/board-dalmore-panel.c
	arch/arm/mach-tegra/board-enterprise-panel.c
	arch/arm/mach-tegra/board-pluto-panel.c
	drivers/video/tegra/dc/nvsd.c
On branch alfs-cm11.0
	modified:   arch/arm/mach-tegra/lge/x3/board-x3-panel.c
Untracked files:
	alf-export.bash
no changes added to commit (use "git add" and/or "git commit -a")
backlight: use kstrtoul()

The usage of simple_strtoul() or strict_strtoul() is not preferred.  Thus,
kstrtoul should be used.

This patch also fixes checkpatch error as follows:
ERROR: space required after that ',' (ctx:VxV)

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
video: backlight: Add backlight_device lookup by name

Added funtionality for backlight_device lookup by name

Bug 1157528

Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/144069
(cherry picked from commit c6243a5f3dab27077240a1a67f15d2cf5080fa02)

Change-Id: I1a778946b4040690ec267b5e36738236a27702da
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/147093
Reviewed-by: Automatic_Commit_Validation_User
video: tegra: dc: use apis to calculate EMC frequency

Use MC api tegra_mc_get_effective_bytes_width to calculate EMC clock.

bug 1167105

Change-Id: I06eee3ced3d54e5699ae84051e4e1a9f548079de
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/167836
Reviewed-by: Automatic_Commit_Validation_User
video: tegra: dc fix bw overflow issue

There is a corner case where bw is larger than ULONG_MAX,
but freq is smaller than ULONG_MAX.
Apply clipping condition to frequency instead of bandwidth.

Bug 1248607

Change-Id: I936d1de3152738cf33f2dfddfc818c394cb82612
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/206904
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>