/* * rtc.h -- RTC driver for NXP PCF50633 * * (C) 2006-2008 by Openmoko, Inc. * All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later version. */ #ifndef __LINUX_MFD_PCF50633_RTC_H #define __LINUX_MFD_PCF50633_RTC_H #include #include #define PCF50633_REG_RTCSC 0x59 /* Second */ #define PCF50633_REG_RTCMN 0x5a /* Minute */ #define PCF50633_REG_RTCHR 0x5b /* Hour */ #define PCF50633_REG_RTCWD 0x5c /* Weekday */ #define PCF50633_REG_RTCDT 0x5d /* Day */ #define PCF50633_REG_RTCMT 0x5e /* Month */ #define PCF50633_REG_RTCYR 0x5f /* Year */ #define PCF50633_REG_RTCSCA 0x60 /* Alarm Second */ #define PCF50633_REG_RTCMNA 0x61 /* Alarm Minute */ #define PCF50633_REG_RTCHRA 0x62 /* Alarm Hour */ #define PCF50633_REG_RTCWDA 0x63 /* Alarm Weekday */ #define PCF50633_REG_RTCDTA 0x64 /* Alarm Day */ #define PCF50633_REG_RTCMTA 0x65 /* Alarm Month */ #define PCF50633_REG_RTCYRA 0x66 /* Alarm Year */ struct pcf50633_rtc { int alarm_enabled; int second_enabled; struct rtc_device *rtc_dev; struct platform_device *pdev; }; #endif