]> 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)
commit2545ac960364d0395802a27374b46f13827b4cf5
tree1e63208d408a59cc7b451ca775f8a88e2ec4a250
parent8fb60d1bcd90d995af7e7a497795b8d77ad44721
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]