Commit 443dae09 authored by Tomi Valkeinen's avatar Tomi Valkeinen

drm/omap: dsi: set trans_mode according to client mode_flags

The DSI host driver currently ignores the video mode flags in
client->mode_flags. Add the code to take the transfer mode from client's
mode_flags.
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201215104657.802264-60-tomi.valkeinen@ti.com
parent 4119bd55
......@@ -5137,6 +5137,13 @@ static int omap_dsi_host_attach(struct mipi_dsi_host *host,
dsi->config.lp_clk_min = 7000000; // TODO: get from client?
dsi->config.lp_clk_max = client->lp_rate;
if (client->mode_flags & MIPI_DSI_MODE_VIDEO_BURST)
dsi->config.trans_mode = OMAP_DSS_DSI_BURST_MODE;
else if (client->mode_flags & MIPI_DSI_MODE_VIDEO_SYNC_PULSE)
dsi->config.trans_mode = OMAP_DSS_DSI_PULSE_MODE;
else
dsi->config.trans_mode = OMAP_DSS_DSI_EVENT_MODE;
dsi->ulps_auto_idle = false;
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment