linux/include/linux/mfd/samsung/rtc.h

/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright (c) 2011-2014 Samsung Electronics Co., Ltd
 *              http://www.samsung.com
 */

#ifndef __LINUX_MFD_SEC_RTC_H
#define __LINUX_MFD_SEC_RTC_H

enum s5m_rtc_reg {};

enum s2mps_rtc_reg {};

#define RTC_I2C_ADDR

#define HOUR_12
#define HOUR_AMPM
#define HOUR_PM
#define S5M_ALARM0_STATUS
#define S5M_ALARM1_STATUS
#define S5M_UPDATE_AD

#define S2MPS_ALARM0_STATUS
#define S2MPS_ALARM1_STATUS

/* RTC Control Register */
#define BCD_EN_SHIFT
#define BCD_EN_MASK
#define MODEL24_SHIFT
#define MODEL24_MASK
/* RTC Update Register1 */
#define S5M_RTC_UDR_SHIFT
#define S5M_RTC_UDR_MASK
#define S2MPS_RTC_WUDR_SHIFT
#define S2MPS_RTC_WUDR_MASK
#define S2MPS15_RTC_AUDR_SHIFT
#define S2MPS15_RTC_AUDR_MASK
#define S2MPS13_RTC_AUDR_SHIFT
#define S2MPS13_RTC_AUDR_MASK
#define S2MPS15_RTC_WUDR_SHIFT
#define S2MPS15_RTC_WUDR_MASK
#define S2MPS_RTC_RUDR_SHIFT
#define S2MPS_RTC_RUDR_MASK
#define RTC_TCON_SHIFT
#define RTC_TCON_MASK
#define S5M_RTC_TIME_EN_SHIFT
#define S5M_RTC_TIME_EN_MASK
/*
 * UDR_T field in S5M_RTC_UDR_CON register determines the time needed
 * for updating alarm and time registers. Default is 7.32 ms.
 */
#define S5M_RTC_UDR_T_SHIFT
#define S5M_RTC_UDR_T_MASK
#define S5M_RTC_UDR_T_7320_US
#define S5M_RTC_UDR_T_1830_US
#define S5M_RTC_UDR_T_3660_US
#define S5M_RTC_UDR_T_450_US

/* RTC Hour register */
#define HOUR_PM_SHIFT
#define HOUR_PM_MASK
/* RTC Alarm Enable */
#define ALARM_ENABLE_SHIFT
#define ALARM_ENABLE_MASK

#define SMPL_ENABLE_SHIFT
#define SMPL_ENABLE_MASK

#define WTSR_ENABLE_SHIFT
#define WTSR_ENABLE_MASK

#endif /*  __LINUX_MFD_SEC_RTC_H */