1 /*
2  * Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef _HARDWARE_STRUCTS_RTC_H
8 #define _HARDWARE_STRUCTS_RTC_H
9 
10 #include "hardware/address_mapped.h"
11 #include "hardware/platform_defs.h"
12 #include "hardware/regs/rtc.h"
13 
14 typedef struct {
15     io_rw_32 clkdiv_m1;
16     io_rw_32 setup_0;
17     io_rw_32 setup_1;
18     io_rw_32 ctrl;
19     io_rw_32 irq_setup_0;
20     io_rw_32 irq_setup_1;
21     io_rw_32 rtc_1;
22     io_rw_32 rtc_0;
23     io_rw_32 intr;
24     io_rw_32 inte;
25     io_rw_32 intf;
26     io_rw_32 ints;
27 } rtc_hw_t;
28 
29 #define rtc_hw ((rtc_hw_t *const)RTC_BASE)
30 
31 #endif
32