Skip to content

Commit babde1c

Browse files
snawrockiMauro Carvalho Chehab
authored andcommitted
[media] V4L: Add driver for S3C24XX/S3C64XX SoC series camera interface
This patch adds V4L2 driver for Samsung S3C24XX/S3C64XX SoC series camera interface. The driver exposes a subdev device node for CAMIF pixel resolution and crop control and two video capture nodes - for the "codec" and "preview" data paths. It has been tested on Mini2440 (s3c2440) and Mini6410 (s3c6410) board with gstreamer and mplayer. Signed-off-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com> Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com> Signed-off-by: Andrey Gusakov <dron0gus@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
1 parent d033a30 commit babde1c

File tree

9 files changed

+3665
-0
lines changed

9 files changed

+3665
-0
lines changed

drivers/media/platform/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,18 @@ config VIDEO_OMAP3_DEBUG
109109
---help---
110110
Enable debug messages on OMAP 3 camera controller driver.
111111

112+
config VIDEO_S3C_CAMIF
113+
tristate "Samsung S3C24XX/S3C64XX SoC Camera Interface driver"
114+
depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API
115+
depends on (PLAT_S3C64XX || PLAT_S3C24XX) && PM_RUNTIME
116+
select VIDEOBUF2_DMA_CONTIG
117+
---help---
118+
This is a v4l2 driver for s3c24xx and s3c64xx SoC series camera
119+
host interface (CAMIF).
120+
121+
To compile this driver as a module, choose M here: the module
122+
will be called s3c-camif.
123+
112124
source "drivers/media/platform/soc_camera/Kconfig"
113125
source "drivers/media/platform/s5p-fimc/Kconfig"
114126
source "drivers/media/platform/s5p-tv/Kconfig"

drivers/media/platform/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ obj-$(CONFIG_VIDEO_CODA) += coda.o
2727

2828
obj-$(CONFIG_VIDEO_MEM2MEM_DEINTERLACE) += m2m-deinterlace.o
2929

30+
obj-$(CONFIG_VIDEO_S3C_CAMIF) += s3c-camif/
3031
obj-$(CONFIG_VIDEO_SAMSUNG_S5P_FIMC) += s5p-fimc/
3132
obj-$(CONFIG_VIDEO_SAMSUNG_S5P_JPEG) += s5p-jpeg/
3233
obj-$(CONFIG_VIDEO_SAMSUNG_S5P_MFC) += s5p-mfc/
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Makefile for s3c244x/s3c64xx CAMIF driver
2+
3+
s3c-camif-objs := camif-core.o camif-capture.o camif-regs.o
4+
5+
obj-$(CONFIG_VIDEO_S3C_CAMIF) += s3c-camif.o

0 commit comments

Comments
 (0)