#include <linux/io.h>
#include <linux/rtc.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/clk.h>
#include <mach/hardware.h>
Go to the source code of this file.
#define RTC_1HZ_BIT (1 << 4) |
#define RTC_2HZ_BIT (1 << 7) |
#define RTC_ALM_BIT (1 << 2) |
#define RTC_ALRM_HM 0x08 /* 32bit rtc alarm hour/min reg */ |
#define RTC_ALRM_SEC 0x0C /* 32bit rtc alarm seconds reg */ |
#define RTC_DAYALARM 0x24 /* 32bit rtc day alarm reg */ |
#define RTC_DAYR 0x20 /* 32bit rtc days counter reg */ |
#define RTC_ENABLE_BIT (1 << 7) |
#define RTC_HOURMIN 0x00 /* 32bit rtc hour/min counter reg */ |
#define RTC_INPUT_CLK_32000HZ (0x01 << 5) |
#define RTC_INPUT_CLK_32768HZ (0x00 << 5) |
#define RTC_INPUT_CLK_38400HZ (0x02 << 5) |
#define RTC_RTCCTL 0x10 /* 32bit rtc control reg */ |
#define RTC_RTCIENR 0x18 /* 32bit rtc interrupt enable reg */ |
#define RTC_RTCISR 0x14 /* 32bit rtc interrupt status reg */ |
#define RTC_SAM0_BIT (1 << 8) |
#define RTC_SAM1_BIT (1 << 9) |
#define RTC_SAM2_BIT (1 << 10) |
#define RTC_SAM3_BIT (1 << 11) |
#define RTC_SAM4_BIT (1 << 12) |
#define RTC_SAM5_BIT (1 << 13) |
#define RTC_SAM6_BIT (1 << 14) |
#define RTC_SAM7_BIT (1 << 15) |
#define RTC_SECOND 0x04 /* 32bit rtc seconds counter reg */ |
#define RTC_STPWCH 0x1C /* 32bit rtc stopwatch min reg */ |
#define RTC_SW_BIT (1 << 0) |
#define RTC_TEST1 0x28 /* 32bit rtc test reg 1 */ |
#define RTC_TEST2 0x2C /* 32bit rtc test reg 2 */ |
#define RTC_TEST3 0x30 /* 32bit rtc test reg 3 */ |