|
Linux Kernel
3.7.1
|
#include <linux/io.h>#include <linux/clk.h>#include <linux/delay.h>#include <linux/module.h>#include <linux/platform_device.h>#include <linux/rtc.h>#include <linux/sched.h>#include <linux/workqueue.h>Go to the source code of this file.
Data Structures | |
| struct | imxdi_dev |
Macros | |
| #define | DTCMR 0x00 /* Time Counter MSB Reg */ |
| #define | DTCLR 0x04 /* Time Counter LSB Reg */ |
| #define | DCAMR 0x08 /* Clock Alarm MSB Reg */ |
| #define | DCALR 0x0c /* Clock Alarm LSB Reg */ |
| #define | DCAMR_UNSET 0xFFFFFFFF /* doomsday - 1 sec */ |
| #define | DCR 0x10 /* Control Reg */ |
| #define | DCR_TCE (1 << 3) /* Time Counter Enable */ |
| #define | DSR 0x14 /* Status Reg */ |
| #define | DSR_WBF (1 << 10) /* Write Busy Flag */ |
| #define | DSR_WNF (1 << 9) /* Write Next Flag */ |
| #define | DSR_WCF (1 << 8) /* Write Complete Flag */ |
| #define | DSR_WEF (1 << 7) /* Write Error Flag */ |
| #define | DSR_CAF (1 << 4) /* Clock Alarm Flag */ |
| #define | DSR_NVF (1 << 1) /* Non-Valid Flag */ |
| #define | DSR_SVF (1 << 0) /* Security Violation Flag */ |
| #define | DIER 0x18 /* Interrupt Enable Reg */ |
| #define | DIER_WNIE (1 << 9) /* Write Next Interrupt Enable */ |
| #define | DIER_WCIE (1 << 8) /* Write Complete Interrupt Enable */ |
| #define | DIER_WEIE (1 << 7) /* Write Error Interrupt Enable */ |
| #define | DIER_CAIE (1 << 4) /* Clock Alarm Interrupt Enable */ |
Functions | |
| module_init (dryice_rtc_init) | |
| module_exit (dryice_rtc_exit) | |
| MODULE_AUTHOR ("Freescale Semiconductor, Inc.") | |
| MODULE_AUTHOR ("Baruch Siach <[email protected]>") | |
| MODULE_DESCRIPTION ("IMX DryIce Realtime Clock Driver (RTC)") | |
| MODULE_LICENSE ("GPL") | |
| #define DCALR 0x0c /* Clock Alarm LSB Reg */ |
Definition at line 47 of file rtc-imxdi.c.
| #define DCAMR 0x08 /* Clock Alarm MSB Reg */ |
Definition at line 46 of file rtc-imxdi.c.
| #define DCAMR_UNSET 0xFFFFFFFF /* doomsday - 1 sec */ |
Definition at line 48 of file rtc-imxdi.c.
| #define DCR 0x10 /* Control Reg */ |
Definition at line 50 of file rtc-imxdi.c.
Definition at line 51 of file rtc-imxdi.c.
| #define DIER 0x18 /* Interrupt Enable Reg */ |
Definition at line 62 of file rtc-imxdi.c.
| #define DIER_CAIE (1 << 4) /* Clock Alarm Interrupt Enable */ |
Definition at line 66 of file rtc-imxdi.c.
| #define DIER_WCIE (1 << 8) /* Write Complete Interrupt Enable */ |
Definition at line 64 of file rtc-imxdi.c.
Definition at line 65 of file rtc-imxdi.c.
Definition at line 63 of file rtc-imxdi.c.
| #define DSR 0x14 /* Status Reg */ |
Definition at line 53 of file rtc-imxdi.c.
| #define DSR_CAF (1 << 4) /* Clock Alarm Flag */ |
Definition at line 58 of file rtc-imxdi.c.
| #define DSR_NVF (1 << 1) /* Non-Valid Flag */ |
Definition at line 59 of file rtc-imxdi.c.
| #define DSR_SVF (1 << 0) /* Security Violation Flag */ |
Definition at line 60 of file rtc-imxdi.c.
| #define DSR_WBF (1 << 10) /* Write Busy Flag */ |
Definition at line 54 of file rtc-imxdi.c.
| #define DSR_WCF (1 << 8) /* Write Complete Flag */ |
Definition at line 56 of file rtc-imxdi.c.
Definition at line 57 of file rtc-imxdi.c.
Definition at line 55 of file rtc-imxdi.c.
| #define DTCLR 0x04 /* Time Counter LSB Reg */ |
Definition at line 44 of file rtc-imxdi.c.
| #define DTCMR 0x00 /* Time Counter MSB Reg */ |
Definition at line 43 of file rtc-imxdi.c.
| MODULE_AUTHOR | ( | "Freescale | Semiconductor, |
| Inc." | |||
| ) |
| MODULE_AUTHOR | ( | "Baruch Siach <[email protected]>" | ) |
| module_exit | ( | dryice_rtc_exit | ) |
| module_init | ( | dryice_rtc_init | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
1.8.2