Xiaohu.Huang | 6095045 | 2022-03-12 22:51:01 +0800 | [diff] [blame] | 1 | /* |
| 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 | |
| 25 | void *MboxGetRTC(void *msg); |
| 26 | void *MboxSetRTC(void *msg); |
| 27 | void rtc_init(void); |
| 28 | void store_rtc(void); |
| 29 | #endif //__RTC_H__ |