drm/mgag200: Implement struct drm_crtc_funcs.get_vblank_timestamp
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 18 Jul 2024 10:44:17 +0000 (12:44 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 19 Jul 2024 09:12:19 +0000 (11:12 +0200)
commitd5070c9b29440c270b534bbacd636b8fa558e82b
tree22f78ded94d828b024786a7c6950dd4296e1b703
parent89c6ea2006e2d39b125848fb0195c08fa0b354be
drm/mgag200: Implement struct drm_crtc_funcs.get_vblank_timestamp

Implement struct drm_crtc_funcs.get_vblank_timestamp with the DRM
helper drm_crtc_vblank_helper_get_vblank_timestamp() with its helper
get_scanout_position. Read the scanout position from the MGAREG_VCOUNT
register.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240718104551.575912-8-tzimmermann@suse.de
drivers/gpu/drm/mgag200/mgag200_drv.h
drivers/gpu/drm/mgag200/mgag200_mode.c