Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
rtc-stmp3xxx.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/io.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/interrupt.h>
#include <linux/rtc.h>
#include <linux/slab.h>
#include <linux/of_device.h>
#include <mach/common.h>

Go to the source code of this file.

Data Structures

struct  stmp3xxx_rtc_data
 

Macros

#define STMP3XXX_RTC_CTRL   0x0
 
#define STMP3XXX_RTC_CTRL_SET   0x4
 
#define STMP3XXX_RTC_CTRL_CLR   0x8
 
#define STMP3XXX_RTC_CTRL_ALARM_IRQ_EN   0x00000001
 
#define STMP3XXX_RTC_CTRL_ONEMSEC_IRQ_EN   0x00000002
 
#define STMP3XXX_RTC_CTRL_ALARM_IRQ   0x00000004
 
#define STMP3XXX_RTC_STAT   0x10
 
#define STMP3XXX_RTC_STAT_STALE_SHIFT   16
 
#define STMP3XXX_RTC_STAT_RTC_PRESENT   0x80000000
 
#define STMP3XXX_RTC_SECONDS   0x30
 
#define STMP3XXX_RTC_ALARM   0x40
 
#define STMP3XXX_RTC_PERSISTENT0   0x60
 
#define STMP3XXX_RTC_PERSISTENT0_SET   0x64
 
#define STMP3XXX_RTC_PERSISTENT0_CLR   0x68
 
#define STMP3XXX_RTC_PERSISTENT0_ALARM_WAKE_EN   0x00000002
 
#define STMP3XXX_RTC_PERSISTENT0_ALARM_EN   0x00000004
 
#define STMP3XXX_RTC_PERSISTENT0_ALARM_WAKE   0x00000080
 
#define stmp3xxx_rtc_suspend   NULL
 
#define stmp3xxx_rtc_resume   NULL
 

Functions

 MODULE_DEVICE_TABLE (of, rtc_dt_ids)
 
 module_platform_driver (stmp3xxx_rtcdrv)
 
 MODULE_DESCRIPTION ("STMP3xxx RTC Driver")
 
 MODULE_AUTHOR ("dmitry pervushin <[email protected]> and ""Wolfram Sang <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define STMP3XXX_RTC_ALARM   0x40

Definition at line 45 of file rtc-stmp3xxx.c.

#define STMP3XXX_RTC_CTRL   0x0

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

#define STMP3XXX_RTC_CTRL_ALARM_IRQ   0x00000004

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

#define STMP3XXX_RTC_CTRL_ALARM_IRQ_EN   0x00000001

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

#define STMP3XXX_RTC_CTRL_CLR   0x8

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

#define STMP3XXX_RTC_CTRL_ONEMSEC_IRQ_EN   0x00000002

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

#define STMP3XXX_RTC_CTRL_SET   0x4

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

#define STMP3XXX_RTC_PERSISTENT0   0x60

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

#define STMP3XXX_RTC_PERSISTENT0_ALARM_EN   0x00000004

Definition at line 51 of file rtc-stmp3xxx.c.

#define STMP3XXX_RTC_PERSISTENT0_ALARM_WAKE   0x00000080

Definition at line 52 of file rtc-stmp3xxx.c.

#define STMP3XXX_RTC_PERSISTENT0_ALARM_WAKE_EN   0x00000002

Definition at line 50 of file rtc-stmp3xxx.c.

#define STMP3XXX_RTC_PERSISTENT0_CLR   0x68

Definition at line 49 of file rtc-stmp3xxx.c.

#define STMP3XXX_RTC_PERSISTENT0_SET   0x64

Definition at line 48 of file rtc-stmp3xxx.c.

#define stmp3xxx_rtc_resume   NULL

Definition at line 266 of file rtc-stmp3xxx.c.

#define STMP3XXX_RTC_SECONDS   0x30

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

#define STMP3XXX_RTC_STAT   0x10

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

#define STMP3XXX_RTC_STAT_RTC_PRESENT   0x80000000

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

#define STMP3XXX_RTC_STAT_STALE_SHIFT   16

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

#define stmp3xxx_rtc_suspend   NULL

Definition at line 265 of file rtc-stmp3xxx.c.

Function Documentation

MODULE_AUTHOR ( "dmitry pervushin <[email protected]> and ""Wolfram Sang <[email protected]>"  )
MODULE_DESCRIPTION ( "STMP3xxx RTC Driver"  )
MODULE_DEVICE_TABLE ( of  ,
rtc_dt_ids   
)
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( stmp3xxx_rtcdrv  )