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

Go to the source code of this file.

Macros

#define EM3027_REG_ON_OFF_CTRL   0x00
 
#define EM3027_REG_IRQ_CTRL   0x01
 
#define EM3027_REG_IRQ_FLAGS   0x02
 
#define EM3027_REG_STATUS   0x03
 
#define EM3027_REG_RST_CTRL   0x04
 
#define EM3027_REG_WATCH_SEC   0x08
 
#define EM3027_REG_WATCH_MIN   0x09
 
#define EM3027_REG_WATCH_HOUR   0x0a
 
#define EM3027_REG_WATCH_DATE   0x0b
 
#define EM3027_REG_WATCH_DAY   0x0c
 
#define EM3027_REG_WATCH_MON   0x0d
 
#define EM3027_REG_WATCH_YEAR   0x0e
 
#define EM3027_REG_ALARM_SEC   0x10
 
#define EM3027_REG_ALARM_MIN   0x11
 
#define EM3027_REG_ALARM_HOUR   0x12
 
#define EM3027_REG_ALARM_DATE   0x13
 
#define EM3027_REG_ALARM_DAY   0x14
 
#define EM3027_REG_ALARM_MON   0x15
 
#define EM3027_REG_ALARM_YEAR   0x16
 

Functions

 module_i2c_driver (em3027_driver)
 
 MODULE_AUTHOR ("Mike Rapoport <[email protected]>")
 
 MODULE_DESCRIPTION ("EM Microelectronic EM3027 RTC driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define EM3027_REG_ALARM_DATE   0x13

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

#define EM3027_REG_ALARM_DAY   0x14

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

#define EM3027_REG_ALARM_HOUR   0x12

Definition at line 36 of file rtc-em3027.c.

#define EM3027_REG_ALARM_MIN   0x11

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

#define EM3027_REG_ALARM_MON   0x15

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

#define EM3027_REG_ALARM_SEC   0x10

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

#define EM3027_REG_ALARM_YEAR   0x16

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

#define EM3027_REG_IRQ_CTRL   0x01

Definition at line 21 of file rtc-em3027.c.

#define EM3027_REG_IRQ_FLAGS   0x02

Definition at line 22 of file rtc-em3027.c.

#define EM3027_REG_ON_OFF_CTRL   0x00

Definition at line 20 of file rtc-em3027.c.

#define EM3027_REG_RST_CTRL   0x04

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

#define EM3027_REG_STATUS   0x03

Definition at line 23 of file rtc-em3027.c.

#define EM3027_REG_WATCH_DATE   0x0b

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

#define EM3027_REG_WATCH_DAY   0x0c

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

#define EM3027_REG_WATCH_HOUR   0x0a

Definition at line 28 of file rtc-em3027.c.

#define EM3027_REG_WATCH_MIN   0x09

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

#define EM3027_REG_WATCH_MON   0x0d

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

#define EM3027_REG_WATCH_SEC   0x08

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

#define EM3027_REG_WATCH_YEAR   0x0e

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

Function Documentation

MODULE_AUTHOR ( "Mike Rapoport <[email protected]>"  )
MODULE_DESCRIPTION ( "EM Microelectronic EM3027 RTC driver )
module_i2c_driver ( em3027_driver  )
MODULE_LICENSE ( "GPL"  )