[RAMEN9610-11073][COMMON] ASoC: abox: change the pad retention setting
authorShinHyung <s47.kang@samsung.com>
Thu, 17 Jan 2019 08:12:15 +0000 (17:12 +0900)
committerhskang <hs1218.kang@samsung.com>
Fri, 18 Jan 2019 07:29:55 +0000 (16:29 +0900)
The reason for setting GPIO_MODE_DISPAUD_SYS_PWR_REG to 0 is
to make GPIO state to a specific value when powering down DISPAUD.
The default value of GPIO_MODE_DISPAUD_SYS_PWR_REG is 0,
so there is no need to set it.

Change-Id: I20832cfdaba9a2f04b0844f77e61b086b756b849
Signed-off-by: ShinHyung <s47.kang@samsung.com>
sound/soc/samsung/abox/abox.c

index 1136c3edf9befa83f8970b2a1d6b4bbb46e4dec0..6d640567bc5827618d38372883af368af45f09d2 100644 (file)
@@ -4806,22 +4806,14 @@ static int abox_cpu_pm_ipc(struct device *dev, bool resume)
 static void abox_pad_retention(bool retention)
 {
        if (retention) {
-#ifndef EMULATOR
-               exynos_pmu_update(GPIO_MODE_ABOX_SYS_PWR_REG, 0x1, 0x1);
-#else
-               update_mask_value(pmu_alive + GPIO_MODE_ABOX_SYS_PWR_REG,
-                               0x1, 0x1);
-#endif
+               pr_debug("%s:Do not need\n", __func__);
        } else {
 #ifndef EMULATOR
                exynos_pmu_update(PAD_RETENTION_ABOX_OPTION,
                                0x10000000, 0x10000000);
-               exynos_pmu_update(GPIO_MODE_ABOX_SYS_PWR_REG, 0x1, 0x1);
 #else
                update_mask_value(pmu_alive + PAD_RETENTION_ABOX_OPTION,
                                0x10000000, 0x10000000);
-               update_mask_value(pmu_alive + GPIO_MODE_ABOX_SYS_PWR_REG,
-                               0x1, 0x1);
 #endif
        }
 }