提交 795f7ab3 编写于 作者: B Boris Brezillon

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: NBoris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: NThierry Reding <treding@nvidia.com>
上级 b5571e9d
...@@ -61,6 +61,8 @@ struct panel_desc { ...@@ -61,6 +61,8 @@ struct panel_desc {
unsigned int disable; unsigned int disable;
unsigned int unprepare; unsigned int unprepare;
} delay; } delay;
u32 bus_format;
}; };
struct panel_simple { struct panel_simple {
...@@ -111,6 +113,9 @@ static int panel_simple_get_fixed_modes(struct panel_simple *panel) ...@@ -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.bpc = panel->desc->bpc;
connector->display_info.width_mm = panel->desc->size.width; connector->display_info.width_mm = panel->desc->size.width;
connector->display_info.height_mm = panel->desc->size.height; 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; return num;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册