Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
rtc-88pm860x.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/mutex.h>
#include <linux/rtc.h>
#include <linux/delay.h>
#include <linux/mfd/core.h>
#include <linux/mfd/88pm860x.h>

Go to the source code of this file.

Data Structures

struct  pm860x_rtc_info
 

Macros

#define VRTC_CALIBRATION
 
#define REG_VRTC_MEAS1   0x7D
 
#define REG0_ADDR   0xB0
 
#define REG1_ADDR   0xB2
 
#define REG2_ADDR   0xB4
 
#define REG3_ADDR   0xB6
 
#define REG0_DATA   0xB1
 
#define REG1_DATA   0xB3
 
#define REG2_DATA   0xB5
 
#define REG3_DATA   0xB7
 
#define MEAS2_VRTC   (1 << 0)
 
#define ALARM_EN   (1 << 3)
 
#define ALARM_WAKEUP   (1 << 4)
 
#define ALARM   (1 << 5)
 
#define RTC1_USE_XO   (1 << 7)
 
#define VRTC_CALIB_INTERVAL   (HZ * 60 * 10) /* 10 minutes */
 
#define pm860x_rtc_dt_init(x, y)   (-1)
 

Functions

 module_platform_driver (pm860x_rtc_driver)
 
 MODULE_DESCRIPTION ("Marvell 88PM860x RTC driver")
 
 MODULE_AUTHOR ("Haojian Zhuang <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define ALARM   (1 << 5)

Definition at line 55 of file rtc-88pm860x.c.

#define ALARM_EN   (1 << 3)

Definition at line 53 of file rtc-88pm860x.c.

#define ALARM_WAKEUP   (1 << 4)

Definition at line 54 of file rtc-88pm860x.c.

#define MEAS2_VRTC   (1 << 0)

Definition at line 50 of file rtc-88pm860x.c.

#define pm860x_rtc_dt_init (   x,
  y 
)    (-1)

Definition at line 307 of file rtc-88pm860x.c.

#define REG0_ADDR   0xB0

Definition at line 39 of file rtc-88pm860x.c.

#define REG0_DATA   0xB1

Definition at line 44 of file rtc-88pm860x.c.

#define REG1_ADDR   0xB2

Definition at line 40 of file rtc-88pm860x.c.

#define REG1_DATA   0xB3

Definition at line 45 of file rtc-88pm860x.c.

#define REG2_ADDR   0xB4

Definition at line 41 of file rtc-88pm860x.c.

#define REG2_DATA   0xB5

Definition at line 46 of file rtc-88pm860x.c.

#define REG3_ADDR   0xB6

Definition at line 42 of file rtc-88pm860x.c.

#define REG3_DATA   0xB7

Definition at line 47 of file rtc-88pm860x.c.

#define REG_VRTC_MEAS1   0x7D

Definition at line 37 of file rtc-88pm860x.c.

#define RTC1_USE_XO   (1 << 7)

Definition at line 56 of file rtc-88pm860x.c.

#define VRTC_CALIB_INTERVAL   (HZ * 60 * 10) /* 10 minutes */

Definition at line 58 of file rtc-88pm860x.c.

#define VRTC_CALIBRATION

Definition at line 23 of file rtc-88pm860x.c.

Function Documentation

MODULE_AUTHOR ( "Haojian Zhuang <[email protected]>"  )
MODULE_DESCRIPTION ( "Marvell 88PM860x RTC driver"  )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( pm860x_rtc_driver  )