]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
imx-drm: Move IPU_PIX_FMT_GBR24 definition into imx-ipu-v3.h
authorPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 25 Feb 2014 11:43:41 +0000 (12:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Feb 2014 20:41:10 +0000 (12:41 -0800)
The IPU display controller supports a non-standard green-red-blue ordered
format that is used on the connection between IPU display interface 1 and
the TV encoder on i.MX53.
In preparation for the move of IPU core code out of staging, place the
IPU_PIX_FMT_GBR24 definition in imx-ipu-v3.h, so that both the IPU
display interface driver and the TVE encoder driver can access it.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/imx-drm/imx-drm.h
drivers/staging/imx-drm/imx-tve.c
drivers/staging/imx-drm/ipu-v3/imx-ipu-v3.h

index aa21028666896765430cd772eda18fecbb5b7be1..035ab6258ad08aa82b79dc5438ccfdcab45d7a36 100644 (file)
@@ -1,10 +1,6 @@
 #ifndef _IMX_DRM_H_
 #define _IMX_DRM_H_
 
-#include <linux/videodev2.h>
-
-#define IPU_PIX_FMT_GBR24      v4l2_fourcc('G', 'B', 'R', '3')
-
 struct device_node;
 struct drm_crtc;
 struct drm_connector;
index 702c0c3204ed6093849813e810b551f105e6e1f6..50b25f1a85d5280cfcacdcfbdc51f52ec38e01ac 100644 (file)
@@ -31,6 +31,7 @@
 #include <drm/drm_fb_helper.h>
 #include <drm/drm_crtc_helper.h>
 
+#include "ipu-v3/imx-ipu-v3.h"
 #include "imx-drm.h"
 
 #define TVE_COM_CONF_REG       0x00
index 4826b5c0249d1b202cd69b8474d35a2729962c18..c4d14ead5837ce85b0b6fb5064cdca13e9023ab7 100644 (file)
@@ -25,6 +25,8 @@ enum ipuv3_type {
        IPUV3H,
 };
 
+#define IPU_PIX_FMT_GBR24      v4l2_fourcc('G', 'B', 'R', '3')
+
 /*
  * Bitfield of Display Interface signal polarities.
  */