[9610] fimc-is2: add camif_mux_val for set Defenderault mux of csis, pafstat, dma
authorDohyun Kim <dh5.kim@samsung.com>
Mon, 18 Feb 2019 05:56:46 +0000 (14:56 +0900)
committerlingsen1 <lingsen1@lenovo.com>
Mon, 10 Jun 2019 03:21:08 +0000 (11:21 +0800)
PR JIRA ID: CPR-708

Change-Id: Ib2a5eb430c01d3adaab8a740b0985a6cec28ddf2
Signed-off-by: Dohyun Kim <dh5.kim@samsung.com>
drivers/media/platform/exynos/fimc-is2/fimc-is-dt.c
drivers/media/platform/exynos/fimc-is2/include/exynos-fimc-is-sensor.h

index 15661d233481c1ad9a57d63119cf7cf1656a6f91..17f33e678463e4d6a233ef911979a19bb096c829 100644 (file)
@@ -359,6 +359,10 @@ int fimc_is_sensor_parse_dt(struct platform_device *pdev)
                probe_info("skip multi_ch bool data read (%d)", ret);
        }
 
+       ret = of_property_read_u32(dnode, "camif_mux_val", &pdata->camif_mux_val);
+       if (ret)
+               probe_info("skip camif sysreg mux default value read (%d)", ret);
+
        elems = of_property_count_u32_elems(dnode, "dma_ch");
        if (elems >= CSI_VIRTUAL_CH_MAX) {
                if (elems % CSI_VIRTUAL_CH_MAX) {
index b4c908fd5ccfa596fefb8162ff02347fe03d93c5..9c393725fb20c58f07f027fca86d720bcb0e0768 100644 (file)
@@ -363,6 +363,7 @@ struct exynos_platform_fimc_is_sensor {
        unsigned long internal_state;
        u32 csi_mux;
        u32 multi_ch;
+       u32 camif_mux_val;
 };
 
 int exynos_fimc_is_sensor_iclk_cfg(struct device *dev,