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

Go to the source code of this file.

Macros

#define SIRFSOC_CPUIOBRG_CTRL   0x00
 
#define SIRFSOC_CPUIOBRG_WRBE   0x04
 
#define SIRFSOC_CPUIOBRG_ADDR   0x08
 
#define SIRFSOC_CPUIOBRG_DATA   0x0c
 

Functions

void sirfsoc_rtc_iobrg_wait_sync (void)
 
void sirfsoc_rtc_iobrg_besyncing (void)
 
 EXPORT_SYMBOL_GPL (sirfsoc_rtc_iobrg_besyncing)
 
u32 __sirfsoc_rtc_iobrg_readl (u32 addr)
 
u32 sirfsoc_rtc_iobrg_readl (u32 addr)
 
 EXPORT_SYMBOL_GPL (sirfsoc_rtc_iobrg_readl)
 
void sirfsoc_rtc_iobrg_pre_writel (u32 val, u32 addr)
 
void sirfsoc_rtc_iobrg_writel (u32 val, u32 addr)
 
 EXPORT_SYMBOL_GPL (sirfsoc_rtc_iobrg_writel)
 
 postcore_initcall (sirfsoc_rtciobrg_init)
 
 MODULE_AUTHOR ("Zhiwu Song <[email protected]>, ""Barry Song <[email protected]>")
 
 MODULE_DESCRIPTION ("CSR SiRFprimaII rtc io bridge")
 
 MODULE_LICENSE ("GPL")
 

Variables

void __iomemsirfsoc_rtciobrg_base
 

Macro Definition Documentation

#define SIRFSOC_CPUIOBRG_ADDR   0x08

Definition at line 20 of file rtciobrg.c.

#define SIRFSOC_CPUIOBRG_CTRL   0x00

Definition at line 18 of file rtciobrg.c.

#define SIRFSOC_CPUIOBRG_DATA   0x0c

Definition at line 21 of file rtciobrg.c.

#define SIRFSOC_CPUIOBRG_WRBE   0x04

Definition at line 19 of file rtciobrg.c.

Function Documentation

u32 __sirfsoc_rtc_iobrg_readl ( u32  addr)

Definition at line 52 of file rtciobrg.c.

EXPORT_SYMBOL_GPL ( sirfsoc_rtc_iobrg_besyncing  )
EXPORT_SYMBOL_GPL ( sirfsoc_rtc_iobrg_readl  )
EXPORT_SYMBOL_GPL ( sirfsoc_rtc_iobrg_writel  )
MODULE_AUTHOR ( "Zhiwu Song <[email protected] ,
""Barry Song< baohua.song @csr.com >"   
)
MODULE_DESCRIPTION ( "CSR SiRFprimaII rtc io bridge )
MODULE_LICENSE ( "GPL"  )
postcore_initcall ( sirfsoc_rtciobrg_init  )
void sirfsoc_rtc_iobrg_besyncing ( void  )

Definition at line 40 of file rtciobrg.c.

void sirfsoc_rtc_iobrg_pre_writel ( u32  val,
u32  addr 
)

Definition at line 79 of file rtciobrg.c.

u32 sirfsoc_rtc_iobrg_readl ( u32  addr)

Definition at line 65 of file rtciobrg.c.

void sirfsoc_rtc_iobrg_wait_sync ( void  )

Definition at line 34 of file rtciobrg.c.

void sirfsoc_rtc_iobrg_writel ( u32  val,
u32  addr 
)

Definition at line 89 of file rtciobrg.c.

Variable Documentation

void __iomem* sirfsoc_rtciobrg_base

Definition at line 27 of file rtciobrg.c.