Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
regs-rtc.h File Reference
#include <mach/addr-map.h>

Go to the source code of this file.

Macros

#define RTC_VIRT_BASE   (APB_VIRT_BASE + 0x10000)
 
#define RTC_REG(x)   (*((volatile u32 __iomem *)(RTC_VIRT_BASE + (x))))
 
#define RCNR   RTC_REG(0x00) /* RTC Count Register */
 
#define RTAR   RTC_REG(0x04) /* RTC Alarm Register */
 
#define RTSR   RTC_REG(0x08) /* RTC Status Register */
 
#define RTTR   RTC_REG(0x0C) /* RTC Timer Trim Register */
 
#define RTSR_HZE   (1 << 3) /* HZ interrupt enable */
 
#define RTSR_ALE   (1 << 2) /* RTC alarm interrupt enable */
 
#define RTSR_HZ   (1 << 1) /* HZ rising-edge detected */
 
#define RTSR_AL   (1 << 0) /* RTC alarm detected */
 

Macro Definition Documentation

#define RCNR   RTC_REG(0x00) /* RTC Count Register */

Definition at line 13 of file regs-rtc.h.

#define RTAR   RTC_REG(0x04) /* RTC Alarm Register */

Definition at line 14 of file regs-rtc.h.

#define RTC_REG (   x)    (*((volatile u32 __iomem *)(RTC_VIRT_BASE + (x))))

Definition at line 7 of file regs-rtc.h.

#define RTC_VIRT_BASE   (APB_VIRT_BASE + 0x10000)

Definition at line 6 of file regs-rtc.h.

#define RTSR   RTC_REG(0x08) /* RTC Status Register */

Definition at line 15 of file regs-rtc.h.

#define RTSR_AL   (1 << 0) /* RTC alarm detected */

Definition at line 21 of file regs-rtc.h.

#define RTSR_ALE   (1 << 2) /* RTC alarm interrupt enable */

Definition at line 19 of file regs-rtc.h.

#define RTSR_HZ   (1 << 1) /* HZ rising-edge detected */

Definition at line 20 of file regs-rtc.h.

#define RTSR_HZE   (1 << 3) /* HZ interrupt enable */

Definition at line 18 of file regs-rtc.h.

#define RTTR   RTC_REG(0x0C) /* RTC Timer Trim Register */

Definition at line 16 of file regs-rtc.h.