Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/rtc.h>
#include <linux/platform_device.h>
#include <linux/mfd/max8925.h>
Go to the source code of this file.
Data Structures | |
struct | max8925_rtc_info |
Enumerations | |
enum | { RTC_SEC = 0, RTC_MIN, RTC_HOUR, RTC_WEEKDAY, RTC_DATE, RTC_MONTH, RTC_YEAR1, RTC_YEAR2 } |
Functions | |
module_platform_driver (max8925_rtc_driver) | |
MODULE_DESCRIPTION ("Maxim MAX8925 RTC driver") | |
MODULE_AUTHOR ("Haojian Zhuang <[email protected]>") | |
MODULE_LICENSE ("GPL") | |
#define ALARM0_IRQ (1 << 3) |
Definition at line 61 of file rtc-max8925.c.
#define ALARM0_STATUS (1 << 2) |
Definition at line 63 of file rtc-max8925.c.
#define ALARM1_IRQ (1 << 2) |
Definition at line 62 of file rtc-max8925.c.
#define ALARM1_STATUS (1 << 1) |
Definition at line 64 of file rtc-max8925.c.
#define ALARM_1SEC (1 << 7) |
Definition at line 58 of file rtc-max8925.c.
#define HOUR_12 (1 << 7) |
Definition at line 59 of file rtc-max8925.c.
#define HOUR_AM_PM (1 << 5) |
Definition at line 60 of file rtc-max8925.c.
#define MAX8925_ALARM0_DATE 0x0c |
Definition at line 42 of file rtc-max8925.c.
#define MAX8925_ALARM0_HOUR 0x0a |
Definition at line 40 of file rtc-max8925.c.
#define MAX8925_ALARM0_MIN 0x09 |
Definition at line 39 of file rtc-max8925.c.
#define MAX8925_ALARM0_MON 0x0d |
Definition at line 43 of file rtc-max8925.c.
#define MAX8925_ALARM0_SEC 0x08 |
Definition at line 38 of file rtc-max8925.c.
#define MAX8925_ALARM0_WEEKDAY 0x0b |
Definition at line 41 of file rtc-max8925.c.
#define MAX8925_ALARM0_YEAR1 0x0e |
Definition at line 44 of file rtc-max8925.c.
#define MAX8925_ALARM0_YEAR2 0x0f |
Definition at line 45 of file rtc-max8925.c.
#define MAX8925_ALARM1_DATE 0x14 |
Definition at line 50 of file rtc-max8925.c.
#define MAX8925_ALARM1_HOUR 0x12 |
Definition at line 48 of file rtc-max8925.c.
#define MAX8925_ALARM1_MIN 0x11 |
Definition at line 47 of file rtc-max8925.c.
#define MAX8925_ALARM1_MON 0x15 |
Definition at line 51 of file rtc-max8925.c.
#define MAX8925_ALARM1_SEC 0x10 |
Definition at line 46 of file rtc-max8925.c.
#define MAX8925_ALARM1_WEEKDAY 0x13 |
Definition at line 49 of file rtc-max8925.c.
#define MAX8925_ALARM1_YEAR1 0x16 |
Definition at line 52 of file rtc-max8925.c.
#define MAX8925_ALARM1_YEAR2 0x17 |
Definition at line 53 of file rtc-max8925.c.
#define MAX8925_RTC_CNTL 0x1b |
Definition at line 54 of file rtc-max8925.c.
#define MAX8925_RTC_DATE 0x04 |
Definition at line 34 of file rtc-max8925.c.
#define MAX8925_RTC_HOUR 0x02 |
Definition at line 32 of file rtc-max8925.c.
#define MAX8925_RTC_MIN 0x01 |
Definition at line 31 of file rtc-max8925.c.
#define MAX8925_RTC_MONTH 0x05 |
Definition at line 35 of file rtc-max8925.c.
#define MAX8925_RTC_SEC 0x00 |
Definition at line 30 of file rtc-max8925.c.
#define MAX8925_RTC_STATUS 0x20 |
Definition at line 55 of file rtc-max8925.c.
#define MAX8925_RTC_WEEKDAY 0x03 |
Definition at line 33 of file rtc-max8925.c.
#define MAX8925_RTC_YEAR1 0x06 |
Definition at line 36 of file rtc-max8925.c.
#define MAX8925_RTC_YEAR2 0x07 |
Definition at line 37 of file rtc-max8925.c.
#define TIME_NUM 8 |
Definition at line 57 of file rtc-max8925.c.
anonymous enum |
Definition at line 19 of file rtc-max8925.c.
MODULE_AUTHOR | ( | "Haojian Zhuang <[email protected]>" | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_platform_driver | ( | max8925_rtc_driver | ) |