#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/module.h>
#include <linux/rtc.h>
#include <linux/seq_file.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <mach/hardware.h>
Go to the source code of this file.
#define MAXFREQ_PERIODIC 1000 |
#define RDxR_HOUR_MASK (0x1f << RDxR_HOUR_S) |
#define RDxR_MIN_MASK (0x3f << RDxR_MIN_S) |
#define RDxR_SEC_MASK 0x3f |
#define RTC_DEF_DIVIDER (32768 - 1) |
#define RTSR_AL (1 << 0) /* RTC alarm detected */ |
#define RTSR_HZ (1 << 1) /* HZ rising-edge detected */ |
#define RTSR_PIAL (1 << 13) /* Periodic interrupt detected */ |
#define RTSR_RDAL1 (1 << 4) /* RTC alarm1 detected */ |
#define RTSR_RDAL2 (1 << 6) /* RTC alarm2 detected */ |
#define RTSR_RDALE1 (1 << 5) /* RTC alarm1 enable */ |
#define RTSR_RDALE2 (1 << 7) /* RTC alarm2 enable */ |
#define RTSR_SWAL1 (1 << 8) /* RTC stopwatch alarm1 detected */ |
#define RTSR_SWAL2 (1 << 10) /* RTC stopwatch alarm2 detected */ |
#define RTSR_SWALE1 (1 << 9) /* RTC stopwatch alarm1 enable */ |
#define RTSR_SWALE2 (1 << 11) /* RTC stopwatch alarm2 enable */ |
#define RYxR_DAY_MASK 0x1f |
#define RYxR_MONTH_MASK (0xf << RYxR_MONTH_S) |
#define RYxR_YEAR_MASK (0xfff << RYxR_YEAR_S) |
MODULE_ALIAS |
( |
"platform:pxa-rtc" |
| ) |
|
MODULE_DESCRIPTION |
( |
"PXA27x/PXA3xx Realtime Clock Driver (RTC)" |
| ) |
|
module_exit |
( |
pxa_rtc_exit |
| ) |
|
module_init |
( |
pxa_rtc_init |
| ) |
|