]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mgag200: Initialize each model in separate function
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 1 Jun 2022 11:25:14 +0000 (13:25 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 7 Jun 2022 07:39:44 +0000 (09:39 +0200)
commit21da29b64f81940bf906ad2ac2222f361a339b7d
tree459762d6ff277aae8506efe330425230c6122c25
parent7c74371a40b98bb3be4fd2e4a877de8ab60addd2
drm/mgag200: Initialize each model in separate function

Add a separate initializer function for each model. Add separate
devic structures for G200 and G200SE, which require additional
information.

Also move G200's and G200SE's helpers for reading the BIOS and
version id into model-specific code.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Tested-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220601112522.5774-3-tzimmermann@suse.de
13 files changed:
drivers/gpu/drm/mgag200/Makefile
drivers/gpu/drm/mgag200/mgag200_drv.c
drivers/gpu/drm/mgag200/mgag200_drv.h
drivers/gpu/drm/mgag200/mgag200_g200.c [new file with mode: 0644]
drivers/gpu/drm/mgag200/mgag200_g200eh.c [new file with mode: 0644]
drivers/gpu/drm/mgag200/mgag200_g200eh3.c [new file with mode: 0644]
drivers/gpu/drm/mgag200/mgag200_g200er.c [new file with mode: 0644]
drivers/gpu/drm/mgag200/mgag200_g200ev.c [new file with mode: 0644]
drivers/gpu/drm/mgag200/mgag200_g200ew3.c [new file with mode: 0644]
drivers/gpu/drm/mgag200/mgag200_g200se.c [new file with mode: 0644]
drivers/gpu/drm/mgag200/mgag200_g200wb.c [new file with mode: 0644]
drivers/gpu/drm/mgag200/mgag200_mode.c
drivers/gpu/drm/mgag200/mgag200_pll.c