[Display]: complete the mode config of PIPEA when start os
authorshi yang <yang.a.shi@intel.com>
Thu, 12 Apr 2012 05:12:12 +0000 (13:12 +0800)
committerbuildbot <buildbot@intel.com>
Sat, 14 Apr 2012 10:41:34 +0000 (03:41 -0700)
commit26a00f1ee8f4f274d8a5787a1164961ded546423
tree32c39fcbf21c3e60ea116508f5e66c7279415636
parent55c1ac6df8bfaf210eae8caab9f987d1f69623f6
[Display]: complete the mode config of PIPEA when start os

BZ: 30129

in function of mdfld_crtc_dsi_mode_set,display will set pipe config base
on different Panel. But this don't set when panel first power on.
So we add this config when commit MIPI show.

/* Setup pipe configuration for different panels
 * The formula recommended from hw team is as below:
 * (htotal * 5ns * hdelay) >= 8000ns
 * hdelay is the count of delayed HBLANK scan lines
 * And the max hdelay is 4
 * by programming of PIPE(A/C) CONF bit 28:27:
 * 00 = 1 scan line, 01 = 2 scan line,
 * 02 = 3 scan line, 03 = 4 scan line
 */

Change-Id: If20521d48d83d0925e42c22d50eff20e007b0bd0
Signed-off-by: shi yang <yang.a.shi@intel.com>
Reviewed-on: http://android.intel.com:8080/43220
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Liu, Chuansheng <chuansheng.liu@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/staging/mrst/drv/mdfld_dsi_dpi.c