drm/aspeed: Use dt matching for default register values
authorJoel Stanley <joel@jms.id.au>
Tue, 9 Feb 2021 12:37:34 +0000 (23:07 +1030)
committerJoel Stanley <joel@jms.id.au>
Wed, 10 Feb 2021 00:26:16 +0000 (10:56 +1030)
commitbce724fa58e67d24fe9eddb40ebb665fbe4bd7e8
treea30fd17e9e83b1b33ddc09532b9b64d1de259a49
parent92614ad540171382d856e178cd2073377f2d1a7c
drm/aspeed: Use dt matching for default register values

There are minor differences in the values for the threshold value and
the scan line size between families of ASPEED SoC. Additionally the SCU
registers for the output control and scratch registers differ between
families.

This adds device tree matching to parameterise these values, allowing us
to add support for the AST2400 now, and in the future the AST2600.

Reviewed-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Link: https://patchwork.freedesktop.org/patch/msgid/20210209123734.130483-3-joel@jms.id.au
drivers/gpu/drm/aspeed/aspeed_gfx.h
drivers/gpu/drm/aspeed/aspeed_gfx_crtc.c
drivers/gpu/drm/aspeed/aspeed_gfx_drv.c