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

Go to the source code of this file.

Data Structures

struct  ds1390
 

Macros

#define DS1390_REG_100THS   0x00
 
#define DS1390_REG_SECONDS   0x01
 
#define DS1390_REG_MINUTES   0x02
 
#define DS1390_REG_HOURS   0x03
 
#define DS1390_REG_DAY   0x04
 
#define DS1390_REG_DATE   0x05
 
#define DS1390_REG_MONTH_CENT   0x06
 
#define DS1390_REG_YEAR   0x07
 
#define DS1390_REG_ALARM_100THS   0x08
 
#define DS1390_REG_ALARM_SECONDS   0x09
 
#define DS1390_REG_ALARM_MINUTES   0x0A
 
#define DS1390_REG_ALARM_HOURS   0x0B
 
#define DS1390_REG_ALARM_DAY_DATE   0x0C
 
#define DS1390_REG_CONTROL   0x0D
 
#define DS1390_REG_STATUS   0x0E
 
#define DS1390_REG_TRICKLE   0x0F
 

Functions

 module_spi_driver (ds1390_driver)
 
 MODULE_DESCRIPTION ("Dallas/Maxim DS1390/93/94 SPI RTC driver")
 
 MODULE_AUTHOR ("Mark Jackson <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("spi:rtc-ds1390")
 

Macro Definition Documentation

#define DS1390_REG_100THS   0x00

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

#define DS1390_REG_ALARM_100THS   0x08

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

#define DS1390_REG_ALARM_DAY_DATE   0x0C

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

#define DS1390_REG_ALARM_HOURS   0x0B

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

#define DS1390_REG_ALARM_MINUTES   0x0A

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

#define DS1390_REG_ALARM_SECONDS   0x09

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

#define DS1390_REG_CONTROL   0x0D

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

#define DS1390_REG_DATE   0x05

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

#define DS1390_REG_DAY   0x04

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

#define DS1390_REG_HOURS   0x03

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

#define DS1390_REG_MINUTES   0x02

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

#define DS1390_REG_MONTH_CENT   0x06

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

#define DS1390_REG_SECONDS   0x01

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

#define DS1390_REG_STATUS   0x0E

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

#define DS1390_REG_TRICKLE   0x0F

Definition at line 41 of file rtc-ds1390.c.

#define DS1390_REG_YEAR   0x07

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

Function Documentation

MODULE_ALIAS ( "spi:rtc-ds1390 )
MODULE_AUTHOR ( "Mark Jackson <[email protected]>"  )
MODULE_DESCRIPTION ( "Dallas/Maxim DS1390/93/94 SPI RTC driver )
MODULE_LICENSE ( "GPL"  )
module_spi_driver ( ds1390_driver  )