aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVenu Byravarasu <vbyravarasu@nvidia.com>2012-10-04 20:14:04 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-05 14:05:03 -0400
commit90829c089ef622e54ce1153eb6dcda9ce98cb7c2 (patch)
treed6468baa51657219d583d0cf721bfd845d046bc4 /include
parenta16e8393ac03cc24fd9b838f42823b4242ceac88 (diff)
rtc: rc5t583: add ricoh rc5t583 RTC driver
Add an RTC driver for the RTC device on Ricoh MFD Rc5t583. Ricoh RTC has 3 types of alarms. The current patch adds support for the Y-Alarm of RC5t583 RTC. Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/rc5t583.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/mfd/rc5t583.h b/include/linux/mfd/rc5t583.h
index 3661c59aa1e9..36c242e52ef1 100644
--- a/include/linux/mfd/rc5t583.h
+++ b/include/linux/mfd/rc5t583.h
@@ -146,6 +146,28 @@
146#define RC5T583_GPIO_MON_IOIN 0xAB 146#define RC5T583_GPIO_MON_IOIN 0xAB
147#define RC5T583_GPIO_GPOFUNC 0xAC 147#define RC5T583_GPIO_GPOFUNC 0xAC
148 148
149/* RTC registers */
150#define RC5T583_RTC_SEC 0xE0
151#define RC5T583_RTC_MIN 0xE1
152#define RC5T583_RTC_HOUR 0xE2
153#define RC5T583_RTC_WDAY 0xE3
154#define RC5T583_RTC_DAY 0xE4
155#define RC5T583_RTC_MONTH 0xE5
156#define RC5T583_RTC_YEAR 0xE6
157#define RC5T583_RTC_ADJ 0xE7
158#define RC5T583_RTC_AW_MIN 0xE8
159#define RC5T583_RTC_AW_HOUR 0xE9
160#define RC5T583_RTC_AW_WEEK 0xEA
161#define RC5T583_RTC_AD_MIN 0xEB
162#define RC5T583_RTC_AD_HOUR 0xEC
163#define RC5T583_RTC_CTL1 0xED
164#define RC5T583_RTC_CTL2 0xEE
165#define RC5T583_RTC_AY_MIN 0xF0
166#define RC5T583_RTC_AY_HOUR 0xF1
167#define RC5T583_RTC_AY_DAY 0xF2
168#define RC5T583_RTC_AY_MONTH 0xF3
169#define RC5T583_RTC_AY_YEAR 0xF4
170
149/* RICOH_RC5T583 IRQ definitions */ 171/* RICOH_RC5T583 IRQ definitions */
150enum { 172enum {
151 RC5T583_IRQ_ONKEY, 173 RC5T583_IRQ_ONKEY,