summaryrefslogtreecommitdiff
path: root/linux/arch/sh/include/cpu-sh4/cpu/rtc.h
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2016-04-25 10:00:44 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2016-04-25 10:00:44 -0400
commita1df417e74aa6dae7352dc8cbb0ad471af5b7c69 (patch)
treec34b2311e37ea31db153c90cb8f4570374d05e78 /linux/arch/sh/include/cpu-sh4/cpu/rtc.h
initial Olimex linux tree from Daniel, originally Feb 3, 2016
Diffstat (limited to 'linux/arch/sh/include/cpu-sh4/cpu/rtc.h')
-rw-r--r--linux/arch/sh/include/cpu-sh4/cpu/rtc.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/linux/arch/sh/include/cpu-sh4/cpu/rtc.h b/linux/arch/sh/include/cpu-sh4/cpu/rtc.h
new file mode 100644
index 00000000..95e6fb76
--- /dev/null
+++ b/linux/arch/sh/include/cpu-sh4/cpu/rtc.h
@@ -0,0 +1,13 @@
+#ifndef __ASM_SH_CPU_SH4_RTC_H
+#define __ASM_SH_CPU_SH4_RTC_H
+
+#if defined(CONFIG_CPU_SUBTYPE_SH7722) || defined(CONFIG_CPU_SUBTYPE_SH7723)
+#define rtc_reg_size sizeof(u16)
+#else
+#define rtc_reg_size sizeof(u32)
+#endif
+
+#define RTC_BIT_INVERTED 0x40 /* bug on SH7750, SH7750S */
+#define RTC_DEF_CAPABILITIES RTC_CAP_4_DIGIT_YEAR
+
+#endif /* __ASM_SH_CPU_SH4_RTC_H */