drm/mgag200: vga-bmc: Control CRTC VIDRST flag from encoder
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 5 Aug 2024 13:05:59 +0000 (15:05 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 9 Aug 2024 06:13:47 +0000 (08:13 +0200)
commit9d09cac47de5358ace64dddd14278fea002e68c3
tree47c1baef2f31f1caf1eaba3ba1644aed9bf734a5
parentdc06efbb7934405461d95bba5b702849058424a4
drm/mgag200: vga-bmc: Control CRTC VIDRST flag from encoder

Control the VIDRST pin from the VGA-BMC encoder's atomic_check and
remove the respective code from CRTC. Makes the VIDRST functionality
fully composable.

The VIDRST pin allows an external clock source to control the SYNC
signals of the Matrox chip. The functionality is part of the CRTC,
but depends on the presence of the clock source. This is the case for
some BMCs, so control the pin from the VGA-BMC output.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240805130622.63458-4-tzimmermann@suse.de
drivers/gpu/drm/mgag200/mgag200_mode.c
drivers/gpu/drm/mgag200/mgag200_vga_bmc.c