msm_fb: display: Wait for overlay done after DSI Video writeback switch

After writeback mode is switched for DSI Video interface, wait for
overlay done for prefill frame to avoid unnecessary fetches from previous
buffers resulting in page faults.

CRs-Fixed: 372389
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
Change-Id: Iacd3775a718fe8e08404b4d119d447a88b628617
msm: clock-8960: Change source of DSI escape clock to byte clock

Changing DSI escape clock source from PXO to byte clock to add
flexibilty for customers. They can modify the escape clock by
changing the pinfo divider.

Change-Id: I3ad072fc524fe5fae9695a55bba24ce23b97efc7
CRs-Fixed: 361022
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm: board-8960-display: Select LiQUID WUXGA/WXGA panel

The LiQUID HW has different versions.
The "2D version" is using a 1366x768 WXGA panel and
the "3D version" is using a 1200x1920 WUXGA panel.

Change-Id: I4e929c0d0ecc080fb078aed7cf8b84dd6f201efa
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm: board-8960-display: Add TN gpios for LiQUID

The 3D module (TN) of LiQUID WUXGA display
is controlled by 2 gpios (enable and mode)
via the liquid-io-expander.

Change-Id: I3ef11c47f9332d22c7a4ea150f456978ebc4927b
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm: board: Guard HDMI regulator_get for errors.

Check if regulator_get returns error, if so, handle it gracefully.
If not handle properly, it will lead to crash. Regulator is required
for HDMI HPD which may differ from target to target. So a check for
perticular regulator should be taken care of.

Change-Id: I50507afec331b2a147ce512cf3b81faa92c37200
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm: display: Use local HDMI as primary flags for 8960/8064 targets

Replace the global flag for HDMI as primary flag by local ones to
8960 and 8064 targets to avoid compilation issues for separate
target configs enabled

CRs-Fixed: 344144
Change-Id: I545cb46f51ed32e036fc2de3946e8a4b7a9d93e4
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm: rotator: Add Rotator device & bus scale data for 8064/8960/8930

Add Rotator device & bus scale data for supporting individual
targets 8960/8064/8930

CRs-Fixed: 344144
Change-Id: I105abad23717f1d42861d9808e0e2d41d776e90c
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm: display: remove framebuffer memory associated with fb1 and fb2

The native fb1 and fb2 framebuffer memory is not used, so the total
framebuffer memory can be reduced to the size only for fb0.

Change-Id: I3e936c7e8dc18f0c70cf13a14eab9d4b8e16c7f2
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
Revert "msm_fb: display: Rename MDP IOMMU context bank names"

This reverts commit 06c0500ae33011d1354dc514dd69f098a1aaf381.

Change-Id: I2b0f1df469c71d48f073bad03e98b1a1f441fd36
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
msm_fb: Provide support for ARGC and CSC for layer mixer 2

MDP 4.4 supports additional layer mixer (LM2) with ARGC and
CSC blocks. Extend existing ARGC and CSC functionality to additional
layer mixer (LM2).

Change-Id: Id9e5d0a80fcd9a6e3b6132b083d8a43450c0efa1
Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org>
msm-fb: display: Tearing issue during video playback

Tearing was observed while playing 1080p H264 videos in
potrait mode. Enabled blt mode check for MIPI command
mode panel as well.

CRs-Fixed: 369365
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
Change-Id: Iac980050e5966db4731240c11e89e1f68118f2b7

Conflicts:

	drivers/video/msm/mdp4_overlay.c
msm_fb: display: Enable mixer1 writeback for video downscale use cases

Underrun occurs while downscaling video data on 8x60. Enable writeback
if video downscale is required.

CRs-fixed: 329630
Change-Id: Ief4b002efd6f4ad9fcfd844325c05de619d47719
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm_fb: display: use spin_lock_bh() when turns on/off dsi_clk

Since dsi clock is accessed by both thread and timer context,
spin_lcok_bh()/spin_unlcok_bh() must be used to serialize accessing
of dsi clock.

Change-Id: Iac80400d871c90413dcbb10a12efc6bc6247e986
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>

Conflicts:

	drivers/video/msm/mdp4.h
	drivers/video/msm/mdp4_overlay_dsi_cmd.c
	drivers/video/msm/mipi_dsi.c
	drivers/video/msm/mipi_dsi_host.c