From db215075aefad8cca04942bf5affbca63850dbf0 Mon Sep 17 00:00:00 2001 From: Peter Ujfalusi Date: Thu, 18 Aug 2016 13:28:01 +0300 Subject: [PATCH] misc: omap_video_vrfb test for dmaengine conversion HACK Signed-off-by: Peter Ujfalusi --- drivers/misc/Kconfig | 7 + drivers/misc/Makefile | 1 + drivers/misc/ovv_dmaengine.c | 571 +++++++++++++++++++++++++++++++++++ 3 files changed, 579 insertions(+) create mode 100644 drivers/misc/ovv_dmaengine.c diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index 3589583fc4454..59732a4bca4b2 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig @@ -478,6 +478,13 @@ config DMA_BUF_PHYS help Exports CPU physical address of DMA-BUF to user-space. +config OVV_DMAENGINE + tristate "vrfb to dmaengine test" + depends on ARCH_OMAP + default n + ---help--- + To test the move from omap-dma to dmaengine + source "drivers/misc/c2port/Kconfig" source "drivers/misc/eeprom/Kconfig" source "drivers/misc/cb710/Kconfig" diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile index 00940aed435f4..63cec89d56022 100644 --- a/drivers/misc/Makefile +++ b/drivers/misc/Makefile @@ -59,3 +59,4 @@ obj-$(CONFIG_PVPANIC) += pvpanic.o obj-$(CONFIG_HABANA_AI) += habanalabs/ obj-$(CONFIG_XILINX_SDFEC) += xilinx_sdfec.o obj-$(CONFIG_DMA_BUF_PHYS) += dma-buf-phys.o +obj-$(CONFIG_OVV_DMAENGINE) += ovv_dmaengine.o diff --git a/drivers/misc/ovv_dmaengine.c b/drivers/misc/ovv_dmaengine.c new file mode 100644 index 0000000000000..7e9a3f68eddc7 --- /dev/null +++ b/drivers/misc/ovv_dmaengine.c @@ -0,0 +1,571 @@ +/* + * ovv - to move vrfb to dmaengine + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published by + * the Free Software Foundation. + */ +#include +#include +#include +#include +#include