18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/* Copyright (C) 2020 ROHM Semiconductors */
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#ifndef __LINUX_MFD_ROHM_SHARED_H__
68c2ecf20Sopenharmony_ci#define __LINUX_MFD_ROHM_SHARED_H__
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci/* RTC definitions shared between BD70528 and BD71828 */
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#define BD70528_MASK_RTC_SEC		0x7f
118c2ecf20Sopenharmony_ci#define BD70528_MASK_RTC_MINUTE		0x7f
128c2ecf20Sopenharmony_ci#define BD70528_MASK_RTC_HOUR_24H	0x80
138c2ecf20Sopenharmony_ci#define BD70528_MASK_RTC_HOUR_PM	0x20
148c2ecf20Sopenharmony_ci#define BD70528_MASK_RTC_HOUR		0x3f
158c2ecf20Sopenharmony_ci#define BD70528_MASK_RTC_DAY		0x3f
168c2ecf20Sopenharmony_ci#define BD70528_MASK_RTC_WEEK		0x07
178c2ecf20Sopenharmony_ci#define BD70528_MASK_RTC_MONTH		0x1f
188c2ecf20Sopenharmony_ci#define BD70528_MASK_RTC_YEAR		0xff
198c2ecf20Sopenharmony_ci#define BD70528_MASK_ALM_EN		0x7
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci#endif /* __LINUX_MFD_ROHM_SHARED_H__ */
22