Skip to contentSkip to conversation

media: platform: Move SH CEU away from soc_camera

RFC New Jacopo Mondi 1 participant 1 message Apr 23, 2017 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

RFC 1/1 media: platform: Move SH CEU away from soc_camera

Remove dependencies from soc_camera framework for SH Mobile CEU driver. The driver has not been moved away from soc_camera/ subdirectory to ease review.
---

Hello Renesas list,
this is a first attempt to move SH Mobile CEU driver away from soc_camera
framework.

The driver is -not tested- for lack of available platforms, just compiled in. Sending it as RFC to collect early feedbacks.

The driver lacks functionalities provided by the original one, such as re-scaling and cropping, originally performed using soc_camera provided helpers. Not yet sharing with linux-media but with original driver authors only, and Renesas SoC list.

I will move the driver away from drivers/media/platform/soc_camera later, but to ease review I'm sending it as a patch on top of the currently in-tree one.

I'm particularly interested in feedbacks in size/bus_parameters configuration functions. While I have used most of the original driver code for functions dealing with hardware configuration, those two have changed quite a lot, as the number of FIXMEs and TODOs there show.

Also I have sent this as a single patch. I hope this doesn't make reviewing it too painful.

Thanks
j

 drivers/media/platform/soc_camera/Kconfig          |    2 +-
 .../platform/soc_camera/sh_mobile_ceu_camera.c     | 1972 +++++++++-----------
 2 files changed, 874 insertions(+), 1100 deletions(-)
drivers/media/platform/soc_camera/Kconfig +1 -1
index 86d7478..8a705d2 100644
@@ -19,7 +19,7 @@ config SOC_CAMERA_PLATFORM
 
 config VIDEO_SH_MOBILE_CEU
 	tristate "SuperH Mobile CEU Interface driver"
-	depends on VIDEO_DEV && SOC_CAMERA && HAS_DMA && HAVE_CLK
+	depends on VIDEO_DEV && VIDEO_V4L2 && HAS_DMA && HAVE_CLK
 	depends on ARCH_SHMOBILE || COMPILE_TEST
 	depends on HAS_DMA
 	select VIDEOBUF2_DMA_CONTIG
drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c +873 -1099

2,450 lines not on this page · raw message

--
2.7.4