Source
x
static SIMPLE_DEV_PM_OPS(spear_rtc_pm_ops, spear_rtc_suspend, spear_rtc_resume);
/*
* drivers/rtc/rtc-spear.c
*
* Copyright (C) 2010 ST Microelectronics
* Rajeev Kumar<rajeev-dlh.kumar@st.com>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/
/* RTC registers */
/* TIME_REG & ALARM_TIME_REG */
/* seconds units position */
/* seconds tens position */
/* minutes units position */
/* minutes tens position */
/* hours units position */
/* hours tens position */
/* DATE_REG & ALARM_DATE_REG */
/* days units position */
/* days tens position */
/* months units position */
/* months tens position */
/* years units position */
/* years tens position */
/* years hundereds position */
/* years millenium position */
/* MASK SHIFT TIME_REG & ALARM_TIME_REG*/
/* seconds units */
/* minutes units position */
/* hours units position */
/* Month day shift */
/* Month shift */
/* Year shift */
/* date reg equal to time reg, for debug only */
/* interrupt enable */
/* STATUS_REG */
struct spear_rtc_config {
struct rtc_device *rtc;
struct clk *clk;
spinlock_t lock;
void __iomem *ioaddr;
unsigned int irq_wake;
};
static inline void spear_rtc_clear_interrupt(struct spear_rtc_config *config)
{
unsigned int val;
unsigned long flags;