msm_fb: display: Use spinlock instead of mutex in vsync timer handler

Use spinlock instead of mutex in vsync timer handler to avoid sleeping
from timer context through mutex locks

Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
Rebasing with CAF
Rebase with CAF
msm_fb: display: Fix 8960 HDMI resolution switch issue

Fix 8960 HDMI resolution switch issue by removing core
reset via clock branches. This helps in retaining the
HDMI PLL register values for subsequent cable
disconnect/connect scenarios.

CRs-Fixed: 296879
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
msm: display: HDMI: ISR not triggered when HPD occurs during power_off

During power off we disable 5v, power down core, by turning off the
TX channels one by one. When a HPD is triggered the driver has a
software debouncing timer during which interrupts are disabled to
be able to read stable HPD status from the register. When HPD is
detected while the core is being turned off/powered down the driver's
software disables the interrupt and this was making the core to go
into off state. So the fix was to keep the interrupt bit enabled through
the register even during the debounce timeout (this doesn't trigger
unnecessary interrupts due to appropriate clearing and masking of HPD
interrupt bits).

Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
msm: display: HDMI: VG2 pipe solid fill color causes MDP to hang

During 3D video playback both VG pipes are used, solid color
fill into VG2 pipe for HDCP compliance purpose causes MDP to hang
instead, we enable Encryption on HDMI TMDS Output
By setting BIT[2] of HDMI_CTRL register to enable encryption on
HDMI TMDS Output.

Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
msm: hdmi: Disable the HDMI driver on APQ8064

Prevent HDMI initialization from running on APQ8064.

Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
msm_fb: display: Fix HDMI clock control during suspend/resume

Fix HDMI clock control during suspend/resume to avoid incorrect
reference counts

CRs-Fixed: 293818
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
msm_fb: [HDMI_COMPLIANCE] Enable Audio for HDMI Compliance

Enable Audio event for NON-HDCP builds required for HDMI Compliance
Cases.

Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org>
msm:display:hdmi: Fix for EDID read/parse block[1]

HDCP enabled DVI monitors with block 0 and block 1 EDID always
switched to 640x480 even though they supported higher resolutions.
This patch reads DTD data from the correct offset from block[1]
and reads correct bits for interlaced format recognition.

CRs-Fixed: 290391
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
msm_fb: HDMI: Support for 480p 16:9 in HDMI Driver

Requirement for customer (Samsung) to have support
for 720x480p 16:9 aspect ratio, prior to this we
supported only 4:3 aspect ratio for 720x480p.
Adding the appropriate Lookup Table changes.

Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
msm: fb: HDMI: Sending AVI Info Frame even if HDCP is disabled

AVI_INFO_FRAME was not getting sent if
CONFIG_FB_MSM_HDMI_MSM_PANEL_HDCP_SUPPORT is enabled
Getting rid of the #ifdef checks around the function call/defn

Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
msm: display: HDMI: Remove audio packet setup for ACP, ISRC

In HDMI driver we are setting audio packet with ACP, ISRC
by default. Removing this setting until end-to-end feature
has been supported.

CRs-Fixed: 297272
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
msm: hdmi: Register device with clock driver and rename clocks

Rename the clocks per the new naming convention under which
similarly named clocks are distinguished between using their
associated device's name and ID.

Change-Id: I35f164e902003b1c3cd7243bc08d00b4c5d37b0c
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>

Conflicts:

	arch/arm/mach-msm/clock-8960.c
	arch/arm/mach-msm/devices-8064.c
Rebase with CAF
msm_fb: display: Add boot param LCDC/MIPI panel detection support

Add boot param LCDC/MIPI panel detection support for automatically
loading selected panels through fastboot command

Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>

Conflicts:

	drivers/video/msm/Kconfig
	drivers/video/msm/Makefile
	drivers/video/msm/lcdc_auo_wvga.c
	drivers/video/msm/lcdc_chimei_wxga.c
	drivers/video/msm/lcdc_samsung_oled_pt.c
	drivers/video/msm/lcdc_samsung_wsvga.c
	drivers/video/msm/mipi_chimei_wxga_pt.c
	drivers/video/msm/mipi_dsi.h
	drivers/video/msm/mipi_novatek_cmd_qhd_pt.c
	drivers/video/msm/mipi_novatek_video_qhd_pt.c
	drivers/video/msm/mipi_renesas_cmd_fwvga_pt.c
	drivers/video/msm/mipi_renesas_video_fwvga_pt.c
	drivers/video/msm/mipi_simulator_video.c
	drivers/video/msm/mipi_toshiba.c
	drivers/video/msm/mipi_toshiba_video_wsvga_pt.c
	drivers/video/msm/mipi_toshiba_video_wvga_pt.c
	drivers/video/msm/msm_fb.c
	drivers/video/msm/tvout_msm.c