From 2c18e69467ec248994cfa12362d59db376174872 Mon Sep 17 00:00:00 2001 From: Meng Mingming Date: Thu, 31 Aug 2017 17:14:06 +0800 Subject: [PATCH] MLK-15321-3 drm/imx: dpu: Add render feature support Implement Blt engine as DRM renderer. Add dpu ioctl to support imx-drm render feature. Signed-off-by: Adrian Negreanu Signed-off-by: Marius Vlad Signed-off-by: Meng Mingming --- drivers/gpu/drm/imx/dpu/Makefile | 3 + drivers/gpu/drm/imx/dpu/dpu-blit.c | 300 +++++++++++++++++++++++++++++ include/uapi/drm/imx_drm.h | 73 +++++++ 3 files changed, 376 insertions(+) create mode 100644 drivers/gpu/drm/imx/dpu/dpu-blit.c create mode 100644 include/uapi/drm/imx_drm.h diff --git a/drivers/gpu/drm/imx/dpu/Makefile b/drivers/gpu/drm/imx/dpu/Makefile index f29915ff8fb8..c09e487aa5c2 100644 --- a/drivers/gpu/drm/imx/dpu/Makefile +++ b/drivers/gpu/drm/imx/dpu/Makefile @@ -2,3 +2,6 @@ ccflags-y += -Idrivers/gpu/drm/imx imx-dpu-crtc-objs := dpu-crtc.o dpu-plane.o dpu-kms.o obj-$(CONFIG_DRM_IMX_DPU) += imx-dpu-crtc.o + +imx-dpu-render-objs := dpu-blit.o +obj-$(CONFIG_DRM_IMX_DPU) += imx-dpu-render.o diff --git a/drivers/gpu/drm/imx/dpu/dpu-blit.c b/drivers/gpu/drm/imx/dpu/dpu-blit.c new file mode 100644 index 000000000000..e2cec9b5fe61 --- /dev/null +++ b/drivers/gpu/drm/imx/dpu/dpu-blit.c @@ -0,0 +1,300 @@ +/* + * Copyright 2017 NXP + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include