diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-08-24 00:23:53 +0300 |
---|---|---|
committer | Paul Cercueil <paul@crapouillou.net> | 2019-08-29 11:58:19 +0200 |
commit | 6a87d4ea94b0a6a998ca009f11c5e7ffbf7ebc90 (patch) | |
tree | 54104de820cef817a68ce6843aa8c110dbf374f2 | |
parent | 3ef2f119bd3edf12469632629d5ae33f255dbaa5 (diff) |
drm/ingenic: Hardcode panel type to DPI
The ingenic driver supports DPI panels only at the moment, so hardcode
their type to DPI instead of Unknown.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20190823212353.29369-1-laurent.pinchart@ideasonboard.com
# *** extracted tags ***
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
-rw-r--r-- | drivers/gpu/drm/ingenic/ingenic-drm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/ingenic/ingenic-drm.c b/drivers/gpu/drm/ingenic/ingenic-drm.c index 1daa1378fc36..d60f23fd69be 100644 --- a/drivers/gpu/drm/ingenic/ingenic-drm.c +++ b/drivers/gpu/drm/ingenic/ingenic-drm.c @@ -676,10 +676,9 @@ static int ingenic_drm_probe(struct platform_device *pdev) return ret; } - if (panel) { + if (panel) bridge = devm_drm_panel_bridge_add(dev, panel, - DRM_MODE_CONNECTOR_Unknown); - } + DRM_MODE_CONNECTOR_DPI); priv->dma_hwdesc = dma_alloc_coherent(dev, sizeof(*priv->dma_hwdesc), &priv->dma_hwdesc_phys, |