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:
Andrey Borisovich 2023-06-02 13:25:12 +02:00 committed by Anas Nashif
commit 7595cafb02
2 changed files with 11 additions and 0 deletions

View file

@ -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);