soc: samsung: pmu: enable AUD power domain before the suspend
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 15 May 2018 11:58:40 +0000 (13:58 +0200)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Thu, 14 Feb 2019 05:57:59 +0000 (14:57 +0900)
PMU system suspend procedure assumes that it has to turn off AUD power
domain and fails if AUD power domain is already turned off. To
make PMU happy enable AUD power domain when configuring suspend PMU
registers.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ieb338eb79b1d99ebd0bccdac837feb88619b2068

drivers/soc/samsung/exynos5433-pmu.c
include/linux/soc/samsung/exynos-regs-pmu.h

index 886324b..e57b9ef 100644 (file)
@@ -13,6 +13,7 @@
 
 static struct exynos_pmu_conf exynos5433_pmu_config[] = {
        /* { .offset = address, .val = { AFTR, LPA, SLEEP } } */
+       { EXYNOS5433_AUD_CONFIGURATION,                         { 0xf, 0xf, 0xf } },
        { EXYNOS5433_ATLAS_CPU0_SYS_PWR_REG,                    { 0x0, 0x0, 0x8 } },
        { EXYNOS5433_DIS_IRQ_ATLAS_CPU0_CENTRAL_SYS_PWR_REG,    { 0x0, 0x0, 0x0 } },
        { EXYNOS5433_ATLAS_CPU1_SYS_PWR_REG,                    { 0x0, 0x0, 0x8 } },
index 6c7a331..449d9c8 100644 (file)
 #define EXYNOS5433_MSCL_OPTION                                 (0x4048)
 #define EXYNOS5433_G3D_OPTION                                  (0x4068)
 #define EXYNOS5433_DISP_OPTION                                 (0x4088)
+#define EXYNOS5433_AUD_CONFIGURATION                           (0x40C0)
 #define EXYNOS5433_AUD_OPTION                                  (0x40C8)
 #define EXYNOS5433_FSYS_OPTION                                 (0x40E8)
 #define EXYNOS5433_BUS2_OPTION                                 (0x4108)