drm/armada: add plane size/location accessors
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 25 Jan 2019 10:28:20 +0000 (10:28 +0000)
committerRussell King <rmk+kernel@armlinux.org.uk>
Fri, 17 May 2019 11:16:32 +0000 (12:16 +0100)
commit9184ae8db3d563438519cab295c2c9698255ca87
tree3fb3fa9c318346b00409c60ccb906717af1bd0c8
parentad52f53ff4e3167425b4b2195a23b9d2d0d243c6
drm/armada: add plane size/location accessors

Add accessors for getting the register values for the plane from the
plane state.  This will allow us to generate the values when validating
the plane rather than when programming, which allows us to fix the
interlace handling without adding lots of additional handling in the
update functions.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
drivers/gpu/drm/armada/armada_overlay.c
drivers/gpu/drm/armada/armada_plane.c
drivers/gpu/drm/armada/armada_plane.h