kernel-brax3-ubuntu-touch/drivers/misc/mediatek/adsp/adsp_timesync.h
erascape f319b992b1 kernel-5.15: Initial import brax3 UT kernel
* halium configs enabled

Signed-off-by: erascape <erascape@proton.me>
2025-09-23 15:17:10 +00:00

25 lines
535 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2020 MediaTek Inc.
* Author: Celine Liu <Celine.liu@mediatek.com>
*/
#ifndef _ADSP_TIMESYNC_H_
#define _ADSP_TIMESYNC_H_
/* sched_clock wrap time is 4398 seconds for arm arch timer
* applying a period less than it for tinysys timesync
*/
#define TIMESYNC_WRAP_TIME_MS (4390 * 1000)
enum {
APTIME_UNFREEZE = 0,
APTIME_FREEZE = 1,
};
void adsp_timesync_suspend(u32 fz);
void adsp_timesync_resume(void);
int adsp_timesync_init(void);
#endif // _ADSP_TIMESYNC_H_