Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
rtc-pcf8563.c File Reference
#include <linux/i2c.h>
#include <linux/bcd.h>
#include <linux/rtc.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/of.h>

Go to the source code of this file.

Data Structures

struct  pcf8563
 

Macros

#define DRV_VERSION   "0.4.3"
 
#define PCF8563_REG_ST1   0x00 /* status */
 
#define PCF8563_REG_ST2   0x01
 
#define PCF8563_REG_SC   0x02 /* datetime */
 
#define PCF8563_REG_MN   0x03
 
#define PCF8563_REG_HR   0x04
 
#define PCF8563_REG_DM   0x05
 
#define PCF8563_REG_DW   0x06
 
#define PCF8563_REG_MO   0x07
 
#define PCF8563_REG_YR   0x08
 
#define PCF8563_REG_AMN   0x09 /* alarm */
 
#define PCF8563_REG_AHR   0x0A
 
#define PCF8563_REG_ADM   0x0B
 
#define PCF8563_REG_ADW   0x0C
 
#define PCF8563_REG_CLKO   0x0D /* clock out */
 
#define PCF8563_REG_TMRC   0x0E /* timer control */
 
#define PCF8563_REG_TMR   0x0F /* timer */
 
#define PCF8563_SC_LV   0x80 /* low voltage */
 
#define PCF8563_MO_C   0x80 /* century */
 
#define pcf8563_rtc_ioctl   NULL
 

Functions

 MODULE_DEVICE_TABLE (i2c, pcf8563_id)
 
 module_i2c_driver (pcf8563_driver)
 
 MODULE_AUTHOR ("Alessandro Zummo <[email protected]>")
 
 MODULE_DESCRIPTION ("Philips PCF8563/Epson RTC8564 RTC driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (DRV_VERSION)
 

Macro Definition Documentation

#define DRV_VERSION   "0.4.3"

Definition at line 24 of file rtc-pcf8563.c.

#define PCF8563_MO_C   0x80 /* century */

Definition at line 47 of file rtc-pcf8563.c.

#define PCF8563_REG_ADM   0x0B

Definition at line 39 of file rtc-pcf8563.c.

#define PCF8563_REG_ADW   0x0C

Definition at line 40 of file rtc-pcf8563.c.

#define PCF8563_REG_AHR   0x0A

Definition at line 38 of file rtc-pcf8563.c.

#define PCF8563_REG_AMN   0x09 /* alarm */

Definition at line 37 of file rtc-pcf8563.c.

#define PCF8563_REG_CLKO   0x0D /* clock out */

Definition at line 42 of file rtc-pcf8563.c.

#define PCF8563_REG_DM   0x05

Definition at line 32 of file rtc-pcf8563.c.

#define PCF8563_REG_DW   0x06

Definition at line 33 of file rtc-pcf8563.c.

#define PCF8563_REG_HR   0x04

Definition at line 31 of file rtc-pcf8563.c.

#define PCF8563_REG_MN   0x03

Definition at line 30 of file rtc-pcf8563.c.

#define PCF8563_REG_MO   0x07

Definition at line 34 of file rtc-pcf8563.c.

#define PCF8563_REG_SC   0x02 /* datetime */

Definition at line 29 of file rtc-pcf8563.c.

#define PCF8563_REG_ST1   0x00 /* status */

Definition at line 26 of file rtc-pcf8563.c.

#define PCF8563_REG_ST2   0x01

Definition at line 27 of file rtc-pcf8563.c.

#define PCF8563_REG_TMR   0x0F /* timer */

Definition at line 44 of file rtc-pcf8563.c.

#define PCF8563_REG_TMRC   0x0E /* timer control */

Definition at line 43 of file rtc-pcf8563.c.

#define PCF8563_REG_YR   0x08

Definition at line 35 of file rtc-pcf8563.c.

#define pcf8563_rtc_ioctl   NULL

Definition at line 224 of file rtc-pcf8563.c.

#define PCF8563_SC_LV   0x80 /* low voltage */

Definition at line 46 of file rtc-pcf8563.c.

Function Documentation

MODULE_AUTHOR ( "Alessandro Zummo <[email protected]>"  )
MODULE_DESCRIPTION ( "Philips PCF8563/Epson RTC8564 RTC driver )
MODULE_DEVICE_TABLE ( i2c  ,
pcf8563_id   
)
module_i2c_driver ( pcf8563_driver  )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( DRV_VERSION  )