[COMMON] runtime PM: add bcm function to exynos-pd
authorJaejoon Yoo <joonyj7.yoo@samsung.com>
Fri, 22 Jun 2018 07:33:04 +0000 (16:33 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Mon, 23 Jul 2018 08:04:39 +0000 (17:04 +0900)
Change-Id: I8961c4014517688e94041b69ec70269f71b192f4
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
drivers/soc/samsung/exynos-pd.c
include/soc/samsung/exynos-pd.h

index fef7fa17475406164c55745feea3d910ece57a4a..ac76e62f006fb1c2aefa2dd1a4b1ae2ce1ec889d 100644 (file)
@@ -73,13 +73,6 @@ static void exynos_pd_power_on_pre(struct exynos_pm_domain *pd)
 
 static void exynos_pd_power_on_post(struct exynos_pm_domain *pd)
 {
-       if (cal_pd_status(pd->cal_pdid)) {
-               if (pd->bcm)
-#if defined(CONFIG_EXYNOS_BCM)
-                       bcm_pd_sync(pd->bcm, true);
-#elif defined(CONFIG_EXYNOS_BCM_DBG)
-                       exynos_bcm_dbg_pd_sync(pd->bcm, true);
-#endif
 }
 
 static void exynos_pd_power_off_pre(struct exynos_pm_domain *pd)
@@ -89,14 +82,6 @@ static void exynos_pd_power_off_pre(struct exynos_pm_domain *pd)
                exynos_g3d_power_down_noti_apm();
        }
 #endif /* CONFIG_EXYNOS_CL_DVFS_G3D */
-       if (cal_pd_status(pd->cal_pdid)) {
-               if (pd->bcm)
-#if defined(CONFIG_EXYNOS_BCM)
-                       bcm_pd_sync(pd->bcm, false);
-#elif defined(CONFIG_EXYNOS_BCM_DBG)
-                       exynos_bcm_dbg_pd_sync(pd->bcm, false);
-#endif
-
        if (!strcmp(pd->name, "pd-dispaud"))
                abox_poweroff();
 }
index 42188d8a0447c32cc6c0bef8033cb56aec0c5f53..319d4f03aae1e6b72d3fd5077459722c5116adaa 100644 (file)
@@ -29,9 +29,7 @@
 #include <linux/debugfs.h>
 
 #include <linux/mfd/samsung/core.h>
-#if defined(CONFIG_EXYNOS_BCM)
-#include <soc/samsung/bcm.h>
-#elif defined(CONFIG_EXYNOS_BCM_DBG)
+#if defined(CONFIG_EXYNOS_BCM_DBG)
 #include <soc/samsung/exynos-bcm_dbg.h>
 #endif
 
@@ -69,9 +67,7 @@ struct exynos_pm_domain {
        int devfreq_index;
        struct mutex access_lock;
        int idle_ip_index;
-#if defined(CONFIG_EXYNOS_BCM)
-       struct bcm_info *bcm;
-#elif defined(CONFIG_EXYNOS_BCM_DBG)
+#if defined(CONFIG_EXYNOS_BCM_DBG)
        struct exynos_bcm_pd_info *bcm;
 #endif
        bool power_down_skipped;