OSDN Git Service

media: meson: Add M2M driver for the Amlogic GE2D Accelerator Unit
authorNeil Armstrong <narmstrong@baylibre.com>
Wed, 2 Dec 2020 17:44:15 +0000 (18:44 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 7 Dec 2020 14:05:54 +0000 (15:05 +0100)
commit59a635327ca70de540b4083eeb954ffc7ce9ff94
treeb9308ade6a5f12cabafbb880147fd579a7a65ef3
parent635e51f14476525577f906a998ca8ddf6f252dbb
media: meson: Add M2M driver for the Amlogic GE2D Accelerator Unit

The GE2D is a 2D accelerator with various features like configurable
blitter with alpha blending, frame rotation, scaling, format conversion
and colorspace conversion.

The driver implements a Memory2Memory VB2 V4L2 streaming device permitting:
- 0, 90, 180, 270deg rotation
- horizontal/vertical flipping
- source cropping
- destination compositing
- 32bit/24bit/16bit format conversion

This adds the support for the GE2D version found in the AXG SoCs Family.

The missing features are:
- Source scaling
- Colorspace conversion
- Advanced alpha blending & blitting options

Is passes v4l2-compliance:
SHA: ea16a7ef13a902793a5c2626b0cefc4d956147f3, 64 bits, 64-bit time_t

[hverkuil: add missing linux/bitfield.h include]

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/Kconfig
drivers/media/platform/Makefile
drivers/media/platform/meson/ge2d/Makefile [new file with mode: 0644]
drivers/media/platform/meson/ge2d/ge2d-regs.h [new file with mode: 0644]
drivers/media/platform/meson/ge2d/ge2d.c [new file with mode: 0644]