]> 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)
commit4f582f6e721867560287123a0424b910efa4ecb3
tree32f52236529daba55e66eae88cd9d44dfca74e18
parent8707628561f82649bb1b8bf8ca78a80deadc84af
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