]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd2525e8333552f68f9775402ce224f4d253eeb0d
treea30fd17e9e83b1b33ddc09532b9b64d1de259a49
parentfb64bf7abe47d22243c0868d1ba558cf1bd44ba1
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