]> git.baikalelectronics.ru Git - uboot.git/commit
sunxi: video: HDMI: Fix LCD clock divider
authorMark Kettenis <kettenis@openbsd.org>
Fri, 9 Aug 2019 20:30:26 +0000 (22:30 +0200)
committerAnatolij Gustschin <agust@denx.de>
Sat, 21 Sep 2019 08:52:57 +0000 (10:52 +0200)
commit3afc1104cf6850e7f83acfa124e5f2b58c40278d
tree9dffe4a70be8518456b17c2bf8d0112486cecb76
parentf281acb7ebf8c713274e97e55553b5cd521f9065
sunxi: video: HDMI: Fix LCD clock divider

Currently we may end up with an LCD clock divider that differs from
the HDMI PHY clock divider if we can't exactly match the pixel clock.
Fix this by using DIV_ROUND_UP to calculate the divider.  This works
since the PLL is chosen such that the resulting pixel clock is
never higher than the requested pixel clock.

Fixes: 0fa4e320dada ("sunxi: video: HDMI: Fix clock setup")
Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
drivers/video/sunxi/sunxi_dw_hdmi.c