drm/sun4i: Rely on dma interconnect for our RAM offset
authorMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 1 Apr 2019 08:56:45 +0000 (10:56 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Thu, 11 Apr 2019 07:22:47 +0000 (09:22 +0200)
commit564d6fd611f9c66dba4a3ad1da7a4589f8eb699a
tree8e1546a4dd5c229f0f94ae63518c17aeec7d779b
parent3bfaf1f7044c6a3b1e00fcad2d0529f0da449d67
drm/sun4i: Rely on dma interconnect for our RAM offset

Now that we can express our DMA topology, rely on those property instead of
hardcoding an offset from the dma_addr_t which wasn't really great.

We still need to add some code to deal with the old DT that would lack that
property, but we move the offset to the DRM device dma_pfn_offset to be
able to rely on just the dma_addr_t associated to the GEM object.

Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/5df781318e7e05f780a11ed243dcf2b9fe8a08cb.1554108995.git-series.maxime.ripard@bootlin.com
drivers/gpu/drm/sun4i/sun4i_backend.c