summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_dsi.h
diff options
context:
space:
mode:
authorDeepak M2016-02-11 16:03:27 +0100
committerJani Nikula2016-02-19 13:56:05 +0100
commit0aa8bdf25b16f5c9cf6dfbe0efa67ee79ff3e47a (patch)
tree03072d7fc8232ffe053549916d0026929bce8798 /drivers/gpu/drm/i915/intel_dsi.h
parentdrm/i915/bxt: Remove DSP CLK_GATE programming for BXT (diff)
downloadkernel-qcow2-linux-0aa8bdf25b16f5c9cf6dfbe0efa67ee79ff3e47a.tar.gz
kernel-qcow2-linux-0aa8bdf25b16f5c9cf6dfbe0efa67ee79ff3e47a.tar.xz
kernel-qcow2-linux-0aa8bdf25b16f5c9cf6dfbe0efa67ee79ff3e47a.zip
drm/i915/dsi: Using the bpp value wrt the pixel format
The bpp value which is used while calulating the txbyteclkhs values should be wrt the pixel format value. Currently bpp is coming from pipe config to calculate txbyteclkhs. Fix it in this patch. V2: dsi_pixel_format_bpp is used to retrieve the bpp from pixel_format [Review: Jani] Signed-off-by: Deepak M <m.deepak@intel.com> Signed-off-by: Yogesh Mohan Marimuthu <yogesh.mohan.marimuthu@intel.com> Signed-off-by: Ramalingam C <ramalingam.c@intel.com> Tested-by: Mika Kahola <mika.kahola@intel.com> # BYT Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1455203007-10850-1-git-send-email-ramalingam.c@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dsi.h')
-rw-r--r--drivers/gpu/drm/i915/intel_dsi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_dsi.h b/drivers/gpu/drm/i915/intel_dsi.h
index de7be7f3fb42..92f39227b361 100644
--- a/drivers/gpu/drm/i915/intel_dsi.h
+++ b/drivers/gpu/drm/i915/intel_dsi.h
@@ -34,6 +34,8 @@
#define DSI_DUAL_LINK_FRONT_BACK 1
#define DSI_DUAL_LINK_PIXEL_ALT 2
+int dsi_pixel_format_bpp(int pixel_format);
+
struct intel_dsi_host;
struct intel_dsi {