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

Go to the source code of this file.

Macros

#define MAX6902_REG_SECONDS   0x01
 
#define MAX6902_REG_MINUTES   0x03
 
#define MAX6902_REG_HOURS   0x05
 
#define MAX6902_REG_DATE   0x07
 
#define MAX6902_REG_MONTH   0x09
 
#define MAX6902_REG_DAY   0x0B
 
#define MAX6902_REG_YEAR   0x0D
 
#define MAX6902_REG_CONTROL   0x0F
 
#define MAX6902_REG_CENTURY   0x13
 

Functions

 module_spi_driver (max6902_driver)
 
 MODULE_DESCRIPTION ("max6902 spi RTC driver")
 
 MODULE_AUTHOR ("Raphael Assenat")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("spi:rtc-max6902")
 

Macro Definition Documentation

#define MAX6902_REG_CENTURY   0x13

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

#define MAX6902_REG_CONTROL   0x0F

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

#define MAX6902_REG_DATE   0x07

Definition at line 25 of file rtc-max6902.c.

#define MAX6902_REG_DAY   0x0B

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

#define MAX6902_REG_HOURS   0x05

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

#define MAX6902_REG_MINUTES   0x03

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

#define MAX6902_REG_MONTH   0x09

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

#define MAX6902_REG_SECONDS   0x01

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

#define MAX6902_REG_YEAR   0x0D

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

Function Documentation

MODULE_ALIAS ( "spi:rtc-max6902"  )
MODULE_AUTHOR ( "Raphael Assenat"  )
MODULE_DESCRIPTION ( "max6902 spi RTC driver )
MODULE_LICENSE ( "GPL"  )
module_spi_driver ( max6902_driver  )