summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/panel
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@free-electrons.com>2014-07-22 13:33:59 +0200
committerBoris Brezillon <boris.brezillon@free-electrons.com>2015-01-21 09:45:45 +0100
commit795f7ab3a4d71e1f12fc28ec077a286c69a63cdf (patch)
treec16b21ac12e7554fc703eb5b1d55bf93a2a61c1e /drivers/gpu/drm/panel
parentb5571e9df66c1bfb81a4a7947726c3d627d3cb41 (diff)
downloadop-kernel-dev-795f7ab3a4d71e1f12fc28ec077a286c69a63cdf.zip
op-kernel-dev-795f7ab3a4d71e1f12fc28ec077a286c69a63cdf.tar.gz
drm: panel: simple-panel: add support for bus_format retrieval
Provide a way to specify panel requirement in terms of supported media bus format (particularly useful for panels connected to an RGB or LVDS bus). Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Acked-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/panel')
-rw-r--r--drivers/gpu/drm/panel/panel-simple.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index e95385b..4504018 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -61,6 +61,8 @@ struct panel_desc {
unsigned int disable;
unsigned int unprepare;
} delay;
+
+ u32 bus_format;
};
struct panel_simple {
@@ -111,6 +113,9 @@ static int panel_simple_get_fixed_modes(struct panel_simple *panel)
connector->display_info.bpc = panel->desc->bpc;
connector->display_info.width_mm = panel->desc->size.width;
connector->display_info.height_mm = panel->desc->size.height;
+ if (panel->desc->bus_format)
+ drm_display_info_set_bus_formats(&connector->display_info,
+ &panel->desc->bus_format, 1);
return num;
}
OpenPOWER on IntegriCloud