[COMMON] fimc-is2: add the maximum of sub-device ch. mode to CSI
authorJeongtae Park <jtp.park@samsung.com>
Mon, 30 Apr 2018 01:08:56 +0000 (10:08 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Mon, 23 Jul 2018 08:05:07 +0000 (17:05 +0900)
Change-Id: If453aff6b5adf672191e8d3118c28928772f83d6
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
drivers/media/platform/exynos/fimc-is2/fimc-is-device-csi.h
drivers/media/platform/exynos/fimc-is2/fimc-is-device-csi_v4.c

index eb9f2434a97c534a27b1453468a867088d75ebe1..672a886d95c9a174d8b0da688f16b357656b279d 100644 (file)
@@ -63,6 +63,7 @@ enum itf_vc_buf_data_type {
 struct fimc_is_device_csi {
        /* channel information */
        u32                             instance;
+       u32                             num_of_scm;
        enum subdev_ch_mode             scm;
        u32 __iomem                     *base_reg;
        u32 __iomem                     *vc_reg[SCM_MAX][CSI_VIRTUAL_CH_MAX];
index 787a50d6101bccd4fbf19fc71ddb1e3221636cf0..e11f22f824047fe7e4f0c7a34456d1c396f69cd9 100644 (file)
@@ -1921,6 +1921,8 @@ int fimc_is_csi_probe(void *parent, u32 instance)
                goto err_get_resource;
        }
 
+       csi->num_of_scm = device->pdata->num_of_ch_mode;
+
        /* VC DMA */
        i = 0;
        while (cnt_resource < num_resource) {