Commit 46c15a4f authored by Marvin Lin's avatar Marvin Lin Committed by Hans Verkuil
Browse files

media: nuvoton: Add driver for NPCM video capture and encoding engine



Add driver for Video Capture/Differentiation Engine (VCD) and Encoding
Compression Engine (ECE) present on Nuvoton NPCM SoCs. As described in
the datasheet NPCM750D_DS_Rev_1.0, the VCD can capture frames from
digital video input and compare two frames in memory, and then the ECE
can compress the frame data into HEXTILE format. This driver implements
V4L2 interfaces and provides user controls to support KVM feature, also
tested with VNC Viewer ver.6.22.826 and openbmc/obmc-ikvm.

Signed-off-by: default avatarMarvin Lin <milkfafa@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent 1568583b
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -2480,6 +2480,18 @@ F: drivers/rtc/rtc-nct3018y.c
F:	include/dt-bindings/clock/nuvoton,npcm7xx-clock.h
F:	include/dt-bindings/clock/nuvoton,npcm845-clk.h
ARM/NUVOTON NPCM VIDEO ENGINE DRIVER
M:	Joseph Liu <kwliu@nuvoton.com>
M:	Marvin Lin <kflin@nuvoton.com>
L:	linux-media@vger.kernel.org
L:	openbmc@lists.ozlabs.org (moderated for non-subscribers)
S:	Maintained
F:	Documentation/devicetree/bindings/media/nuvoton,npcm-ece.yaml
F:	Documentation/devicetree/bindings/media/nuvoton,npcm-vcd.yaml
F:	Documentation/userspace-api/media/drivers/npcm-video.rst
F:	drivers/media/platform/nuvoton/
F:	include/uapi/linux/npcm-video.h
ARM/NUVOTON WPCM450 ARCHITECTURE
M:	Jonathan Neuschäfer <j.neuschaefer@gmx.net>
L:	openbmc@lists.ozlabs.org (moderated for non-subscribers)
+1 −0
Original line number Diff line number Diff line
@@ -73,6 +73,7 @@ source "drivers/media/platform/intel/Kconfig"
source "drivers/media/platform/marvell/Kconfig"
source "drivers/media/platform/mediatek/Kconfig"
source "drivers/media/platform/microchip/Kconfig"
source "drivers/media/platform/nuvoton/Kconfig"
source "drivers/media/platform/nvidia/Kconfig"
source "drivers/media/platform/nxp/Kconfig"
source "drivers/media/platform/qcom/Kconfig"
+1 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@ obj-y += intel/
obj-y += marvell/
obj-y += mediatek/
obj-y += microchip/
obj-y += nuvoton/
obj-y += nvidia/
obj-y += nxp/
obj-y += qcom/
+15 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only

comment "Nuvoton media platform drivers"

config VIDEO_NPCM_VCD_ECE
	tristate "Nuvoton NPCM Video Capture/Encode Engine driver"
	depends on V4L_PLATFORM_DRIVERS
	depends on VIDEO_DEV
	select VIDEOBUF2_DMA_CONTIG
	help
	  Support for the Video Capture/Differentiation Engine (VCD) and
	  Encoding Compression Engine (ECE) present on Nuvoton NPCM SoCs.
	  The VCD can capture a frame from digital video input and compare
	  two frames in memory, and then the ECE can compress the frame
	  data into HEXTILE format.
+2 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
obj-$(CONFIG_VIDEO_NPCM_VCD_ECE) += npcm-video.o
Loading