SPDX: Convert all of our single license tags to Linux Kernel style
[oweals/u-boot.git] / arch / arm / include / asm / davinci_rtc.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
4  *
5  * Based on:
6  *
7  * -------------------------------------------------------------------------
8  *
9  *  linux/include/asm-arm/arch-davinci/hardware.h
10  *
11  *  Copyright (C) 2006 Texas Instruments.
12  */
13 #ifndef __ASM_DAVINCI_RTC_H
14 #define __ASM_DAVINCI_RTC_H
15
16 struct davinci_rtc {
17         unsigned int    second;
18         unsigned int    minutes;
19         unsigned int    hours;
20         unsigned int    day;
21         unsigned int    month; /* 0x10 */
22         unsigned int    year;
23         unsigned int    dotw;
24         unsigned int    resv1;
25         unsigned int    alarmsecond; /* 0x20 */
26         unsigned int    alarmminute;
27         unsigned int    alarmhour;
28         unsigned int    alarmday;
29         unsigned int    alarmmonth; /* 0x30 */
30         unsigned int    alarmyear;
31         unsigned int    resv2[2];
32         unsigned int    ctrl; /* 0x40 */
33         unsigned int    status;
34         unsigned int    irq;
35         unsigned int    complsb;
36         unsigned int    compmsb; /* 0x50 */
37         unsigned int    osc;
38         unsigned int    resv3[2];
39         unsigned int    scratch0; /* 0x60 */
40         unsigned int    scratch1;
41         unsigned int    scratch2;
42         unsigned int    kick0r;
43         unsigned int    kick1r; /* 0x70 */
44 };
45
46 #define RTC_STATE_BUSY  0x01
47 #define RTC_STATE_RUN   0x02
48
49 #define RTC_KICK0R_WE   0x83e70b13
50 #define RTC_KICK1R_WE   0x95a4f1e0
51 #endif