162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef __ASM_SH_CPU_SH4_RTC_H 362306a36Sopenharmony_ci#define __ASM_SH_CPU_SH4_RTC_H 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#if defined(CONFIG_CPU_SUBTYPE_SH7722) || defined(CONFIG_CPU_SUBTYPE_SH7723) 662306a36Sopenharmony_ci#define rtc_reg_size sizeof(u16) 762306a36Sopenharmony_ci#else 862306a36Sopenharmony_ci#define rtc_reg_size sizeof(u32) 962306a36Sopenharmony_ci#endif 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#define RTC_BIT_INVERTED 0x40 /* bug on SH7750, SH7750S */ 1262306a36Sopenharmony_ci#define RTC_DEF_CAPABILITIES RTC_CAP_4_DIGIT_YEAR 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ci#endif /* __ASM_SH_CPU_SH4_RTC_H */ 15