|
@@ -97,8 +97,8 @@ static struct imx_drm_crtc *imx_drm_find_crtc(struct drm_crtc *crtc)
|
|
|
return NULL;
|
|
|
}
|
|
|
|
|
|
-int imx_drm_set_bus_format_pins(struct drm_encoder *encoder, u32 bus_format,
|
|
|
- int hsync_pin, int vsync_pin)
|
|
|
+int imx_drm_set_bus_config(struct drm_encoder *encoder, u32 bus_format,
|
|
|
+ int hsync_pin, int vsync_pin, u32 bus_flags)
|
|
|
{
|
|
|
struct imx_drm_crtc_helper_funcs *helper;
|
|
|
struct imx_drm_crtc *imx_crtc;
|
|
@@ -110,14 +110,17 @@ int imx_drm_set_bus_format_pins(struct drm_encoder *encoder, u32 bus_format,
|
|
|
helper = &imx_crtc->imx_drm_helper_funcs;
|
|
|
if (helper->set_interface_pix_fmt)
|
|
|
return helper->set_interface_pix_fmt(encoder->crtc,
|
|
|
- bus_format, hsync_pin, vsync_pin);
|
|
|
+ bus_format, hsync_pin, vsync_pin,
|
|
|
+ bus_flags);
|
|
|
return 0;
|
|
|
}
|
|
|
-EXPORT_SYMBOL_GPL(imx_drm_set_bus_format_pins);
|
|
|
+EXPORT_SYMBOL_GPL(imx_drm_set_bus_config);
|
|
|
|
|
|
int imx_drm_set_bus_format(struct drm_encoder *encoder, u32 bus_format)
|
|
|
{
|
|
|
- return imx_drm_set_bus_format_pins(encoder, bus_format, 2, 3);
|
|
|
+ return imx_drm_set_bus_config(encoder, bus_format, 2, 3,
|
|
|
+ DRM_BUS_FLAG_DE_HIGH |
|
|
|
+ DRM_BUS_FLAG_PIXDATA_NEGEDGE);
|
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(imx_drm_set_bus_format);
|
|
|
|