3 * Jason Cooper <u-boot@lakedaemon.net>
5 * SPDX-License-Identifier: GPL-2.0+
9 * Date & Time support for Marvell Integrated RTC
15 #include <asm/arch/soc.h>
16 #include <linux/compiler.h>
19 struct mvrtc_registers {
25 #define MVRTC_SEC_SFT 0
26 #define MVRTC_SEC_MSK 0x7f
27 #define MVRTC_MIN_SFT 8
28 #define MVRTC_MIN_MSK 0x7f
29 #define MVRTC_HOUR_SFT 16
30 #define MVRTC_HOUR_MSK 0x3f
31 #define MVRTC_DAY_SFT 24
32 #define MVRTC_DAY_MSK 0x7
39 #define MVRTC_HRFMT_MSK 0x00400000
42 #define MVRTC_DATE_SFT 0
43 #define MVRTC_DATE_MSK 0x3f
44 #define MVRTC_MON_SFT 8
45 #define MVRTC_MON_MSK 0x1f
46 #define MVRTC_YEAR_SFT 16
47 #define MVRTC_YEAR_MSK 0xff