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

Go to the source code of this file.

Data Structures

struct  rtc_plat_data
 

Macros

#define RTC_INPUT_CLK_32768HZ   (0x00 << 5)
 
#define RTC_INPUT_CLK_32000HZ   (0x01 << 5)
 
#define RTC_INPUT_CLK_38400HZ   (0x02 << 5)
 
#define RTC_SW_BIT   (1 << 0)
 
#define RTC_ALM_BIT   (1 << 2)
 
#define RTC_1HZ_BIT   (1 << 4)
 
#define RTC_2HZ_BIT   (1 << 7)
 
#define RTC_SAM0_BIT   (1 << 8)
 
#define RTC_SAM1_BIT   (1 << 9)
 
#define RTC_SAM2_BIT   (1 << 10)
 
#define RTC_SAM3_BIT   (1 << 11)
 
#define RTC_SAM4_BIT   (1 << 12)
 
#define RTC_SAM5_BIT   (1 << 13)
 
#define RTC_SAM6_BIT   (1 << 14)
 
#define RTC_SAM7_BIT   (1 << 15)
 
#define PIT_ALL_ON
 
#define RTC_ENABLE_BIT   (1 << 7)
 
#define MAX_PIE_NUM   9
 
#define MAX_PIE_FREQ   512
 
#define MXC_RTC_TIME   0
 
#define MXC_RTC_ALARM   1
 
#define RTC_HOURMIN   0x00 /* 32bit rtc hour/min counter reg */
 
#define RTC_SECOND   0x04 /* 32bit rtc seconds counter reg */
 
#define RTC_ALRM_HM   0x08 /* 32bit rtc alarm hour/min reg */
 
#define RTC_ALRM_SEC   0x0C /* 32bit rtc alarm seconds reg */
 
#define RTC_RTCCTL   0x10 /* 32bit rtc control reg */
 
#define RTC_RTCISR   0x14 /* 32bit rtc interrupt status reg */
 
#define RTC_RTCIENR   0x18 /* 32bit rtc interrupt enable reg */
 
#define RTC_STPWCH   0x1C /* 32bit rtc stopwatch min reg */
 
#define RTC_DAYR   0x20 /* 32bit rtc days counter reg */
 
#define RTC_DAYALARM   0x24 /* 32bit rtc day alarm reg */
 
#define RTC_TEST1   0x28 /* 32bit rtc test reg 1 */
 
#define RTC_TEST2   0x2C /* 32bit rtc test reg 2 */
 
#define RTC_TEST3   0x30 /* 32bit rtc test reg 3 */
 

Macro Definition Documentation

#define MAX_PIE_FREQ   512

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

#define MAX_PIE_NUM   9

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

#define MXC_RTC_ALARM   1

Definition at line 59 of file rtc-mxc.c.

#define MXC_RTC_TIME   0

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

#define PIT_ALL_ON
Value:

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

#define RTC_1HZ_BIT   (1 << 4)

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

#define RTC_2HZ_BIT   (1 << 7)

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

#define RTC_ALM_BIT   (1 << 2)

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

#define RTC_ALRM_HM   0x08 /* 32bit rtc alarm hour/min reg */

Definition at line 63 of file rtc-mxc.c.

#define RTC_ALRM_SEC   0x0C /* 32bit rtc alarm seconds reg */

Definition at line 64 of file rtc-mxc.c.

#define RTC_DAYALARM   0x24 /* 32bit rtc day alarm reg */

Definition at line 70 of file rtc-mxc.c.

#define RTC_DAYR   0x20 /* 32bit rtc days counter reg */

Definition at line 69 of file rtc-mxc.c.

#define RTC_ENABLE_BIT   (1 << 7)

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

#define RTC_HOURMIN   0x00 /* 32bit rtc hour/min counter reg */

Definition at line 61 of file rtc-mxc.c.

#define RTC_INPUT_CLK_32000HZ   (0x01 << 5)

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

#define RTC_INPUT_CLK_32768HZ   (0x00 << 5)

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

#define RTC_INPUT_CLK_38400HZ   (0x02 << 5)

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

#define RTC_RTCCTL   0x10 /* 32bit rtc control reg */

Definition at line 65 of file rtc-mxc.c.

#define RTC_RTCIENR   0x18 /* 32bit rtc interrupt enable reg */

Definition at line 67 of file rtc-mxc.c.

#define RTC_RTCISR   0x14 /* 32bit rtc interrupt status reg */

Definition at line 66 of file rtc-mxc.c.

#define RTC_SAM0_BIT   (1 << 8)

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

#define RTC_SAM1_BIT   (1 << 9)

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

#define RTC_SAM2_BIT   (1 << 10)

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

#define RTC_SAM3_BIT   (1 << 11)

Definition at line 33 of file rtc-mxc.c.

#define RTC_SAM4_BIT   (1 << 12)

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

#define RTC_SAM5_BIT   (1 << 13)

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

#define RTC_SAM6_BIT   (1 << 14)

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

#define RTC_SAM7_BIT   (1 << 15)

Definition at line 37 of file rtc-mxc.c.

#define RTC_SECOND   0x04 /* 32bit rtc seconds counter reg */

Definition at line 62 of file rtc-mxc.c.

#define RTC_STPWCH   0x1C /* 32bit rtc stopwatch min reg */

Definition at line 68 of file rtc-mxc.c.

#define RTC_SW_BIT   (1 << 0)

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

#define RTC_TEST1   0x28 /* 32bit rtc test reg 1 */

Definition at line 71 of file rtc-mxc.c.

#define RTC_TEST2   0x2C /* 32bit rtc test reg 2 */

Definition at line 72 of file rtc-mxc.c.

#define RTC_TEST3   0x30 /* 32bit rtc test reg 3 */

Definition at line 73 of file rtc-mxc.c.