]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mgag200: Abstract pixel PLL via struct mgag200_pll
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 14 Jul 2021 14:22:37 +0000 (16:22 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Sun, 8 Aug 2021 18:14:05 +0000 (20:14 +0200)
commit61633faf699b6c7061c37ac5ac51f0cc28338e8c
tree1e63208d408a59cc7b451ca775f8a88e2ec4a250
parentfe1b416d94da80552a9846541bb51ed6a77dfe72
drm/mgag200: Abstract pixel PLL via struct mgag200_pll

Move all PLL compute and update functions into mgag200_pll.c. No
functional changes to the rsp algorithms.

Introduce struct mgag200_pll and mgag200_pll_funcs. The data strutures
abstract the details of each revision's PLL. Perform calls to compute
and update functionality via function pointers. Init the PLL once as
part of the driver initialization.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210714142240.21979-11-tzimmermann@suse.de
drivers/gpu/drm/mgag200/Makefile
drivers/gpu/drm/mgag200/mgag200_drv.h
drivers/gpu/drm/mgag200/mgag200_mode.c
drivers/gpu/drm/mgag200/mgag200_pll.c [new file with mode: 0644]