intel_adsp: timer: implemented sys_clock_idle_exit function
Generic header for system clock allows to define a sys_clock_idle_exit function for the clock implementation. Implemented the function in the intel_adsp_timer to reinitialize device driver after the idle exit state. Signed-off-by: Andrey Borisovich <andrey.borisovich@intel.com>
This commit is contained in:
parent
0ace886359
commit
7595cafb02
2 changed files with 11 additions and 0 deletions
|
@ -225,5 +225,14 @@ static int sys_clock_driver_init(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
|
||||
void sys_clock_idle_exit(void)
|
||||
{
|
||||
sys_clock_driver_init();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
SYS_INIT(sys_clock_driver_init, PRE_KERNEL_2,
|
||||
CONFIG_SYSTEM_CLOCK_INIT_PRIORITY);
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include <adsp_memory.h>
|
||||
#include <adsp_imr_layout.h>
|
||||
#include <zephyr/drivers/mm/mm_drv_intel_adsp_mtl_tlb.h>
|
||||
#include <zephyr/drivers/timer/system_timer.h>
|
||||
|
||||
#define LPSRAM_MAGIC_VALUE 0x13579BDF
|
||||
#define LPSCTL_BATTR_MASK GENMASK(16, 12)
|
||||
|
@ -317,6 +318,7 @@ __weak void pm_state_exit_post_ops(enum pm_state state, uint8_t substate_id)
|
|||
imr_layout->imr_state.header.adsp_imr_magic = 0;
|
||||
imr_layout->imr_state.header.imr_restore_vector = NULL;
|
||||
imr_layout->imr_state.header.imr_ram_storage = NULL;
|
||||
sys_clock_idle_exit();
|
||||
}
|
||||
#endif /* CONFIG_ADSP_IMR_CONTEXT_SAVE */
|
||||
soc_cpus_active[cpu] = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue