Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/bcd.h>
#include <linux/rtc.h>
#include <linux/platform_device.h>
#include <linux/mfd/max8998.h>
#include <linux/mfd/max8998-private.h>
#include <linux/delay.h>
Go to the source code of this file.
Data Structures | |
struct | max8998_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 (max8998_rtc_driver) | |
MODULE_AUTHOR ("Minkyu Kang <[email protected]>") | |
MODULE_AUTHOR ("Joonyoung Shim <[email protected]>") | |
MODULE_DESCRIPTION ("Maxim MAX8998 RTC driver") | |
MODULE_LICENSE ("GPL") | |
#define ALARM0_STATUS (1 << 1) |
Definition at line 57 of file rtc-max8998.c.
#define ALARM1_STATUS (1 << 2) |
Definition at line 58 of file rtc-max8998.c.
#define HOUR_12 (1 << 7) |
Definition at line 55 of file rtc-max8998.c.
#define HOUR_PM (1 << 5) |
Definition at line 56 of file rtc-max8998.c.
#define MAX8998_ALARM0_CONF 0x18 |
Definition at line 49 of file rtc-max8998.c.
#define MAX8998_ALARM0_DATE 0x0c |
Definition at line 37 of file rtc-max8998.c.
#define MAX8998_ALARM0_HOUR 0x0a |
Definition at line 35 of file rtc-max8998.c.
#define MAX8998_ALARM0_MIN 0x09 |
Definition at line 34 of file rtc-max8998.c.
#define MAX8998_ALARM0_MONTH 0x0d |
Definition at line 38 of file rtc-max8998.c.
#define MAX8998_ALARM0_SEC 0x08 |
Definition at line 33 of file rtc-max8998.c.
#define MAX8998_ALARM0_WEEKDAY 0x0b |
Definition at line 36 of file rtc-max8998.c.
#define MAX8998_ALARM0_YEAR1 0x0e |
Definition at line 39 of file rtc-max8998.c.
#define MAX8998_ALARM0_YEAR2 0x0f |
Definition at line 40 of file rtc-max8998.c.
#define MAX8998_ALARM1_CONF 0x19 |
Definition at line 50 of file rtc-max8998.c.
#define MAX8998_ALARM1_DATE 0x14 |
Definition at line 45 of file rtc-max8998.c.
#define MAX8998_ALARM1_HOUR 0x12 |
Definition at line 43 of file rtc-max8998.c.
#define MAX8998_ALARM1_MIN 0x11 |
Definition at line 42 of file rtc-max8998.c.
#define MAX8998_ALARM1_MONTH 0x15 |
Definition at line 46 of file rtc-max8998.c.
#define MAX8998_ALARM1_SEC 0x10 |
Definition at line 41 of file rtc-max8998.c.
#define MAX8998_ALARM1_WEEKDAY 0x13 |
Definition at line 44 of file rtc-max8998.c.
#define MAX8998_ALARM1_YEAR1 0x16 |
Definition at line 47 of file rtc-max8998.c.
#define MAX8998_ALARM1_YEAR2 0x17 |
Definition at line 48 of file rtc-max8998.c.
#define MAX8998_RTC_DATE 0x04 |
Definition at line 29 of file rtc-max8998.c.
#define MAX8998_RTC_HOUR 0x02 |
Definition at line 27 of file rtc-max8998.c.
#define MAX8998_RTC_MIN 0x01 |
Definition at line 26 of file rtc-max8998.c.
#define MAX8998_RTC_MONTH 0x05 |
Definition at line 30 of file rtc-max8998.c.
#define MAX8998_RTC_SEC 0x00 |
Definition at line 25 of file rtc-max8998.c.
#define MAX8998_RTC_STATUS 0x1a |
Definition at line 51 of file rtc-max8998.c.
#define MAX8998_RTC_WEEKDAY 0x03 |
Definition at line 28 of file rtc-max8998.c.
#define MAX8998_RTC_YEAR1 0x06 |
Definition at line 31 of file rtc-max8998.c.
#define MAX8998_RTC_YEAR2 0x07 |
Definition at line 32 of file rtc-max8998.c.
#define MAX8998_TEST 0x1f |
Definition at line 53 of file rtc-max8998.c.
#define MAX8998_WTSR_SMPL_CNTL 0x1b |
Definition at line 52 of file rtc-max8998.c.
anonymous enum |
Definition at line 60 of file rtc-max8998.c.
MODULE_AUTHOR | ( | "Minkyu Kang <[email protected]>" | ) |
MODULE_AUTHOR | ( | "Joonyoung Shim <[email protected]>" | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_platform_driver | ( | max8998_rtc_driver | ) |