Signed-off-by: stefan <strawberryblack@xxxxxxxxxxxxxx> --- drivers/staging/imx-drm/parallel-display.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/staging/imx-drm/parallel-display.c b/drivers/staging/imx-drm/parallel-display.c index 4ca61af..a67c1ad 100644 --- a/drivers/staging/imx-drm/parallel-display.c +++ b/drivers/staging/imx-drm/parallel-display.c @@ -26,6 +26,8 @@ #include <drm/drm_panel.h> #include <linux/videodev2.h> #include <video/of_display_timing.h> +#include <video/videomode.h> +#include <video/of_videomode.h> #include "imx-drm.h" @@ -80,11 +82,15 @@ static int imx_pd_connector_get_modes(struct drm_connector *connector) if (np) { struct drm_display_mode *mode = drm_mode_create(connector->dev); + struct videomode vm; if (!mode) return -EINVAL; of_get_drm_display_mode(np, &imxpd->mode, OF_USE_NATIVE_MODE); drm_mode_copy(mode, &imxpd->mode); mode->type |= DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, + /* imxpd->mode.flags doesn't contain all flags from dt node */ + of_get_videomode(np, &vm, OF_USE_NATIVE_MODE); + mode->private_flags = vm.flags; drm_mode_probed_add(connector, mode); num_modes++; } -- 2.1.1 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel