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

Go to the source code of this file.

Data Structures

struct  rtc_plat_data
 

Macros

#define RTC_TIME_REG_OFFS   0
 
#define RTC_SECONDS_OFFS   0
 
#define RTC_MINUTES_OFFS   8
 
#define RTC_HOURS_OFFS   16
 
#define RTC_WDAY_OFFS   24
 
#define RTC_HOURS_12H_MODE   (1 << 22) /* 12 hours mode */
 
#define RTC_DATE_REG_OFFS   4
 
#define RTC_MDAY_OFFS   0
 
#define RTC_MONTH_OFFS   8
 
#define RTC_YEAR_OFFS   16
 
#define RTC_ALARM_TIME_REG_OFFS   8
 
#define RTC_ALARM_DATE_REG_OFFS   0xc
 
#define RTC_ALARM_VALID   (1 << 7)
 
#define RTC_ALARM_INTERRUPT_MASK_REG_OFFS   0x10
 
#define RTC_ALARM_INTERRUPT_CASUE_REG_OFFS   0x14
 

Functions

 module_init (mv_init)
 
 module_exit (mv_exit)
 
 MODULE_AUTHOR ("Saeed Bishara <[email protected]>")
 
 MODULE_DESCRIPTION ("Marvell RTC driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:rtc-mv")
 

Macro Definition Documentation

#define RTC_ALARM_DATE_REG_OFFS   0xc

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

#define RTC_ALARM_INTERRUPT_CASUE_REG_OFFS   0x14

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

#define RTC_ALARM_INTERRUPT_MASK_REG_OFFS   0x10

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

#define RTC_ALARM_TIME_REG_OFFS   8

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

#define RTC_ALARM_VALID   (1 << 7)

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

#define RTC_DATE_REG_OFFS   4

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

#define RTC_HOURS_12H_MODE   (1 << 22) /* 12 hours mode */

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

#define RTC_HOURS_OFFS   16

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

#define RTC_MDAY_OFFS   0

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

#define RTC_MINUTES_OFFS   8

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

#define RTC_MONTH_OFFS   8

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

#define RTC_SECONDS_OFFS   0

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

#define RTC_TIME_REG_OFFS   0

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

#define RTC_WDAY_OFFS   24

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

#define RTC_YEAR_OFFS   16

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

Function Documentation

MODULE_ALIAS ( "platform:rtc-mv"  )
MODULE_AUTHOR ( "Saeed Bishara <[email protected]>"  )
MODULE_DESCRIPTION ( "Marvell RTC driver )
module_exit ( mv_exit  )
module_init ( mv_init  )
MODULE_LICENSE ( "GPL"  )