From bdffde3695bc165c8ec6ebfe460a16a27e086bfe Mon Sep 17 00:00:00 2001 From: Jaska Uimonen Date: Thu, 13 Apr 2023 15:39:55 +0300 Subject: [PATCH] soc: xtensa: intel_adsp: do power off only with custom pm policy The power off sequence in cavs is meant to be used only by custom pm policy handler thus guard it with proper ifdefs. Signed-off-by: Jaska Uimonen --- soc/xtensa/intel_adsp/cavs/power.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soc/xtensa/intel_adsp/cavs/power.c b/soc/xtensa/intel_adsp/cavs/power.c index 5a80ea8cd5..4758514749 100644 --- a/soc/xtensa/intel_adsp/cavs/power.c +++ b/soc/xtensa/intel_adsp/cavs/power.c @@ -32,7 +32,7 @@ LOG_MODULE_REGISTER(soc); # define SHIM_GPDMA_CLKCTL(x) (SHIM_GPDMA_BASE(x) + 0x4) # define SHIM_CLKCTL_LPGPDMAFDCGB BIT(0) -#ifdef CONFIG_PM +#ifdef CONFIG_PM_POLICY_CUSTOM #define SRAM_ALIAS_BASE 0x9E000000 #define SRAM_ALIAS_MASK 0xFF000000 #define EBB_BANKS_IN_SEGMENT 32 @@ -108,7 +108,7 @@ __weak void pm_state_exit_post_ops(enum pm_state state, uint8_t substate_id) __ASSERT(false, "invalid argument - unsupported power state"); } } -#endif +#endif /* CONFIG_PM_POLICY_CUSTOM */ __imr void power_init(void) {