mbox series

[0/4] drm: fix cirrus build failure on powerpc

Message ID 20190409115913.3468-1-kraxel@redhat.com (mailing list archive)
Headers show
Series drm: fix cirrus build failure on powerpc | expand

Message

Gerd Hoffmann April 9, 2019, 11:59 a.m. UTC
Turned out to be a bit more difficuilt than just adding the "asm/io.h"
header files.  Not all architectures actually have a __io_virt() macro,
so cirrus can't depend on that.  The drm format helpers have to call
memcpy_toio instead.  So this little series add support for that.

Gerd Hoffmann (4):
  drm: add generic convert_lines() function for format conversions.
  drm: use convert_lines() in xrgb8888_to_rgb565 helpers.
  drm: use convert_lines() in xrgb8888_to_rgb565 helpers.
  drm: add convert_lines_toio() variant, fix cirrus builds on powerpc.

 include/drm/drm_format_helper.h     |   9 +-
 drivers/gpu/drm/cirrus/cirrus.c     |   6 +-
 drivers/gpu/drm/drm_format_helper.c | 329 +++++++++++++++++-----------
 3 files changed, 215 insertions(+), 129 deletions(-)