diff options
author | Dave Airlie <airlied@redhat.com> | 2015-04-13 03:28:57 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2015-04-13 03:28:57 -0400 |
commit | 1d2add28edd268a8290801ccf46b37f6d5239cdb (patch) | |
tree | 534e967b692f816434c00de0893e1089d425ae92 /drivers/gpu/drm/imx/imx-drm-core.c | |
parent | bb1dc08c94ead1b98e750caf535422f79363c1a2 (diff) | |
parent | 5e501ed7253b369a8a9ec553c35238a3d6808f28 (diff) |
Merge tag 'imx-drm-next-2015-03-31' of git://git.pengutronix.de/git/pza/linux into drm-next
imx-drm changes to use media bus formats and LDB drm_panel support
- Add media bus formats needed by imx-drm
- Switch to use media bus formats to describe the pixel format
on the internal parallel bus between display interface and
encoders
- Some preparations for TV Output via TVEv2 on i.MX5
- Add drm_panel support to the i.MX LVDS driver, allow to
determine the bus pixel format from the panel descriptor.
* tag 'imx-drm-next-2015-03-31' of git://git.pengutronix.de/git/pza/linux:
drm/imx: imx-ldb: allow to determine bus format from the connected panel
drm/imx: imx-ldb: reset display clock input when disabling LVDS
drm/imx: imx-ldb: add drm_panel support
drm/imx: consolidate bus format variable names
drm/imx: switch to use media bus formats
Add RGB666_1X24_CPADHI media bus format
Add YUV8_1X24 media bus format
Add BGR888_1X24 and GBR888_1X24 media bus formats
Add LVDS RGB media bus formats
Add RGB444_1X12 and RGB565_1X16 media bus formats
drm/imx: ipuv3-crtc: Allow to divide DI clock from TVEv2
drm/imx: Add support for interlaced scanout
Diffstat (limited to 'drivers/gpu/drm/imx/imx-drm-core.c')
-rw-r--r-- | drivers/gpu/drm/imx/imx-drm-core.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c index db2f5a739e05..74f505b0dd02 100644 --- a/drivers/gpu/drm/imx/imx-drm-core.c +++ b/drivers/gpu/drm/imx/imx-drm-core.c | |||
@@ -103,8 +103,8 @@ static struct imx_drm_crtc *imx_drm_find_crtc(struct drm_crtc *crtc) | |||
103 | return NULL; | 103 | return NULL; |
104 | } | 104 | } |
105 | 105 | ||
106 | int imx_drm_panel_format_pins(struct drm_encoder *encoder, | 106 | int imx_drm_set_bus_format_pins(struct drm_encoder *encoder, u32 bus_format, |
107 | u32 interface_pix_fmt, int hsync_pin, int vsync_pin) | 107 | int hsync_pin, int vsync_pin) |
108 | { | 108 | { |
109 | struct imx_drm_crtc_helper_funcs *helper; | 109 | struct imx_drm_crtc_helper_funcs *helper; |
110 | struct imx_drm_crtc *imx_crtc; | 110 | struct imx_drm_crtc *imx_crtc; |
@@ -116,16 +116,16 @@ int imx_drm_panel_format_pins(struct drm_encoder *encoder, | |||
116 | helper = &imx_crtc->imx_drm_helper_funcs; | 116 | helper = &imx_crtc->imx_drm_helper_funcs; |
117 | if (helper->set_interface_pix_fmt) | 117 | if (helper->set_interface_pix_fmt) |
118 | return helper->set_interface_pix_fmt(encoder->crtc, | 118 | return helper->set_interface_pix_fmt(encoder->crtc, |
119 | interface_pix_fmt, hsync_pin, vsync_pin); | 119 | bus_format, hsync_pin, vsync_pin); |
120 | return 0; | 120 | return 0; |
121 | } | 121 | } |
122 | EXPORT_SYMBOL_GPL(imx_drm_panel_format_pins); | 122 | EXPORT_SYMBOL_GPL(imx_drm_set_bus_format_pins); |
123 | 123 | ||
124 | int imx_drm_panel_format(struct drm_encoder *encoder, u32 interface_pix_fmt) | 124 | int imx_drm_set_bus_format(struct drm_encoder *encoder, u32 bus_format) |
125 | { | 125 | { |
126 | return imx_drm_panel_format_pins(encoder, interface_pix_fmt, 2, 3); | 126 | return imx_drm_set_bus_format_pins(encoder, bus_format, 2, 3); |
127 | } | 127 | } |
128 | EXPORT_SYMBOL_GPL(imx_drm_panel_format); | 128 | EXPORT_SYMBOL_GPL(imx_drm_set_bus_format); |
129 | 129 | ||
130 | int imx_drm_crtc_vblank_get(struct imx_drm_crtc *imx_drm_crtc) | 130 | int imx_drm_crtc_vblank_get(struct imx_drm_crtc *imx_drm_crtc) |
131 | { | 131 | { |