drm/ast: Move SIL164-based connector code into separate helpers
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 7 Feb 2022 14:15:44 +0000 (15:15 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 8 Feb 2022 12:40:18 +0000 (13:40 +0100)
commit5e78d59a1ead969669f64dde4245cfa65b7cc4a9
tree22fc8ece37852936e7e7387e6c7c2961ebfaa27a
parent3ab26eddc67a67579a2b52f908b69cbc253f5ff3
drm/ast: Move SIL164-based connector code into separate helpers

Add helpers for initializing SIL164-based connectors. These used to be
handled by the VGA connector code. But SIL164 provides output via DVI-I,
so set the encoder and connector types accordingly.

If a SIL164 chip has been detected, ast will now create a DVI-I
connector instead of a VGA connector.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220207141544.30015-10-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_mode.c