blob: e884bf6cb938005a4e46869c535e1902cb2e9e38 [file] [log] [blame] [edit]
/*
* Copyright (c) 2021-2022 Amlogic, Inc. All rights reserved.
*
* SPDX-License-Identifier: MIT
*/
#ifndef __RTC_H__
#define __RTC_H__
/* RTC enbale bit */
#define RTC_CTRL_EN (12)
/* RTC alarm enbale bit */
#define RTC_CTRL_ALM0_EN (0)
/* RTC INT irq status bit */
#define RTC_INT_IRQ (8)
/* RTC INT alarm0 irq status bit */
#define RTC_INT_ALM0_IRQ (0)
/* RTC INT clear alarm0 irq bit */
#define RTC_INT_CLR_ALM0_IRQ (0)
/* REBOOT_MODE */
#define COLD_REBOOT (0)
void *MboxGetRTC(void *msg);
void *MboxSetRTC(void *msg);
void rtc_init(void);
void store_rtc(void);
void rtc_enable_irq(void);
void rtc_disable_irq(void);
void alarm_clr(void);
#endif //__RTC_H__