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>
This commit is contained in:

committed by
Linus Torvalds

parent
a16e8393ac
commit
90829c089e
@@ -146,6 +146,28 @@
|
||||
#define RC5T583_GPIO_MON_IOIN 0xAB
|
||||
#define RC5T583_GPIO_GPOFUNC 0xAC
|
||||
|
||||
/* RTC registers */
|
||||
#define RC5T583_RTC_SEC 0xE0
|
||||
#define RC5T583_RTC_MIN 0xE1
|
||||
#define RC5T583_RTC_HOUR 0xE2
|
||||
#define RC5T583_RTC_WDAY 0xE3
|
||||
#define RC5T583_RTC_DAY 0xE4
|
||||
#define RC5T583_RTC_MONTH 0xE5
|
||||
#define RC5T583_RTC_YEAR 0xE6
|
||||
#define RC5T583_RTC_ADJ 0xE7
|
||||
#define RC5T583_RTC_AW_MIN 0xE8
|
||||
#define RC5T583_RTC_AW_HOUR 0xE9
|
||||
#define RC5T583_RTC_AW_WEEK 0xEA
|
||||
#define RC5T583_RTC_AD_MIN 0xEB
|
||||
#define RC5T583_RTC_AD_HOUR 0xEC
|
||||
#define RC5T583_RTC_CTL1 0xED
|
||||
#define RC5T583_RTC_CTL2 0xEE
|
||||
#define RC5T583_RTC_AY_MIN 0xF0
|
||||
#define RC5T583_RTC_AY_HOUR 0xF1
|
||||
#define RC5T583_RTC_AY_DAY 0xF2
|
||||
#define RC5T583_RTC_AY_MONTH 0xF3
|
||||
#define RC5T583_RTC_AY_YEAR 0xF4
|
||||
|
||||
/* RICOH_RC5T583 IRQ definitions */
|
||||
enum {
|
||||
RC5T583_IRQ_ONKEY,
|
||||
|
Reference in New Issue
Block a user