summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/armada/armada_plane.c
Commit message (Collapse)AuthorAgeFilesLines
* drm/armada: remove unnecessary armada_plane structureRussell King2018-07-301-14/+3Star
| | | | | | | We no longer require a private armada_plane structure, so eliminate it, and use the drm_plane structure directly. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
* drm/armada: update primary framebuffer parameters on mode changeRussell King2018-07-301-2/+4
| | | | | | | | The framebuffer base address and toggling mode needs to be updated when the interlaced flag for mode changes is updated. Arrange to reprogram these parameters when only the mode has changed. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
* drm/armada: switch primary plane to atomic modesetRussell King2018-07-301-2/+2
| | | | | | | | Switch the primary plane away from the transitional helpers, and use the atomic helpers instead to implement the legacy set_plane ioctl call for this plane. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
* drm/armada: push interlace calculation into armada_drm_plane_calc()Russell King2018-07-301-18/+20
| | | | | | | | Push the interlaced frame calculation down into armada_drm_plane_calc() which needs to apply the same correction for both the overlay and primary planes. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
* drm/armada: provide pitches from armada_drm_plane_calc_addrs()Russell King2018-07-301-8/+14
| | | | | | | | Provide the framebuffer pitches from armada_drm_plane_calc_addrs() as well as the base addresses for each plane. Since this is now about more than just addresses, rename to armada_drm_plane_calc(). Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
* drm/armada: pass plane state into armada_drm_plane_calc_addrs()Russell King2018-07-301-13/+12Star
| | | | | | | | | armada_drm_plane_calc_addrs() gets all its information from the plane state, so it makes sense to pass the plane state pointer down into this function, rather than extracting the information in identical ways, sometimes a couple of layers up. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
* drm/armada: move plane works to overlayRussell King2018-07-301-6/+0Star
| | | | | | Only overlay makes use of these now, so move these to the overlay code. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
* drm/armada: move primary plane to separate fileRussell King2018-07-301-0/+297
Split out the primary plane support; this is now entirely separate from the CRTC support. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>