1 /*drivers/rtc/rtc-HYM8563.h - driver for HYM8563
3 * Copyright (C) 2010 ROCKCHIP, Inc.
5 * This software is licensed under the terms of the GNU General Public
6 * License version 2, as published by the Free Software Foundation, and
7 * may be copied, distributed, and modified under those terms.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
15 #ifndef _DRIVERS_HYM8563_H
16 #define _DRIVERS_HYM8563_H
27 #define RTC_A_MIN 0x09
28 #define RTC_A_HOUR 0x0A
29 #define RTC_A_DAY 0x0B
30 #define RTC_A_WEEK 0x0C
31 #define RTC_CLKOUT 0x0D
32 #define RTC_T_CTL 0x0E
33 #define RTC_T_COUNT 0x0F
48 #define HYM8563_REG_LEN 0x10
49 #define HYM8563_RTC_SECTION_LEN 0x07
51 struct hym8563_platform_data {
54 unsigned int reg_byte_cnt;
57 #endif /*_DRIVERS_HYM8563_H*/