Linux Kernel
3.7.1
|
#include <linux/i2c.h>
#include <linux/rtc.h>
#include <linux/bcd.h>
#include <linux/slab.h>
#include <linux/module.h>
Go to the source code of this file.
Data Structures | |
struct | rs5c372 |
Macros | |
#define | DRV_VERSION "0.6" |
#define | RS5C372_REG_SECS 0 |
#define | RS5C372_REG_MINS 1 |
#define | RS5C372_REG_HOURS 2 |
#define | RS5C372_REG_WDAY 3 |
#define | RS5C372_REG_DAY 4 |
#define | RS5C372_REG_MONTH 5 |
#define | RS5C372_REG_YEAR 6 |
#define | RS5C372_REG_TRIM 7 |
#define | RS5C372_TRIM_XSL 0x80 |
#define | RS5C372_TRIM_MASK 0x7F |
#define | RS5C_REG_ALARM_A_MIN 8 /* or ALARM_W */ |
#define | RS5C_REG_ALARM_A_HOURS 9 |
#define | RS5C_REG_ALARM_A_WDAY 10 |
#define | RS5C_REG_ALARM_B_MIN 11 /* or ALARM_D */ |
#define | RS5C_REG_ALARM_B_HOURS 12 |
#define | RS5C_REG_ALARM_B_WDAY 13 /* (ALARM_B only) */ |
#define | RS5C_REG_CTRL1 14 |
#define | RS5C_CTRL1_AALE (1 << 7) /* or WALE */ |
#define | RS5C_CTRL1_BALE (1 << 6) /* or DALE */ |
#define | RV5C387_CTRL1_24 (1 << 5) |
#define | RS5C372A_CTRL1_SL1 (1 << 5) |
#define | RS5C_CTRL1_CT_MASK (7 << 0) |
#define | RS5C_CTRL1_CT0 (0 << 0) /* no periodic irq */ |
#define | RS5C_CTRL1_CT4 (4 << 0) /* 1 Hz level irq */ |
#define | RS5C_REG_CTRL2 15 |
#define | RS5C372_CTRL2_24 (1 << 5) |
#define | R2025_CTRL2_XST (1 << 5) |
#define | RS5C_CTRL2_XSTP (1 << 4) /* only if !R2025S/D */ |
#define | RS5C_CTRL2_CTFG (1 << 2) |
#define | RS5C_CTRL2_AAFG (1 << 1) /* or WAFG */ |
#define | RS5C_CTRL2_BAFG (1 << 0) /* or DAFG */ |
#define | RS5C_ADDR(R) (((R) << 4) | 0) |
#define | rs5c372_rtc_proc NULL |
Enumerations | |
enum | rtc_type { rtc_undef = 0, rtc_r2025sd, rtc_rs5c372a, rtc_rs5c372b, rtc_rv5c386, rtc_rv5c387a } |
Functions | |
MODULE_DEVICE_TABLE (i2c, rs5c372_id) | |
module_i2c_driver (rs5c372_driver) | |
MODULE_AUTHOR ("Pavel Mironchik <[email protected]>, ""Alessandro Zummo <[email protected]>, ""Paul Mundt <[email protected]>") | |
MODULE_DESCRIPTION ("Ricoh RS5C372 RTC driver") | |
MODULE_LICENSE ("GPL") | |
MODULE_VERSION (DRV_VERSION) | |
#define DRV_VERSION "0.6" |
Definition at line 19 of file rtc-rs5c372.c.
#define R2025_CTRL2_XST (1 << 5) |
Definition at line 57 of file rtc-rs5c372.c.
#define RS5C372_CTRL2_24 (1 << 5) |
Definition at line 56 of file rtc-rs5c372.c.
#define RS5C372_REG_DAY 4 |
Definition at line 32 of file rtc-rs5c372.c.
#define RS5C372_REG_HOURS 2 |
Definition at line 30 of file rtc-rs5c372.c.
#define RS5C372_REG_MINS 1 |
Definition at line 29 of file rtc-rs5c372.c.
#define RS5C372_REG_MONTH 5 |
Definition at line 33 of file rtc-rs5c372.c.
#define RS5C372_REG_SECS 0 |
Definition at line 28 of file rtc-rs5c372.c.
#define RS5C372_REG_TRIM 7 |
Definition at line 35 of file rtc-rs5c372.c.
#define RS5C372_REG_WDAY 3 |
Definition at line 31 of file rtc-rs5c372.c.
#define RS5C372_REG_YEAR 6 |
Definition at line 34 of file rtc-rs5c372.c.
#define rs5c372_rtc_proc NULL |
Definition at line 433 of file rtc-rs5c372.c.
#define RS5C372_TRIM_MASK 0x7F |
Definition at line 37 of file rtc-rs5c372.c.
#define RS5C372_TRIM_XSL 0x80 |
Definition at line 36 of file rtc-rs5c372.c.
#define RS5C372A_CTRL1_SL1 (1 << 5) |
Definition at line 51 of file rtc-rs5c372.c.
Definition at line 65 of file rtc-rs5c372.c.
#define RS5C_CTRL1_AALE (1 << 7) /* or WALE */ |
Definition at line 48 of file rtc-rs5c372.c.
#define RS5C_CTRL1_BALE (1 << 6) /* or DALE */ |
Definition at line 49 of file rtc-rs5c372.c.
Definition at line 53 of file rtc-rs5c372.c.
Definition at line 54 of file rtc-rs5c372.c.
#define RS5C_CTRL1_CT_MASK (7 << 0) |
Definition at line 52 of file rtc-rs5c372.c.
#define RS5C_CTRL2_AAFG (1 << 1) /* or WAFG */ |
Definition at line 60 of file rtc-rs5c372.c.
#define RS5C_CTRL2_BAFG (1 << 0) /* or DAFG */ |
Definition at line 61 of file rtc-rs5c372.c.
#define RS5C_CTRL2_CTFG (1 << 2) |
Definition at line 59 of file rtc-rs5c372.c.
Definition at line 58 of file rtc-rs5c372.c.
#define RS5C_REG_ALARM_A_HOURS 9 |
Definition at line 40 of file rtc-rs5c372.c.
#define RS5C_REG_ALARM_A_MIN 8 /* or ALARM_W */ |
Definition at line 39 of file rtc-rs5c372.c.
#define RS5C_REG_ALARM_A_WDAY 10 |
Definition at line 41 of file rtc-rs5c372.c.
#define RS5C_REG_ALARM_B_HOURS 12 |
Definition at line 44 of file rtc-rs5c372.c.
#define RS5C_REG_ALARM_B_MIN 11 /* or ALARM_D */ |
Definition at line 43 of file rtc-rs5c372.c.
#define RS5C_REG_ALARM_B_WDAY 13 /* (ALARM_B only) */ |
Definition at line 45 of file rtc-rs5c372.c.
#define RS5C_REG_CTRL1 14 |
Definition at line 47 of file rtc-rs5c372.c.
#define RS5C_REG_CTRL2 15 |
Definition at line 55 of file rtc-rs5c372.c.
#define RV5C387_CTRL1_24 (1 << 5) |
Definition at line 50 of file rtc-rs5c372.c.
enum rtc_type |
Definition at line 68 of file rtc-rs5c372.c.
MODULE_AUTHOR | ( | "Pavel Mironchik <[email protected]> | , |
""Alessandro Zummo< a.zummo @towertech.it > | , | ||
""Paul Mundt< lethal @linux-sh.org >" | |||
) |
MODULE_DEVICE_TABLE | ( | i2c | , |
rs5c372_id | |||
) |
module_i2c_driver | ( | rs5c372_driver | ) |
MODULE_LICENSE | ( | "GPL" | ) |
MODULE_VERSION | ( | DRV_VERSION | ) |