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

Go to the source code of this file.

Data Structures

struct  rtc_at32ap700x
 

Macros

#define RTC_CTRL   0x00
 
#define RTC_CTRL_EN   0
 
#define RTC_CTRL_PCLR   1
 
#define RTC_CTRL_TOPEN   2
 
#define RTC_CTRL_PSEL   8
 
#define RTC_VAL   0x04
 
#define RTC_TOP   0x08
 
#define RTC_IER   0x10
 
#define RTC_IER_TOPI   0
 
#define RTC_IDR   0x14
 
#define RTC_IDR_TOPI   0
 
#define RTC_IMR   0x18
 
#define RTC_IMR_TOPI   0
 
#define RTC_ISR   0x1c
 
#define RTC_ISR_TOPI   0
 
#define RTC_ICR   0x20
 
#define RTC_ICR_TOPI   0
 
#define RTC_BIT(name)   (1 << RTC_##name)
 
#define RTC_BF(name, value)   ((value) << RTC_##name)
 
#define rtc_readl(dev, reg)   __raw_readl((dev)->regs + RTC_##reg)
 
#define rtc_writel(dev, reg, value)   __raw_writel((value), (dev)->regs + RTC_##reg)
 

Functions

 MODULE_ALIAS ("platform:at32ap700x_rtc")
 
 module_init (at32_rtc_init)
 
 module_exit (at32_rtc_exit)
 
 MODULE_AUTHOR ("Hans-Christian Egtvedt <[email protected]>")
 
 MODULE_DESCRIPTION ("Real time clock for AVR32 AT32AP700x")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define RTC_BF (   name,
  value 
)    ((value) << RTC_##name)

Definition at line 54 of file rtc-at32ap700x.c.

#define RTC_BIT (   name)    (1 << RTC_##name)

Definition at line 53 of file rtc-at32ap700x.c.

#define RTC_CTRL   0x00

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

#define RTC_CTRL_EN   0

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

#define RTC_CTRL_PCLR   1

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

#define RTC_CTRL_PSEL   8

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

#define RTC_CTRL_TOPEN   2

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

#define RTC_ICR   0x20

Definition at line 50 of file rtc-at32ap700x.c.

#define RTC_ICR_TOPI   0

Definition at line 51 of file rtc-at32ap700x.c.

#define RTC_IDR   0x14

Definition at line 41 of file rtc-at32ap700x.c.

#define RTC_IDR_TOPI   0

Definition at line 42 of file rtc-at32ap700x.c.

#define RTC_IER   0x10

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

#define RTC_IER_TOPI   0

Definition at line 39 of file rtc-at32ap700x.c.

#define RTC_IMR   0x18

Definition at line 44 of file rtc-at32ap700x.c.

#define RTC_IMR_TOPI   0

Definition at line 45 of file rtc-at32ap700x.c.

#define RTC_ISR   0x1c

Definition at line 47 of file rtc-at32ap700x.c.

#define RTC_ISR_TOPI   0

Definition at line 48 of file rtc-at32ap700x.c.

#define rtc_readl (   dev,
  reg 
)    __raw_readl((dev)->regs + RTC_##reg)

Definition at line 56 of file rtc-at32ap700x.c.

#define RTC_TOP   0x08

Definition at line 36 of file rtc-at32ap700x.c.

#define RTC_VAL   0x04

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

#define rtc_writel (   dev,
  reg,
  value 
)    __raw_writel((value), (dev)->regs + RTC_##reg)

Definition at line 58 of file rtc-at32ap700x.c.

Function Documentation

MODULE_ALIAS ( "platform:at32ap700x_rtc"  )
MODULE_AUTHOR ( "Hans-Christian Egtvedt <[email protected]>"  )
MODULE_DESCRIPTION ( "Real time clock for AVR32 AT32AP700x"  )
module_exit ( at32_rtc_exit  )
module_init ( at32_rtc_init  )
MODULE_LICENSE ( "GPL"  )