xref: /linux/arch/sh/include/cpu-sh4/cpu/rtc.h (revision b24413180f5600bcb3bb70fbed5cf186b60864bd)
1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2f15cbe6fSPaul Mundt #ifndef __ASM_SH_CPU_SH4_RTC_H
3f15cbe6fSPaul Mundt #define __ASM_SH_CPU_SH4_RTC_H
4f15cbe6fSPaul Mundt 
5b4d36a25SPaul Mundt #if defined(CONFIG_CPU_SUBTYPE_SH7722) || defined(CONFIG_CPU_SUBTYPE_SH7723)
6f15cbe6fSPaul Mundt #define rtc_reg_size		sizeof(u16)
7f15cbe6fSPaul Mundt #else
8f15cbe6fSPaul Mundt #define rtc_reg_size		sizeof(u32)
9f15cbe6fSPaul Mundt #endif
10f15cbe6fSPaul Mundt 
11f15cbe6fSPaul Mundt #define RTC_BIT_INVERTED	0x40	/* bug on SH7750, SH7750S */
12f15cbe6fSPaul Mundt #define RTC_DEF_CAPABILITIES	RTC_CAP_4_DIGIT_YEAR
13f15cbe6fSPaul Mundt 
14f15cbe6fSPaul Mundt #endif /* __ASM_SH_CPU_SH4_RTC_H */
15