blob: 6edeb854db6937bf6875134de3600bc9fb8f725e [file] [log] [blame]
Xiaohu.Huang60950452022-03-12 22:51:01 +08001/*
2 * Copyright (c) 2021-2022 Amlogic, Inc. All rights reserved.
3 *
4 * SPDX-License-Identifier: MIT
5 */
6
7#ifndef __RTC_H__
8#define __RTC_H__
9
10#define RTC_IRQ (131)
11/* RTC enbale bit */
12#define RTC_CTRL_EN (12)
13/* RTC alarm enbale bit */
14#define RTC_CTRL_ALM0_EN (0)
15/* RTC INT irq status bit */
16#define RTC_INT_IRQ (8)
17/* RTC INT alarm0 irq status bit */
18#define RTC_INT_ALM0_IRQ (0)
19/* RTC INT clear alarm0 irq bit */
20#define RTC_INT_CLR_ALM0_IRQ (0)
21
22/* REBOOT_MODE */
23#define COLD_REBOOT (0)
24
25void *MboxGetRTC(void *msg);
26void *MboxSetRTC(void *msg);
27void rtc_init(void);
28void store_rtc(void);
29#endif //__RTC_H__