1 /* 2 * Copyright (C) 2015-2020 Alibaba Group Holding Limited 3 */ 4 #ifndef __REG_RTC_H__ 5 #define __REG_RTC_H__ 6 7 #include "plat_types.h" 8 9 // PL031 Registers 10 struct RTC_T 11 { 12 __I uint32_t RTCDR; // 0x000 13 __IO uint32_t RTCMR; // 0x004 14 __IO uint32_t RTCLR; // 0x008 15 __IO uint32_t RTCCR; // 0x00C 16 __IO uint32_t RTCIMSC; // 0x010 17 __I uint32_t RTCRIS; // 0x014 18 __I uint32_t RTCMIS; // 0x018 19 __O uint32_t RTCICR; // 0x01C 20 }; 21 22 #define RTC_CR_EN (1 << 0) /* counter enable bit */ 23 24 #define RTC_BIT_AI (1 << 0) /* Alarm interrupt bit */ 25 26 #endif 27