diff options
author | Stefan Eichenberger <stefan.eichenberger@toradex.com> | 2023-01-27 14:57:57 +0100 |
---|---|---|
committer | Stefan Eichenberger <eichest@gmail.com> | 2023-01-28 13:15:58 +0100 |
commit | 9f643a5f7e6c1863ada44ae890ad1f881fb70419 (patch) | |
tree | 44de7436d479859cdf8cabc5bdd435c35692c129 /drivers | |
parent | e64d72bccd6a54f6ed4a77d33cfef8a8cc1953cd (diff) |
drm/imx: dw_hdmi-imx: increase pixel clock tolerance to 10%
Set a pixel clock tolerance of 10% for the native HDMI 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
The dw_hdmi-imx.c file is available upstream but they do not verify the
pixel clock frequency. Adding this check would harm more than it solves.
Related-to: ELB-4728
Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/imx/dw_hdmi-imx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/imx/dw_hdmi-imx.c b/drivers/gpu/drm/imx/dw_hdmi-imx.c index 3058268aceb5..5b3c58c7f289 100644 --- a/drivers/gpu/drm/imx/dw_hdmi-imx.c +++ b/drivers/gpu/drm/imx/dw_hdmi-imx.c @@ -197,8 +197,8 @@ static bool imx8mp_hdmi_check_clk_rate(int rate_khz) /* Check hdmi phy pixel clock support rate */ rate = clk_round_rate(imx8mp_clocks[0].clk, rate_khz * 1000); - /* Drop mode if pixelclk generated is more than 6% off */ - if ((rate < rate_khz * 940) || (rate > rate_khz * 1060)) { + /* Drop mode if pixelclk generated is more than 10% off */ + if ((rate < rate_khz * 900) || (rate > rate_khz * 1100)) { pr_info("%s: mode with pixelclk %i kHz dropped\n", __func__, rate_khz); return false; |