From f18b0af31bc50de6febb221bcb268c507b095ce9 Mon Sep 17 00:00:00 2001 From: Marek Szyprowski Date: Tue, 15 May 2018 13:58:40 +0200 Subject: [PATCH] soc: samsung: pmu: enable AUD power domain before the suspend 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 Change-Id: Ieb338eb79b1d99ebd0bccdac837feb88619b2068 --- drivers/soc/samsung/exynos5433-pmu.c | 1 + include/linux/soc/samsung/exynos-regs-pmu.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/soc/samsung/exynos5433-pmu.c b/drivers/soc/samsung/exynos5433-pmu.c index 886324b..e57b9ef 100644 --- a/drivers/soc/samsung/exynos5433-pmu.c +++ b/drivers/soc/samsung/exynos5433-pmu.c @@ -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 } }, diff --git a/include/linux/soc/samsung/exynos-regs-pmu.h b/include/linux/soc/samsung/exynos-regs-pmu.h index 6c7a331..449d9c8 100644 --- a/include/linux/soc/samsung/exynos-regs-pmu.h +++ b/include/linux/soc/samsung/exynos-regs-pmu.h @@ -774,6 +774,7 @@ #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) -- 2.7.4