Skip to content
Commit f34e7fc2 authored by Mark Kettenis's avatar Mark Kettenis Committed by Anatolij Gustschin
Browse files

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: 1feed358 ("sunxi: video: HDMI: Fix clock setup")

Signed-off-by: default avatarMark Kettenis <kettenis@openbsd.org>
parent d2a8271c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment