msm_fb: display: Add panel vertical porches into TE logic

Panel vertical porches are not considered into tear check logic
which cause TE can not tolerate panel vsync frequency variation
after panel heating up. This cause mdp to hang up and no screen
updated after that. This patch will have panel vertical porches
considered in during configure TE registers.

Signed-off-by: Kuogee Hsieh <khsieh@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.

Change-Id: I7ff0ac9a9f904777094fdcfebf4e2e94837bf48e
CRs-Fixed: 290391
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
video: msm: Defining functions for MIPI CMD panel

Defining do_histogram and lut_update functions for MIPI CMD panel

CRs-Fixed: 294029
Signed-off-by: Carl Vanderlip <carlv@codeaurora.org>
msm: vidc: Fix performance level computation

The required performance level is rounded off to the incorrect
value due to the order of execution of the operations. Fixed
the issue by ensuring correct order of execution when computing
this value.

Signed-off-by: Deepika Pepakayala <deepikap@codeaurora.org>
Merge changes I9bbf2b6a,If56c4bd6,I7ff0ac9a,I038df8a8 into android-msm-2.6.32

* changes:
  msm: vidc: Fix performance level computation
  video: msm: Defining functions for MIPI CMD panel
  msm:display:hdmi: Fix for EDID read/parse block[1]
  msm_fb: display: Add panel vertical porches into TE logic