Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 0f88a27e authored by Nishanth Menon's avatar Nishanth Menon Committed by Robert Nelson
Browse files

HACK: drm/tidss: tidss_kms: Call bridge_init and attach encoder


This takes a leaf from drivers/gpu/drm/rockchip/rockchip_rgb.c

Most of the bridge drivers seem to invoke connector_init and
attach_encoder in the modeset_init function. this seems to let the DRM
framework call the necessary hooks to get the bridges to probe
successfully.

This might imply our DSS drivers are'nt compatible with quite a many
bridges out there.. this needs to be dug in deeper.

The current hack is introduced solely for AM625 - unfortunately, that
also means that drivers like SK Sii9022 wont work.

Signed-off-by: default avatarNishanth Menon <nm@ti.com>
parent 23d2e300
Tags
No related merge requests found
......@@ -234,6 +234,23 @@ static int tidss_dispc_modeset_init(struct tidss_device *tidss)
dev_err(tidss->dev, "bridge attach failed: %d\n", ret);
return ret;
}
if (dispc_get_subrev(tidss->dispc) == DISPC_AM625) {
connector = drm_bridge_connector_init(ddev, enc);
if (IS_ERR(connector)) {
dev_err(tidss->dev,
"failed to initialize bridge connector: %pe\n",
connector);
return PTR_ERR(connector);
}
ret = drm_connector_attach_encoder(connector, enc);
if (ret < 0) {
dev_err(tidss->dev,
"failed to attach encoder: %d\n", ret);
return ret;
}
}
}
/* create overlay planes of the leftover planes */
......
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