summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorStefan Eichenberger <stefan.eichenberger@toradex.com>2023-01-27 15:10:55 +0100
committerStefan Eichenberger <eichest@gmail.com>2023-01-28 13:16:30 +0100
commit268a9b96225ebd3bbf9352ee750ca45f7db8c99d (patch)
tree65fc4675e70bde64ae135f3c3fd8250e3cd97474 /drivers
parent9f643a5f7e6c1863ada44ae890ad1f881fb70419 (diff)
drm/imx: lcdifv3: crtc increase pixel clock tolerance to 10%
Set a pixel clock tolerance of 10% for the DSI interface of the i.MX 8MP SoCs. There are some resolutions e.g. 1280x1024@60 Hz that do not work without this commit. Upstream-Status: Pending This driver is not upstream and probably never will. It looks like the function will become part of mxsfb. They don't verify the pixel clock frequency there. Related-to: ELB-4728 Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/imx/lcdifv3/lcdifv3-crtc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/imx/lcdifv3/lcdifv3-crtc.c b/drivers/gpu/drm/imx/lcdifv3/lcdifv3-crtc.c
index 5a7133743850..e594556ffce8 100644
--- a/drivers/gpu/drm/imx/lcdifv3/lcdifv3-crtc.c
+++ b/drivers/gpu/drm/imx/lcdifv3/lcdifv3-crtc.c
@@ -231,9 +231,9 @@ check_pix_clk:
if (rounded_rate <= 0)
return MODE_BAD;
- /* allow +/-0.5% HDMI pixel clock rate shift */
- if (rounded_rate < pclk_rate * 995 / 1000 ||
- rounded_rate > pclk_rate * 1005 / 1000)
+ /* allow +/-10% pixel clock rate shift */
+ if (rounded_rate < pclk_rate * 900 / 1000 ||
+ rounded_rate > pclk_rate * 1100 / 1000)
return MODE_BAD;
return MODE_OK;