media: camss: Enable building
authorTodor Tomov <todor.tomov@linaro.org>
Tue, 8 Aug 2017 13:30:08 +0000 (09:30 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 26 Aug 2017 19:13:11 +0000 (15:13 -0400)
Add Makefile and update platform/Kconfig and platform/Makefile
to enable building of the QCom CAMSS driver.

Signed-off-by: Todor Tomov <todor.tomov@linaro.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/Kconfig
drivers/media/platform/Makefile
drivers/media/platform/qcom/camss-8x16/Makefile [new file with mode: 0644]

index df74fa96229dbb58fde26e1e57ff148b01a4277c..7e7cc49b867400093ba038baf9e14773970f15f4 100644 (file)
@@ -110,6 +110,13 @@ config VIDEO_PXA27x
        ---help---
          This is a v4l2 driver for the PXA27x Quick Capture Interface
 
+config VIDEO_QCOM_CAMSS
+       tristate "Qualcomm 8x16 V4L2 Camera Subsystem driver"
+       depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
+       depends on (ARCH_QCOM && IOMMU_DMA) || COMPILE_TEST
+       select VIDEOBUF2_DMA_SG
+       select V4L2_FWNODE
+
 config VIDEO_S3C_CAMIF
        tristate "Samsung S3C24XX/S3C64XX SoC Camera Interface driver"
        depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API
index a52d7b62292d597914ea0dd099fa96607a18478b..c1ef946bf0321e0f6a2348a42a0f7f81615ebefa 100644 (file)
@@ -85,6 +85,8 @@ obj-$(CONFIG_VIDEO_MEDIATEK_MDP)      += mtk-mdp/
 
 obj-$(CONFIG_VIDEO_MEDIATEK_JPEG)      += mtk-jpeg/
 
+obj-$(CONFIG_VIDEO_QCOM_CAMSS)         += qcom/camss-8x16/
+
 obj-$(CONFIG_VIDEO_QCOM_VENUS)         += qcom/venus/
 
 obj-y                                  += meson/
diff --git a/drivers/media/platform/qcom/camss-8x16/Makefile b/drivers/media/platform/qcom/camss-8x16/Makefile
new file mode 100644 (file)
index 0000000..3c4024f
--- /dev/null
@@ -0,0 +1,11 @@
+# Makefile for Qualcomm CAMSS driver
+
+qcom-camss-objs += \
+               camss.o \
+               camss-csid.o \
+               camss-csiphy.o \
+               camss-ispif.o \
+               camss-vfe.o \
+               camss-video.o \
+
+obj-$(CONFIG_VIDEO_QCOM_CAMSS) += qcom-camss.o