Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <linux/rtc.h>
#include <linux/bcd.h>
#include <linux/platform_device.h>
#include <asm/io.h>
Go to the source code of this file.
Functions | |
MODULE_ALIAS ("platform:omap_rtc") | |
module_init (rtc_init) | |
module_exit (rtc_exit) | |
MODULE_AUTHOR ("George G. Davis (and others)") | |
MODULE_LICENSE ("GPL") | |
#define OMAP_RTC_ALARM_DAYS_REG 0x2c |
Definition at line 55 of file rtc-omap.c.
#define OMAP_RTC_ALARM_HOURS_REG 0x28 |
Definition at line 54 of file rtc-omap.c.
#define OMAP_RTC_ALARM_MINUTES_REG 0x24 |
Definition at line 53 of file rtc-omap.c.
#define OMAP_RTC_ALARM_MONTHS_REG 0x30 |
Definition at line 56 of file rtc-omap.c.
#define OMAP_RTC_ALARM_SECONDS_REG 0x20 |
Definition at line 52 of file rtc-omap.c.
#define OMAP_RTC_ALARM_YEARS_REG 0x34 |
Definition at line 57 of file rtc-omap.c.
#define OMAP_RTC_BASE 0xfffb4800 |
Definition at line 41 of file rtc-omap.c.
#define OMAP_RTC_COMP_LSB_REG 0x4c |
Definition at line 63 of file rtc-omap.c.
#define OMAP_RTC_COMP_MSB_REG 0x50 |
Definition at line 64 of file rtc-omap.c.
#define OMAP_RTC_CTRL_AUTO_COMP (1<<2) |
Definition at line 73 of file rtc-omap.c.
#define OMAP_RTC_CTRL_DISABLE (1<<6) |
Definition at line 69 of file rtc-omap.c.
#define OMAP_RTC_CTRL_MODE_12_24 (1<<3) |
Definition at line 72 of file rtc-omap.c.
#define OMAP_RTC_CTRL_REG 0x40 |
Definition at line 59 of file rtc-omap.c.
#define OMAP_RTC_CTRL_ROUND_30S (1<<1) |
Definition at line 74 of file rtc-omap.c.
#define OMAP_RTC_CTRL_SET_32_COUNTER (1<<5) |
Definition at line 70 of file rtc-omap.c.
#define OMAP_RTC_CTRL_SPLIT (1<<7) |
Definition at line 68 of file rtc-omap.c.
#define OMAP_RTC_CTRL_STOP (1<<0) |
Definition at line 75 of file rtc-omap.c.
#define OMAP_RTC_CTRL_TEST (1<<4) |
Definition at line 71 of file rtc-omap.c.
#define OMAP_RTC_DAYS_REG 0x0C |
Definition at line 47 of file rtc-omap.c.
#define OMAP_RTC_HOURS_REG 0x08 |
Definition at line 46 of file rtc-omap.c.
#define OMAP_RTC_INTERRUPTS_IT_ALARM (1<<3) |
Definition at line 88 of file rtc-omap.c.
#define OMAP_RTC_INTERRUPTS_IT_TIMER (1<<2) |
Definition at line 89 of file rtc-omap.c.
#define OMAP_RTC_INTERRUPTS_REG 0x48 |
Definition at line 61 of file rtc-omap.c.
#define OMAP_RTC_MINUTES_REG 0x04 |
Definition at line 45 of file rtc-omap.c.
#define OMAP_RTC_MONTHS_REG 0x10 |
Definition at line 48 of file rtc-omap.c.
#define OMAP_RTC_OSC_REG 0x54 |
Definition at line 65 of file rtc-omap.c.
#define omap_rtc_resume NULL |
Definition at line 459 of file rtc-omap.c.
#define OMAP_RTC_SECONDS_REG 0x00 |
Definition at line 44 of file rtc-omap.c.
#define OMAP_RTC_STATUS_1D_EVENT (1<<5) |
Definition at line 80 of file rtc-omap.c.
#define OMAP_RTC_STATUS_1H_EVENT (1<<4) |
Definition at line 81 of file rtc-omap.c.
#define OMAP_RTC_STATUS_1M_EVENT (1<<3) |
Definition at line 82 of file rtc-omap.c.
#define OMAP_RTC_STATUS_1S_EVENT (1<<2) |
Definition at line 83 of file rtc-omap.c.
#define OMAP_RTC_STATUS_ALARM (1<<6) |
Definition at line 79 of file rtc-omap.c.
#define OMAP_RTC_STATUS_BUSY (1<<0) |
Definition at line 85 of file rtc-omap.c.
#define OMAP_RTC_STATUS_POWER_UP (1<<7) |
Definition at line 78 of file rtc-omap.c.
#define OMAP_RTC_STATUS_REG 0x44 |
Definition at line 60 of file rtc-omap.c.
#define OMAP_RTC_STATUS_RUN (1<<1) |
Definition at line 84 of file rtc-omap.c.
#define omap_rtc_suspend NULL |
Definition at line 458 of file rtc-omap.c.
#define OMAP_RTC_WEEKS_REG 0x18 |
Definition at line 50 of file rtc-omap.c.
#define OMAP_RTC_YEARS_REG 0x14 |
Definition at line 49 of file rtc-omap.c.
#define rtc_read | ( | addr | ) | __raw_readb(rtc_base + (addr)) |
Definition at line 93 of file rtc-omap.c.
#define rtc_write | ( | val, | |
addr | |||
) | __raw_writeb(val, rtc_base + (addr)) |
Definition at line 94 of file rtc-omap.c.
MODULE_ALIAS | ( | "platform:omap_rtc" | ) |
MODULE_AUTHOR | ( | "George G. Davis (and others)" | ) |
module_exit | ( | rtc_exit | ) |
module_init | ( | rtc_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |