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

Go to the source code of this file.

Data Structures

struct  snvs_rtc_data
 

Macros

#define SNVS_LPCR   0x04
 
#define SNVS_LPSR   0x18
 
#define SNVS_LPSRTCMR   0x1c
 
#define SNVS_LPSRTCLR   0x20
 
#define SNVS_LPTAR   0x24
 
#define SNVS_LPPGDR   0x30
 
#define SNVS_LPCR_SRTC_ENV   (1 << 0)
 
#define SNVS_LPCR_LPTA_EN   (1 << 1)
 
#define SNVS_LPCR_LPWUI_EN   (1 << 3)
 
#define SNVS_LPSR_LPTA   (1 << 0)
 
#define SNVS_LPPGDR_INIT   0x41736166
 
#define CNTR_TO_SECS_SH   15
 

Functions

 MODULE_DEVICE_TABLE (of, snvs_dt_ids)
 
 module_platform_driver (snvs_rtc_driver)
 
 MODULE_AUTHOR ("Freescale Semiconductor, Inc.")
 
 MODULE_DESCRIPTION ("Freescale SNVS RTC Driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define CNTR_TO_SECS_SH   15

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

#define SNVS_LPCR   0x04

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

#define SNVS_LPCR_LPTA_EN   (1 << 1)

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

#define SNVS_LPCR_LPWUI_EN   (1 << 3)

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

#define SNVS_LPCR_SRTC_ENV   (1 << 0)

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

#define SNVS_LPPGDR   0x30

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

#define SNVS_LPPGDR_INIT   0x41736166

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

#define SNVS_LPSR   0x18

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

#define SNVS_LPSR_LPTA   (1 << 0)

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

#define SNVS_LPSRTCLR   0x20

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

#define SNVS_LPSRTCMR   0x1c

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

#define SNVS_LPTAR   0x24

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

Function Documentation

MODULE_AUTHOR ( "Freescale  Semiconductor,
Inc."   
)
MODULE_DESCRIPTION ( "Freescale SNVS RTC Driver"  )
MODULE_DEVICE_TABLE ( of  ,
snvs_dt_ids   
)
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( snvs_rtc_driver  )