: rockchip/rga: v4l2 m2m support
Subsystems (2)
PATCH v3 2/5 : rockchip/rga: v4l2 m2m support
Rockchip RGA is a separate 2D raster graphic acceleration unit. It accelerates 2D graphics operations, such as point/line drawing, image scaling, rotation, BitBLT, alpha blending and image blur/sharpness
The drvier is mostly based on s5p-g2d v4l2 m2m driver And supports various operations from the rendering pipeline.
- copy
- fast solid color fill
- rotation
- flip
- alpha blending
The code in rga-hw.c is used to configure regs accroding to operations The code in rga-buf.c is used to create (1-Level)mmu table for RGA
--- drivers/media/platform/Kconfig | 11 + drivers/media/platform/Makefile | 2 + drivers/media/platform/rockchip-rga/Makefile | 3 + drivers/media/platform/rockchip-rga/rga-buf.c | 141 ++++ drivers/media/platform/rockchip-rga/rga-hw.c | 650 +++++++++++++++++ drivers/media/platform/rockchip-rga/rga-hw.h | 437 ++++++++++++ drivers/media/platform/rockchip-rga/rga.c | 987 ++++++++++++++++++++++++++ drivers/media/platform/rockchip-rga/rga.h | 110 +++ 8 files changed, 2341 insertions(+) create mode 100644 drivers/media/platform/rockchip-rga/Makefile create mode 100644 drivers/media/platform/rockchip-rga/rga-buf.c create mode 100644 drivers/media/platform/rockchip-rga/rga-hw.c create mode 100644 drivers/media/platform/rockchip-rga/rga-hw.h create mode 100644 drivers/media/platform/rockchip-rga/rga.c create mode 100644 drivers/media/platform/rockchip-rga/rga.h
drivers/media/platform/Kconfig +11 -0
@@ -411,6 +411,17 @@ config VIDEO_RENESAS_VSP1 To compile this driver as a module, choose M here: the module will be called vsp1. +config VIDEO_ROCKCHIP_RGA + tristate "Rockchip Raster 2d Grapphic Acceleration Unit" + depends on VIDEO_DEV && VIDEO_V4L2 && HAS_DMA + depends on ARCH_ROCKCHIP || COMPILE_TEST + select VIDEOBUF2_DMA_SG + select V4L2_MEM2MEM_DEV + default n + ---help--- + This is a v4l2 driver for Rockchip SOC RGA2 + 2d graphics accelerator. + config VIDEO_TI_VPE tristate "TI VPE (Video Processing Engine) driver" depends on VIDEO_DEV && VIDEO_V4L2
drivers/media/platform/Makefile +2 -0
@@ -54,6 +54,8 @@ obj-$(CONFIG_VIDEO_RENESAS_FDP1) += rcar_fdp1.o obj-$(CONFIG_VIDEO_RENESAS_JPU) += rcar_jpu.o obj-$(CONFIG_VIDEO_RENESAS_VSP1) += vsp1/ +obj-$(CONFIG_VIDEO_ROCKCHIP_RGA) += rockchip-rga/ + obj-y += omap/ obj-$(CONFIG_VIDEO_AM437X_VPFE) += am437x/
drivers/media/platform/rockchip-rga/Makefile new file +3 -0
@@ -0,0 +1,3 @@ +rockchip-rga-objs := rga.o rga-hw.o rga-buf.o + +obj-$(CONFIG_VIDEO_ROCKCHIP_RGA) += rockchip-rga.o
drivers/media/platform/rockchip-rga/rga-buf.c new file +141 -0
141 lines not on this page · raw message
drivers/media/platform/rockchip-rga/rga-hw.c new file +650 -0
650 lines not on this page · raw message
drivers/media/platform/rockchip-rga/rga-hw.h new file +437 -0
437 lines not on this page · raw message
drivers/media/platform/rockchip-rga/rga.c new file +987 -0
987 lines not on this page · raw message
drivers/media/platform/rockchip-rga/rga.h new file +110 -0
110 lines not on this page · raw message
Signature · 1 line
2.7.4