msm_fb: display: wait4vsync after turned off timing generator

When continuous splash is enabled, timing generator is enabled at
bootloader, it then needs to be turned off at mdp4_dsi_video_on()
to switch displayed content from frame buffer. wait4vsync after
timing generator is turned off is necessary to make sure DMAP has
finished fetching splash logo from original splash buffer. Otherwise,
DMAP iommu page fault may happen.

Change-Id: I502631251fa408b21c253e51a1de4d3c0b980978
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
(cherry picked from commit 45ebd1ad0d33ff5361b717fc0bc963510e22a592)
Revert "msm_fb: display: wait4vsync after turned off timing generator"

This reverts commit 8e63d31ef6d1e446826bbf26fe58883448ba7c18.

Change-Id: I490c6667807b23c59d1903c93f765e287a9c0632
Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
Revert "msm_fb : Add timeout while waiting for vsync event"

This reverts commit 9886ab74047ad84e5735fd570ff6d8285220a8e4

Change-Id: Ic6a81c93ae8ba64425f70eba13c47a9cbbd8ebaf

Conflicts:
	drivers/video/msm/mdp4_overlay_dsi_cmd.c
	drivers/video/msm/mdp4_overlay_dsi_video.c
	drivers/video/msm/mdp4_overlay_dtv.c
	drivers/video/msm/mdp4_overlay_lcdc.c
msm: footswitch-8x60: Update bus ports for FS_VED footswitch on MSM8960AB

The video codec's bus ports have changed between 8960 and 8960ab.
Update the footswitch data accordingly, so that the correct ports
are halted and unhalted.

(cherry picked from commit 231cb1b4bec54fbba8210eda28a9622671e0e44f)

Change-Id: Ie13f1b759d4d6c8912516c172bbed56644623ffb
CRs-Fixed: 410449
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/devices-8960.c
msm_fb: display: wfd with vsync driven frame push

To improve performance, hardware vsync event at mdp driver
is passed to framework so that both composition and frame
update are aligned at vsync event. This patch will upgrade
wfd to incorporate vsync driven frame push in consistence
with other interfaces.

Change-Id: If088826ec387446301f1f6acc311d909edb04163
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
CRs-Fixed: 409300

Conflicts:
	drivers/video/msm/mdp4.h
	drivers/video/msm/mdp4_overlay.c
	drivers/video/msm/mdp4_overlay_writeback.c
msm_fb: Wifi display changes for commit ioctl

This change handles panel updates for WFD panel via
overlay_commit interface, along with conglomeration of
some common code across pan_update and overlay_commit ioctls

Change-Id: I092180a4f2be801cd5b9008e99d0b712d089746b
Signed-off-by: Kalyan Thota <kalyant@codeaurora.org>
(cherry picked from commit 9284a2701b6c030184848ba4b37c0b5019f62ed3)
CRs-Fixed: 409300
msm_fb: display: empty pending queue during suspend for wfd

Add the logic for wfd writeback interface. It already presents on
other display interfaces.

Change-Id: I389be77ec18041e260d0e71940586e86f1841ff8
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
(cherry picked from commit ec8922ceea49cfd2e13a3c1ddab9f51e2f13394f)
CRs-Fixed: 409300
msm_fb: display: add config of wb_mux_sel during update

To make sure for each writeback play the reg is configured and avoid
mdp hang.

Change-Id: I29bdc31f27accca84e7add126c1c1e3c8a78fa15
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
(cherry picked from commit 9bc28cf89a1619218fc1193409c4f614d1f826f6)
CRs-Fixed: 409300
msm_fb: display: empty pending queue during suspend

Overlay_play() adds a pipe into pending queue and pan_display()
will commit those pipes to hardware and empty queue. This patch
will make sure queue is empty at suspend so that no unexpected
pipes will be commited to hardware by pan_display() at resume.
Otherwise, iommu page fault may happen.

Conflicts:

	drivers/video/msm/mdp4_overlay_dsi_cmd.c
	drivers/video/msm/mdp4_overlay_dsi_video.c
	drivers/video/msm/mdp4_overlay_dtv.c
	drivers/video/msm/mdp4_overlay_lcdc.c

Change-Id: Iafdf469c6cdbf5d469c9dee114555a8d1adb9c66
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
(cherry picked from commit 1ecd40f19ec16f6f5a8025ae49102b281fe016de)
CRs-Fixed: 409300

Conflicts:
	drivers/video/msm/mdp4_overlay_dsi_cmd.c
msm: 8960ab: Add gfx3d axi clock and port to footswitch data

On 8960ab we need to assert and deassert the resets to the gfx3d
axi clock in addition to the core and interface clocks. Add the
clock to the list so that we reset the gfx core appropriately.

We also need to halt both bus ports, therefore add the second bus
port id.

(cherry picked from commit 9071e51f27a02139a7ea56d839a1d00ca22fa345)

Change-Id: I68a96755a7a6938292868d48ba5978c165722d6f
CRs-Fixed: 428846
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
video: msm: Remove adjustment to MDP revision

Remove the modification of mdp_rev during mdp_probe. Not needed since
board files now have the correct MDP revision data.

(cherry picked from commit bfdabc012c3a91e893fc9ee8473d25ca12dccf5d)

Change-Id: Ifbb799d64e5a988148410a389c78ecca245a9d4b
CRs-Fixed: 417080
Signed-off-by: Carl Vanderlip <carlv@codeaurora.org>

Conflicts:
	drivers/video/msm/mdp.c
board-8960: Update 8960AB and 8064AB SPM sequences.

8960AB and 8064AB have a new revision of the Krait SPM hardware.
The SPM v1.15x on these targets uses a different bit to control the
apc_pdn signal.
Update the SPM sequences for standalone and power collapse to use the
new sequences.
L2 SPM or Krait WFI/Retention sequences are not affected.

CRs-fixed: 419258
Change-Id: I69ee83ef49cc91c160bf3d24de1f72c8b7b374a6
Signed-off-by: Praveen Chidambaram <pchidamb@codeaurora.org>
Signed-off-by: Anji Jonnala <anjir@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/board-8960.c