]> 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)
commit1f592c3f528c99ed87a3bbb8e7d0a198b2cc2229
tree1e63208d408a59cc7b451ca775f8a88e2ec4a250
parent87171b893fe745836f79d818a41bda5a7b5a89c2
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]