Renesas CEU driver
v3 cover Renesas CEU driver
Hello Laurent and Renesas list,
this is new version of Capture Engine Unit driver.
Sending as RFC as the driver has not yet been tested due to the lack of a suitable hardware platform.
This new version is a re-write of the existing and in-tree soc-camera based driver (drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c).
In "RFC v2" I tried to just move the existing driver away from soc-camera framework, but as many of the review comments I have received were directed to code I took from that driver, I ended up rewriting most of that; this new version is effectively a new driver, based on review comments from Laurent on existing and previously sent items.
I have inserted a lot of "annotations" as FIXMEs and TODOs in code (being this an RFC I felt I could go in sketchbook mode a bit more freely), mainly to keep reference of what I have changed from the original driver mostly in HW manipulation sequences, in order not to lose details that could get painful to investigate when testing on an actual platform.
Laurent: I have tried to keep the driver structure as consistent as I could with the version you have already reviewed to ease review of this new one. Hope it doesn't get too confusing...
Thanks
j
Jacopo Mondi (2):
media: platform: soc-camera: Remove SH CEU driver
media: platform: Add Renesas CEU driver
drivers/media/platform/Kconfig | 8 + drivers/media/platform/Makefile | 2 + drivers/media/platform/renesas-ceu.c | 1444 ++++++++++++++++ drivers/media/platform/soc_camera/Kconfig | 10 - drivers/media/platform/soc_camera/Makefile | 1 - .../platform/soc_camera/sh_mobile_ceu_camera.c | 1821 -------------------- 6 files changed, 1454 insertions(+), 1832 deletions(-) create mode 100644 drivers/media/platform/renesas-ceu.c delete mode 100644 drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c
--
2.7.4
RFC v3 1/2 media: platform: soc-camera: Remove SH CEU driver
Remove SH Mobile CEU driver from soc-camera framework
--- drivers/media/platform/soc_camera/Kconfig | 10 - drivers/media/platform/soc_camera/Makefile | 1 - .../platform/soc_camera/sh_mobile_ceu_camera.c | 1821 -------------------- 3 files changed, 1832 deletions(-) delete mode 100644 drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c
drivers/media/platform/soc_camera/Kconfig +0 -10
@@ -17,16 +17,6 @@ config SOC_CAMERA_PLATFORM help This is a generic SoC camera platform driver, useful for testing -config VIDEO_SH_MOBILE_CEU - tristate "SuperH Mobile CEU Interface driver" - depends on VIDEO_DEV && SOC_CAMERA && HAS_DMA && HAVE_CLK - depends on ARCH_SHMOBILE || COMPILE_TEST - depends on HAS_DMA - select VIDEOBUF2_DMA_CONTIG - select SOC_CAMERA_SCALE_CROP - ---help--- - This is a v4l2 driver for the SuperH Mobile CEU Interface - config VIDEO_ATMEL_ISI tristate "ATMEL Image Sensor Interface (ISI) support" depends on VIDEO_DEV && SOC_CAMERA
drivers/media/platform/soc_camera/Makefile +0 -1
@@ -7,4 +7,3 @@ obj-$(CONFIG_SOC_CAMERA_PLATFORM) += soc_camera_platform.o # soc-camera host drivers have to be linked after camera drivers obj-$(CONFIG_VIDEO_ATMEL_ISI) += atmel-isi.o -obj-$(CONFIG_VIDEO_SH_MOBILE_CEU) += sh_mobile_ceu_camera.o
drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c deleted +0 -1821
1,821 lines not on this page · raw message
Signature · 1 line
2.7.4
RFC v3 2/2 media: platform: Add Renesas CEU driver
In reply to Jacopo MondiAdd driver for Renesas Capture Engine Unit (CEU).
--- drivers/media/platform/Kconfig | 8 + drivers/media/platform/Makefile | 2 + drivers/media/platform/renesas-ceu.c | 1525 ++++++++++++++++++++++++++++++++++ 3 files changed, 1535 insertions(+) create mode 100644 drivers/media/platform/renesas-ceu.c
drivers/media/platform/Kconfig +8 -0
@@ -114,6 +114,14 @@ config VIDEO_S3C_CAMIF To compile this driver as a module, choose M here: the module will be called s3c-camif. +config VIDEO_RENESAS_CEU + tristate "Renesas Capture Engine Unit (CEU) driver" + depends on VIDEO_DEV && VIDEO_V4L2 && HAS_DMA + depends on ARCH_SHMOBILE || ARCH_R7S72100 || COMPILE_TEST + select VIDEOBUF2_DMA_CONTIG + ---help--- + This is a v4l2 driver for the Renesas CEU Interface + source "drivers/media/platform/soc_camera/Kconfig" source "drivers/media/platform/exynos4-is/Kconfig" source "drivers/media/platform/am437x/Kconfig"
drivers/media/platform/Makefile +2 -0
@@ -25,6 +25,8 @@ obj-$(CONFIG_VIDEO_CODA) += coda/ obj-$(CONFIG_VIDEO_SH_VEU) += sh_veu.o +obj-$(CONFIG_VIDEO_RENESAS_CEU) += renesas-ceu.o + obj-$(CONFIG_VIDEO_MEM2MEM_DEINTERLACE) += m2m-deinterlace.o obj-$(CONFIG_VIDEO_S3C_CAMIF) += s3c-camif/
drivers/media/platform/renesas-ceu.c new file +1525 -0
1,525 lines not on this page · raw message
Signature · 1 line
2.7.4