[COMMON] fimc-is2: added start/stop bcm debug sync with camera
authorEunyoung Lee <ey470.lee@samsung.com>
Wed, 27 Jun 2018 10:03:04 +0000 (19:03 +0900)
committerWooyeon Kim <wooy88.kim@samsung.com>
Fri, 6 Jul 2018 01:43:26 +0000 (10:43 +0900)
Change-Id: I718692c5608277408a7ae77239ceda4bac5508ba
Signed-off-by: Eunyoung Lee <ey470.lee@samsung.com>
drivers/media/platform/exynos/fimc-is2/fimc-is-resourcemgr.c

index 0d9afd29eb47297c1e0599ee561ec34406707154..f1ba5a290f460a0f8ffe812fdc1314a19e3eba54 100644 (file)
 #include <linux/debug-snapshot.h>
 #endif
 
+#ifdef CONFIG_EXYNOS_BCM_DBG_GNR
+#include <soc/samsung/exynos-bcm_dbg.h>
+#endif
+
 #include "fimc-is-resourcemgr.h"
 #include "fimc-is-hw.h"
 #include "fimc-is-debug.h"
@@ -1333,6 +1337,10 @@ int fimc_is_resource_get(struct fimc_is_resourcemgr *resourcemgr, u32 rsc_type)
                        err("fimc_is_resourcemgr_initmem is fail(%d)\n", ret);
                        goto p_err;
                }
+#endif
+#ifdef CONFIG_EXYNOS_BCM_DBG_GNR
+               exynos_bcm_dbg_start();
+               dbgd_resource("exynos bcm debug was started\n");
 #endif
        }
 
@@ -1634,6 +1642,10 @@ int fimc_is_resource_put(struct fimc_is_resourcemgr *resourcemgr, u32 rsc_type)
        if (atomic_read(&core->rsccount) == 1) {
                u32 current_min, current_max;
 
+#ifdef CONFIG_EXYNOS_BCM_DBG_GNR
+               exynos_bcm_dbg_stop(CAMERA_DRIVER);
+               dbgd_resource("exynos bcm debug was stopped\n");
+#endif
 #ifdef ENABLE_DYNAMIC_MEM
                ret = fimc_is_resourcemgr_deinit_dynamic_mem(resourcemgr);
                if (ret)