18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef __ASM_SH_CPU_SH4_RTC_H
38c2ecf20Sopenharmony_ci#define __ASM_SH_CPU_SH4_RTC_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#if defined(CONFIG_CPU_SUBTYPE_SH7722) || defined(CONFIG_CPU_SUBTYPE_SH7723)
68c2ecf20Sopenharmony_ci#define rtc_reg_size		sizeof(u16)
78c2ecf20Sopenharmony_ci#else
88c2ecf20Sopenharmony_ci#define rtc_reg_size		sizeof(u32)
98c2ecf20Sopenharmony_ci#endif
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#define RTC_BIT_INVERTED	0x40	/* bug on SH7750, SH7750S */
128c2ecf20Sopenharmony_ci#define RTC_DEF_CAPABILITIES	RTC_CAP_4_DIGIT_YEAR
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci#endif /* __ASM_SH_CPU_SH4_RTC_H */
15