]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit920b9c8572a5011797862b18442e51d7ba4a9fc0
tree32f52236529daba55e66eae88cd9d44dfca74e18
parent65416999ea5623b97048d4f2cbe00bac06f6e54b
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