msm8x60_celox: Fix panel init for newer framebuffer drivers

Using pointers (panel_config_gpio & gpio_num) to send this information to the panel driver causes issues (phone doesn't boot & no USB connectivity) when the msm_panel_common_pdata struct in mach/board.h is updated for newer framebuffer drivers.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
msm_fb: Import from CM kernel (cm-11.0 branch)

With 'next' branch msm_fb drivers, there's a strange graphical glitch occurring. Maybe this will fix it.

Signed-off-by: Sultanxda <sultanxda@gmail.com>

Conflicts:
	arch/arm/mach-msm/board-msm8x60_celox.c
	arch/arm/mach-msm/include/mach/board.h
	arch/arm/mach-msm/include/mach/iommu_domains.h
	drivers/video/msm/msm_fb.c
msm_fb: Import from CAF kk_2.7-stable

Signed-off-by: Sultanxda <sultanxda@gmail.com>

Conflicts:
	arch/arm/mach-msm/include/mach/board.h
	drivers/video/msm/hdmi_msm.c
	drivers/video/msm/mdp.c
	drivers/video/msm/mdp4.h
	drivers/video/msm/mdp4_overlay.c
	drivers/video/msm/mdp4_overlay_writeback.c
	drivers/video/msm/mipi_s6e8aa0_hd720.c
	drivers/video/msm/mipi_s6e8aa0_hd720_pt.c
	drivers/video/msm/msm_fb.h
	include/linux/msm_mdp.h
msm_fb: disable unsupported footswitch call

Change-Id: I04006e498bb9b9eb17b914a7447bd35629053b07

Conflicts:
	drivers/video/msm/mdp.c
msm_fb: Sync all iommu references with CAF msm-kk_2.7_rb1.38

Graphical glitches should be gone now.

Signed-off-by: Sultanxda <sultanxda@gmail.com>

Conflicts:
	arch/arm/mach-msm/include/mach/iommu_domains.h
	drivers/video/msm/mdp.c
	drivers/video/msm/mdp4_overlay.c
	drivers/video/msm/mdp4_util.c
	drivers/video/msm/msm_fb.h
msm: display: command mode panel release fence

For command mode panel, release fence should be signaled after the buffer is
sent to the panel.  For performance consideration, allow one more commit to be
queued.  Keep the second kick off as short as enough.

Change-Id: I19af075ebf480d3e81b46b1cd2ef21a2893f143e
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>

Conflicts:
	drivers/video/msm/msm_fb.h
msm: mdp: Change msmfb kworker to kthread

This worker can be a longer running task depending on the number
of frames queued, hence change it to a thread.

Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
Change-Id: Iebf7e95d0486ac43aa6a12d70442936600c0249a
msm: mdp: Update sync pt. behaviour

Add a retire fence and clean up the existing release fence
implementation

Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
Change-Id: Iecf7e95d0786ac43aa6a12d70442936600c0249a
msm/mdp: do not crash (unresolved symbol) when building without writeback_panel
video: msm: Increase MDP clock multiplier

Raise the multiplier from 1.15 to 2 to fix the underrun.

taken from: http://review.cyanogenmod.org/#/c/32315/1
mdp: Fix regulator for 3.0-kernel footswitch drivers

Signed-off-by: Sultanxda <sultanxda@gmail.com>
msm_fb: mdp: Fix compile errors

Signed-off-by: Sultanxda <sultanxda@gmail.com>
mdp4_overlay_lcdc: Set data_en_polarity to 1

Needed for Celox.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
lcdc: Add LD9040 panel power calls

Necessary after implementation of panel undervolt interface.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
msm_fb: Kconfig: Disable LCD panel prompt when FB_MSM_LCDC_LD9040_WVGA_PANEL is selected

Prevents useless display drivers from being built.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
msm_fb: Port HTC MDP color enhancement feature

Ported from HTC One m7-kk-3.4.10-17db3b.

Signed-off-by: Sultanxda <sultanxda@gmail.com>

Conflicts:
	arch/arm/mach-msm/include/mach/board.h
msm_fb: Fix vsync init

From Samsung.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
hercules: Disable FB_MSM_LOGO
msm_fb: HACK: Fix MSMFB_DISPLAY_COMMIT ioctl mismatch

This is a dirty hack to get around MSMFB_DISPLAY_COMMIT ioctl not matching between display HAL and kernel. I'm not sure why they're not matching (maybe I just need to rebuild the ROM). Display HAL is sending command 0x40a46da4 for MSMFB_DISPLAY_COMMIT, so emulate MSMFB_DISPLAY_COMMIT when 0x40a46da4 command is sent.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
msm_rotator: Backport from CAF kk_2.7

*Patched for 3.0 kernels

Signed-off-by: Sultanxda <sultanxda@gmail.com>

Conflicts:
	drivers/video/msm/mdp4_overlay.c
	drivers/video/msm/mdp4_util.c