drm/ast: Split ast_set_vbios_mode_info()
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 7 Nov 2019 08:34:00 +0000 (09:34 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 8 Nov 2019 10:03:20 +0000 (11:03 +0100)
commit259d14a76a27eed2828aef5e90b66aee0cb1a19d
tree32f52236529daba55e66eae88cd9d44dfca74e18
parent0d45ad989d0262e4f289600d39d765df0c8871af
drm/ast: Split ast_set_vbios_mode_info()

The implementation of ast_set_vbios_mode() converts a DRM display mode
and framebuffer into an adjusted mode and stores information for the
video BIOS to several scratch regsiters.

Here we split the function into individual functions that do the
conversion, set the VBIOS mode information and format information.
This makes it compatible with support for primary planes and atomic
modesetting.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191107083404.6852-6-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_mode.c