aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-bridge.h
diff options
context:
space:
mode:
authorHans Verkuil <[email protected]>2017-12-15 16:21:50 +0100
committerMaxime Ripard <[email protected]>2017-12-15 22:24:03 +0100
commitcaea4f384858ee7861367920df36995e7acfe160 (patch)
tree65b7874cc1664af83df979e728ea7658dc9c8812 /include/linux/fpga/fpga-bridge.h
parentbd36d3bab2e3d08f80766c86487090dbceed4651 (diff)
drm/sun4i: validate modes for HDMI
When I connected my cubieboard running 4.15-rc1 to my 4k display I got no picture. Some digging found that there is no check against the upper pixelclock limit of the HDMI output, so X selects a 4kp60 format at 594 MHz, which obviously won't work. The patch below adds a check for the upper bound of what this hardware can do, and it checks if the requested tmds clock can be obtained. It also allows for the +/- 0.5% pixel clock variation that the HDMI spec permits. That code is based on commit 22d0be2a557e ("drm: arcpgu: Allow some clock deviation in crtc->mode_valid() callback") from Jose Abreu for drm/arc. Signed-off-by: Hans Verkuil <[email protected]> Thanks-to: Jose Abreu <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions