Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
at91_rtc.h File Reference

Go to the source code of this file.

Macros

#define AT91_RTC_CR   0x00 /* Control Register */
 
#define AT91_RTC_UPDTIM   (1 << 0) /* Update Request Time Register */
 
#define AT91_RTC_UPDCAL   (1 << 1) /* Update Request Calendar Register */
 
#define AT91_RTC_TIMEVSEL   (3 << 8) /* Time Event Selection */
 
#define AT91_RTC_TIMEVSEL_MINUTE   (0 << 8)
 
#define AT91_RTC_TIMEVSEL_HOUR   (1 << 8)
 
#define AT91_RTC_TIMEVSEL_DAY24   (2 << 8)
 
#define AT91_RTC_TIMEVSEL_DAY12   (3 << 8)
 
#define AT91_RTC_CALEVSEL   (3 << 16) /* Calendar Event Selection */
 
#define AT91_RTC_CALEVSEL_WEEK   (0 << 16)
 
#define AT91_RTC_CALEVSEL_MONTH   (1 << 16)
 
#define AT91_RTC_CALEVSEL_YEAR   (2 << 16)
 
#define AT91_RTC_MR   0x04 /* Mode Register */
 
#define AT91_RTC_HRMOD   (1 << 0) /* 12/24 Hour Mode */
 
#define AT91_RTC_TIMR   0x08 /* Time Register */
 
#define AT91_RTC_SEC   (0x7f << 0) /* Current Second */
 
#define AT91_RTC_MIN   (0x7f << 8) /* Current Minute */
 
#define AT91_RTC_HOUR   (0x3f << 16) /* Current Hour */
 
#define AT91_RTC_AMPM   (1 << 22) /* Ante Meridiem Post Meridiem Indicator */
 
#define AT91_RTC_CALR   0x0c /* Calendar Register */
 
#define AT91_RTC_CENT   (0x7f << 0) /* Current Century */
 
#define AT91_RTC_YEAR   (0xff << 8) /* Current Year */
 
#define AT91_RTC_MONTH   (0x1f << 16) /* Current Month */
 
#define AT91_RTC_DAY   (7 << 21) /* Current Day */
 
#define AT91_RTC_DATE   (0x3f << 24) /* Current Date */
 
#define AT91_RTC_TIMALR   0x10 /* Time Alarm Register */
 
#define AT91_RTC_SECEN   (1 << 7) /* Second Alarm Enable */
 
#define AT91_RTC_MINEN   (1 << 15) /* Minute Alarm Enable */
 
#define AT91_RTC_HOUREN   (1 << 23) /* Hour Alarm Enable */
 
#define AT91_RTC_CALALR   0x14 /* Calendar Alarm Register */
 
#define AT91_RTC_MTHEN   (1 << 23) /* Month Alarm Enable */
 
#define AT91_RTC_DATEEN   (1 << 31) /* Date Alarm Enable */
 
#define AT91_RTC_SR   0x18 /* Status Register */
 
#define AT91_RTC_ACKUPD   (1 << 0) /* Acknowledge for Update */
 
#define AT91_RTC_ALARM   (1 << 1) /* Alarm Flag */
 
#define AT91_RTC_SECEV   (1 << 2) /* Second Event */
 
#define AT91_RTC_TIMEV   (1 << 3) /* Time Event */
 
#define AT91_RTC_CALEV   (1 << 4) /* Calendar Event */
 
#define AT91_RTC_SCCR   0x1c /* Status Clear Command Register */
 
#define AT91_RTC_IER   0x20 /* Interrupt Enable Register */
 
#define AT91_RTC_IDR   0x24 /* Interrupt Disable Register */
 
#define AT91_RTC_IMR   0x28 /* Interrupt Mask Register */
 
#define AT91_RTC_VER   0x2c /* Valid Entry Register */
 
#define AT91_RTC_NVTIM   (1 << 0) /* Non valid Time */
 
#define AT91_RTC_NVCAL   (1 << 1) /* Non valid Calendar */
 
#define AT91_RTC_NVTIMALR   (1 << 2) /* Non valid Time Alarm */
 
#define AT91_RTC_NVCALALR   (1 << 3) /* Non valid Calendar Alarm */
 

Macro Definition Documentation

#define AT91_RTC_ACKUPD   (1 << 0) /* Acknowledge for Update */

Definition at line 58 of file at91_rtc.h.

#define AT91_RTC_ALARM   (1 << 1) /* Alarm Flag */

Definition at line 59 of file at91_rtc.h.

#define AT91_RTC_AMPM   (1 << 22) /* Ante Meridiem Post Meridiem Indicator */

Definition at line 39 of file at91_rtc.h.

#define AT91_RTC_CALALR   0x14 /* Calendar Alarm Register */

Definition at line 53 of file at91_rtc.h.

#define AT91_RTC_CALEV   (1 << 4) /* Calendar Event */

Definition at line 62 of file at91_rtc.h.

#define AT91_RTC_CALEVSEL   (3 << 16) /* Calendar Event Selection */

Definition at line 27 of file at91_rtc.h.

#define AT91_RTC_CALEVSEL_MONTH   (1 << 16)

Definition at line 29 of file at91_rtc.h.

#define AT91_RTC_CALEVSEL_WEEK   (0 << 16)

Definition at line 28 of file at91_rtc.h.

#define AT91_RTC_CALEVSEL_YEAR   (2 << 16)

Definition at line 30 of file at91_rtc.h.

#define AT91_RTC_CALR   0x0c /* Calendar Register */

Definition at line 41 of file at91_rtc.h.

#define AT91_RTC_CENT   (0x7f << 0) /* Current Century */

Definition at line 42 of file at91_rtc.h.

#define AT91_RTC_CR   0x00 /* Control Register */

Definition at line 19 of file at91_rtc.h.

#define AT91_RTC_DATE   (0x3f << 24) /* Current Date */

Definition at line 46 of file at91_rtc.h.

#define AT91_RTC_DATEEN   (1 << 31) /* Date Alarm Enable */

Definition at line 55 of file at91_rtc.h.

#define AT91_RTC_DAY   (7 << 21) /* Current Day */

Definition at line 45 of file at91_rtc.h.

#define AT91_RTC_HOUR   (0x3f << 16) /* Current Hour */

Definition at line 38 of file at91_rtc.h.

#define AT91_RTC_HOUREN   (1 << 23) /* Hour Alarm Enable */

Definition at line 51 of file at91_rtc.h.

#define AT91_RTC_HRMOD   (1 << 0) /* 12/24 Hour Mode */

Definition at line 33 of file at91_rtc.h.

#define AT91_RTC_IDR   0x24 /* Interrupt Disable Register */

Definition at line 66 of file at91_rtc.h.

#define AT91_RTC_IER   0x20 /* Interrupt Enable Register */

Definition at line 65 of file at91_rtc.h.

#define AT91_RTC_IMR   0x28 /* Interrupt Mask Register */

Definition at line 67 of file at91_rtc.h.

#define AT91_RTC_MIN   (0x7f << 8) /* Current Minute */

Definition at line 37 of file at91_rtc.h.

#define AT91_RTC_MINEN   (1 << 15) /* Minute Alarm Enable */

Definition at line 50 of file at91_rtc.h.

#define AT91_RTC_MONTH   (0x1f << 16) /* Current Month */

Definition at line 44 of file at91_rtc.h.

#define AT91_RTC_MR   0x04 /* Mode Register */

Definition at line 32 of file at91_rtc.h.

#define AT91_RTC_MTHEN   (1 << 23) /* Month Alarm Enable */

Definition at line 54 of file at91_rtc.h.

#define AT91_RTC_NVCAL   (1 << 1) /* Non valid Calendar */

Definition at line 71 of file at91_rtc.h.

#define AT91_RTC_NVCALALR   (1 << 3) /* Non valid Calendar Alarm */

Definition at line 73 of file at91_rtc.h.

#define AT91_RTC_NVTIM   (1 << 0) /* Non valid Time */

Definition at line 70 of file at91_rtc.h.

#define AT91_RTC_NVTIMALR   (1 << 2) /* Non valid Time Alarm */

Definition at line 72 of file at91_rtc.h.

#define AT91_RTC_SCCR   0x1c /* Status Clear Command Register */

Definition at line 64 of file at91_rtc.h.

#define AT91_RTC_SEC   (0x7f << 0) /* Current Second */

Definition at line 36 of file at91_rtc.h.

#define AT91_RTC_SECEN   (1 << 7) /* Second Alarm Enable */

Definition at line 49 of file at91_rtc.h.

#define AT91_RTC_SECEV   (1 << 2) /* Second Event */

Definition at line 60 of file at91_rtc.h.

#define AT91_RTC_SR   0x18 /* Status Register */

Definition at line 57 of file at91_rtc.h.

#define AT91_RTC_TIMALR   0x10 /* Time Alarm Register */

Definition at line 48 of file at91_rtc.h.

#define AT91_RTC_TIMEV   (1 << 3) /* Time Event */

Definition at line 61 of file at91_rtc.h.

#define AT91_RTC_TIMEVSEL   (3 << 8) /* Time Event Selection */

Definition at line 22 of file at91_rtc.h.

#define AT91_RTC_TIMEVSEL_DAY12   (3 << 8)

Definition at line 26 of file at91_rtc.h.

#define AT91_RTC_TIMEVSEL_DAY24   (2 << 8)

Definition at line 25 of file at91_rtc.h.

#define AT91_RTC_TIMEVSEL_HOUR   (1 << 8)

Definition at line 24 of file at91_rtc.h.

#define AT91_RTC_TIMEVSEL_MINUTE   (0 << 8)

Definition at line 23 of file at91_rtc.h.

#define AT91_RTC_TIMR   0x08 /* Time Register */

Definition at line 35 of file at91_rtc.h.

#define AT91_RTC_UPDCAL   (1 << 1) /* Update Request Calendar Register */

Definition at line 21 of file at91_rtc.h.

#define AT91_RTC_UPDTIM   (1 << 0) /* Update Request Time Register */

Definition at line 20 of file at91_rtc.h.

#define AT91_RTC_VER   0x2c /* Valid Entry Register */

Definition at line 69 of file at91_rtc.h.

#define AT91_RTC_YEAR   (0xff << 8) /* Current Year */

Definition at line 43 of file at91_rtc.h.