blob: 95e6fb76c24d2b0df8940ca1cca251e29777aafe [file] [log] [blame]
Paul Mundtc019fd82007-11-28 19:14:23 +09001#ifndef __ASM_SH_CPU_SH4_RTC_H
2#define __ASM_SH_CPU_SH4_RTC_H
3
Paul Mundtb4d36a22008-10-28 18:40:19 +09004#if defined(CONFIG_CPU_SUBTYPE_SH7722) || defined(CONFIG_CPU_SUBTYPE_SH7723)
Paul Mundt178dd0c2008-04-09 17:56:18 +09005#define rtc_reg_size sizeof(u16)
6#else
Paul Mundtc019fd82007-11-28 19:14:23 +09007#define rtc_reg_size sizeof(u32)
Paul Mundt178dd0c2008-04-09 17:56:18 +09008#endif
9
Paul Mundtc019fd82007-11-28 19:14:23 +090010#define RTC_BIT_INVERTED 0x40 /* bug on SH7750, SH7750S */
11#define RTC_DEF_CAPABILITIES RTC_CAP_4_DIGIT_YEAR
12
13#endif /* __ASM_SH_CPU_SH4_RTC_H */