MFC: Added MFC 5.1 V4L2 driver
Subsystems (2)
PATCH v3 3/4 MFC: Added MFC 5.1 V4L2 driver
Multi Format Codec 5.1 is a module available on S5PC110 and S5PC210 Samsung SoCs. Hardware is capable of handling a range of video codecs and this driver provides V4L2 interface for video decoding.
Signed-off-by Kamil Debski <[email protected]>
Signed-off-by Kyungmin Park <[email protected]>
--- drivers/media/video/Kconfig | 8 + drivers/media/video/Makefile | 1 + drivers/media/video/s5p-mfc/Makefile | 3 + drivers/media/video/s5p-mfc/regs-mfc5.h | 323 ++++ drivers/media/video/s5p-mfc/s5p_mfc.c | 2014 ++++++++++++++++++++++++++ drivers/media/video/s5p-mfc/s5p_mfc_common.h | 222 +++ drivers/media/video/s5p-mfc/s5p_mfc_ctrls.h | 173 +++ drivers/media/video/s5p-mfc/s5p_mfc_debug.h | 44 + drivers/media/video/s5p-mfc/s5p_mfc_intr.c | 92 ++ drivers/media/video/s5p-mfc/s5p_mfc_intr.h | 26 + drivers/media/video/s5p-mfc/s5p_mfc_memory.h | 43 + drivers/media/video/s5p-mfc/s5p_mfc_opr.c | 888 ++++++++++++ drivers/media/video/s5p-mfc/s5p_mfc_opr.h | 131 ++ 13 files changed, 3968 insertions(+), 0 deletions(-) create mode 100644 drivers/media/video/s5p-mfc/Makefile create mode 100644 drivers/media/video/s5p-mfc/regs-mfc5.h create mode 100644 drivers/media/video/s5p-mfc/s5p_mfc.c create mode 100644 drivers/media/video/s5p-mfc/s5p_mfc_common.h create mode 100644 drivers/media/video/s5p-mfc/s5p_mfc_ctrls.h create mode 100644 drivers/media/video/s5p-mfc/s5p_mfc_debug.h create mode 100644 drivers/media/video/s5p-mfc/s5p_mfc_intr.c create mode 100644 drivers/media/video/s5p-mfc/s5p_mfc_intr.h create mode 100644 drivers/media/video/s5p-mfc/s5p_mfc_memory.h create mode 100644 drivers/media/video/s5p-mfc/s5p_mfc_opr.c create mode 100644 drivers/media/video/s5p-mfc/s5p_mfc_opr.h
drivers/media/video/Kconfig +8 -0
@@ -1028,4 +1028,12 @@ config VIDEO_SAMSUNG_S5P_FIMC This is a v4l2 driver for the S5P camera interface (video postprocessor) +config VIDEO_SAMSUNG_S5P_MFC + tristate "Samsung S5P MFC 5.1 Video Codec" + depends on VIDEO_V4L2 && CMA + select VIDEOBUF2_CMA + default n + help + MFC 5.1 driver for V4L2. + endif # V4L_MEM2MEM_DRIVERS
drivers/media/video/Makefile +1 -0
@@ -171,6 +171,7 @@ obj-$(CONFIG_VIDEO_SH_MOBILE_CSI2) += sh_mobile_csi2.o obj-$(CONFIG_VIDEO_SH_MOBILE_CEU) += sh_mobile_ceu_camera.o obj-$(CONFIG_VIDEO_OMAP1) += omap1_camera.o obj-$(CONFIG_VIDEO_SAMSUNG_S5P_FIMC) += s5p-fimc/ +obj-$(CONFIG_VIDEO_SAMSUNG_S5P_MFC) += s5p-mfc/ obj-$(CONFIG_ARCH_DAVINCI) += davinci/
drivers/media/video/s5p-mfc/Makefile new file +3 -0
@@ -0,0 +1,3 @@ +obj-$(CONFIG_VIDEO_SAMSUNG_S5P_MFC) := s5p-mfc.o +s5p-mfc-y := s5p_mfc.o s5p_mfc_intr.o s5p_mfc_opr.o +
drivers/media/video/s5p-mfc/regs-mfc5.h new file +323 -0
323 lines not on this page · raw message
drivers/media/video/s5p-mfc/s5p_mfc.c new file +2014 -0
2,014 lines not on this page · raw message
drivers/media/video/s5p-mfc/s5p_mfc_common.h new file +222 -0
222 lines not on this page · raw message
drivers/media/video/s5p-mfc/s5p_mfc_ctrls.h new file +173 -0
173 lines not on this page · raw message
drivers/media/video/s5p-mfc/s5p_mfc_debug.h new file +44 -0
44 lines not on this page · raw message
drivers/media/video/s5p-mfc/s5p_mfc_intr.c new file +92 -0
92 lines not on this page · raw message
drivers/media/video/s5p-mfc/s5p_mfc_intr.h new file +26 -0
@@ -0,0 +1,26 @@ +/* +* drivers/media/video/samsung/mfc5/s5p_mfc_intr.h +* +* Header file for Samsung MFC (Multi Function Codec - FIMV) driver +* It contains waiting functions declarations. +* +* Kamil Debski, Copyright (c) 2010 Samsung Electronics +* http://www.samsung.com/ +* +* 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. +*/ + +#ifndef _S5P_MFC_INTR_H_ +#define _S5P_MFC_INTR_H_ + +#include "s5p_mfc_common.h" + +int s5p_mfc_wait_for_done_ctx (struct s5p_mfc_ctx *ctx, +int command,int interrupt); +int s5p_mfc_wait_for_done_dev (struct s5p_mfc_dev *dev,int command); +void s5p_mfc_clean_ctx_int_flags (struct s5p_mfc_ctx *ctx); +void s5p_mfc_clean_dev_int_flags (struct s5p_mfc_dev *dev); + +#endif /* _S5P_MFC_INTR_H_ */
drivers/media/video/s5p-mfc/s5p_mfc_memory.h new file +43 -0
43 lines not on this page · raw message
drivers/media/video/s5p-mfc/s5p_mfc_opr.c new file +888 -0
41 lines not on this page · raw message
drivers/media/video/s5p-mfc/s5p_mfc_opr.h new file +131 -0
131 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.6.3.3
Part of the diff is not shown here. View the raw message.