drm/ast: Merge config and chip detection
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 21 Jun 2023 12:53:48 +0000 (14:53 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 27 Jun 2023 12:26:40 +0000 (14:26 +0200)
commit95badecb06657e815e23d12db236493b4ca862a1
treedb17e55fe135b47e8dc1f2a76228be5d46cf1ef0
parent546b959ed7aade7a74fe5874adbd89886c5c6d8a
drm/ast: Merge config and chip detection

Detection of the configuration mode and the chipset model are
linked to each other. One uses values from the other; namely the
PCI device revision and the SCU revision. Merge this code into
a single function.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Tested-by: Jocelyn Falempe <jfalempe@redhat.com> # AST2600
Reviewed-by: Sui Jingfeng <suijingfeng@loongson.cn>
Link: https://patchwork.freedesktop.org/patch/msgid/20230621130032.3568-15-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_main.c