Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
rtc-pm8xxx.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/rtc.h>
#include <linux/pm.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/mfd/pm8xxx/core.h>
#include <linux/mfd/pm8xxx/rtc.h>

Go to the source code of this file.

Data Structures

struct  pm8xxx_rtc
 

Macros

#define PM8XXX_ALARM_CTRL_OFFSET   0x01
 
#define PM8XXX_RTC_WRITE_OFFSET   0x02
 
#define PM8XXX_RTC_READ_OFFSET   0x06
 
#define PM8XXX_ALARM_RW_OFFSET   0x0A
 
#define PM8xxx_RTC_ENABLE   BIT(7)
 
#define PM8xxx_RTC_ALARM_ENABLE   BIT(1)
 
#define PM8xxx_RTC_ALARM_CLEAR   BIT(0)
 
#define NUM_8_BIT_RTC_REGS   0x4
 

Functions

 module_platform_driver (pm8xxx_rtc_driver)
 
 MODULE_ALIAS ("platform:rtc-pm8xxx")
 
 MODULE_DESCRIPTION ("PMIC8xxx RTC driver")
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_AUTHOR ("Anirudh Ghayal <[email protected]>")
 

Macro Definition Documentation

#define NUM_8_BIT_RTC_REGS   0x4

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

#define PM8XXX_ALARM_CTRL_OFFSET   0x01

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

#define PM8XXX_ALARM_RW_OFFSET   0x0A

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

#define PM8xxx_RTC_ALARM_CLEAR   BIT(0)

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

#define PM8xxx_RTC_ALARM_ENABLE   BIT(1)

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

#define PM8xxx_RTC_ENABLE   BIT(7)

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

#define PM8XXX_RTC_READ_OFFSET   0x06

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

#define PM8XXX_RTC_WRITE_OFFSET   0x02

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

Function Documentation

MODULE_ALIAS ( "platform:rtc-pm8xxx"  )
MODULE_AUTHOR ( "Anirudh Ghayal <[email protected]>"  )
MODULE_DESCRIPTION ( "PMIC8xxx RTC driver )
MODULE_LICENSE ( "GPL v2 )
module_platform_driver ( pm8xxx_rtc_driver  )