Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/rtc.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/bcd.h>
Go to the source code of this file.
Data Structures | |
struct | nuc900_rtc |
struct | nuc900_bcd_time |
Macros | |
#define | REG_RTC_INIR 0x00 |
#define | REG_RTC_AER 0x04 |
#define | REG_RTC_FCR 0x08 |
#define | REG_RTC_TLR 0x0C |
#define | REG_RTC_CLR 0x10 |
#define | REG_RTC_TSSR 0x14 |
#define | REG_RTC_DWR 0x18 |
#define | REG_RTC_TAR 0x1C |
#define | REG_RTC_CAR 0x20 |
#define | REG_RTC_LIR 0x24 |
#define | REG_RTC_RIER 0x28 |
#define | REG_RTC_RIIR 0x2C |
#define | REG_RTC_TTR 0x30 |
#define | RTCSET 0x01 |
#define | AERRWENB 0x10000 |
#define | INIRRESET 0xa5eb1357 |
#define | AERPOWERON 0xA965 |
#define | AERPOWEROFF 0x0000 |
#define | LEAPYEAR 0x0001 |
#define | TICKENB 0x80 |
#define | TICKINTENB 0x0002 |
#define | ALARMINTENB 0x0001 |
#define | MODE24 0x0001 |
Functions | |
module_init (nuc900_rtc_init) | |
module_exit (nuc900_rtc_exit) | |
MODULE_AUTHOR ("Wan ZongShun <[email protected]>") | |
MODULE_DESCRIPTION ("nuc910/nuc920 RTC driver") | |
MODULE_LICENSE ("GPL") | |
MODULE_ALIAS ("platform:nuc900-rtc") | |
#define AERPOWEROFF 0x0000 |
Definition at line 40 of file rtc-nuc900.c.
#define AERPOWERON 0xA965 |
Definition at line 39 of file rtc-nuc900.c.
#define AERRWENB 0x10000 |
Definition at line 37 of file rtc-nuc900.c.
#define ALARMINTENB 0x0001 |
Definition at line 44 of file rtc-nuc900.c.
#define INIRRESET 0xa5eb1357 |
Definition at line 38 of file rtc-nuc900.c.
#define LEAPYEAR 0x0001 |
Definition at line 41 of file rtc-nuc900.c.
#define MODE24 0x0001 |
Definition at line 45 of file rtc-nuc900.c.
#define REG_RTC_AER 0x04 |
Definition at line 23 of file rtc-nuc900.c.
#define REG_RTC_CAR 0x20 |
Definition at line 30 of file rtc-nuc900.c.
#define REG_RTC_CLR 0x10 |
Definition at line 26 of file rtc-nuc900.c.
#define REG_RTC_DWR 0x18 |
Definition at line 28 of file rtc-nuc900.c.
#define REG_RTC_FCR 0x08 |
Definition at line 24 of file rtc-nuc900.c.
#define REG_RTC_INIR 0x00 |
Definition at line 22 of file rtc-nuc900.c.
#define REG_RTC_LIR 0x24 |
Definition at line 31 of file rtc-nuc900.c.
#define REG_RTC_RIER 0x28 |
Definition at line 32 of file rtc-nuc900.c.
#define REG_RTC_RIIR 0x2C |
Definition at line 33 of file rtc-nuc900.c.
#define REG_RTC_TAR 0x1C |
Definition at line 29 of file rtc-nuc900.c.
#define REG_RTC_TLR 0x0C |
Definition at line 25 of file rtc-nuc900.c.
#define REG_RTC_TSSR 0x14 |
Definition at line 27 of file rtc-nuc900.c.
#define REG_RTC_TTR 0x30 |
Definition at line 34 of file rtc-nuc900.c.
#define RTCSET 0x01 |
Definition at line 36 of file rtc-nuc900.c.
#define TICKENB 0x80 |
Definition at line 42 of file rtc-nuc900.c.
#define TICKINTENB 0x0002 |
Definition at line 43 of file rtc-nuc900.c.
MODULE_ALIAS | ( | "platform:nuc900-rtc" | ) |
MODULE_AUTHOR | ( | "Wan ZongShun <[email protected]>" | ) |
module_exit | ( | nuc900_rtc_exit | ) |
module_init | ( | nuc900_rtc_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |