]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/ast: Hide Gens 1 to 3 TX detection in branch
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 17 Jan 2025 10:29:10 +0000 (11:29 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 22 Jan 2025 12:52:49 +0000 (13:52 +0100)
commit87478ba50a05a1f44508316ae109622e8a85adc9
treeaa10d750b1cc037c5a594d6408269634c9b1e62e
parent1c6220a3950bd8e60126f5ea234f3f7bd86321b1
drm/ast: Hide Gens 1 to 3 TX detection in branch

Gen7 only supports ASTDP. Gens 4 to 6 support various TX chips,
except ASTDP. These boards detect the TX chips by reading the SoC
scratch register as VGACRD1.

Gens 1 to 3 only support SIL164. These boards read the DVO bit from
VGACRA3. Hence move this test behind a branch, so that it does not
run on later generations.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250117103450.28692-6-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_main.c