drm/mcde: Fix frame sync setup for video mode panels
The MCDE driver differentiates only between "te_sync" (for hardware TE0 sync) and software sync (i.e. manually triggered updates) at the moment. However, none of these options work correctly for video mode panels. Therefore, we need to make some changes to make them work correctly: - Select hardware sync coming from the (DSI) formatter. - Keep the FIFO permanently enabled (otherwise MCDE will stop feeding data to the panel). - Skip manual software sync (this is not necessary in video mode). Automatically detect if the connected panel is using video mode and enable the necessary changes in that case. Signed-off-by: Stephan Gerhold <stephan@gerhold.net> Tested-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20191106165835.2863-3-stephan@gerhold.net
This commit is contained in:

committed by
Linus Walleij

父節點
768859c239
當前提交
d920e8da3d
@@ -331,8 +331,6 @@ static int mcde_probe(struct platform_device *pdev)
|
||||
drm->dev_private = mcde;
|
||||
platform_set_drvdata(pdev, drm);
|
||||
|
||||
/* Enable use of the TE signal and interrupt */
|
||||
mcde->te_sync = true;
|
||||
/* Enable continuous updates: this is what Linux' framebuffer expects */
|
||||
mcde->oneshot_mode = false;
|
||||
drm->dev_private = mcde;
|
||||
|
Reference in New Issue
Block a user