Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
time.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/interrupt.h>
#include <linux/clocksource.h>
#include <linux/clockchips.h>
#include <linux/io.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <asm/sched_clock.h>
#include <asm/mach/irq.h>
#include <asm/mach/time.h>
#include <mach/cputype.h>
#include <mach/hardware.h>
#include <mach/time.h>
#include "clock.h"

Go to the source code of this file.

Data Structures

struct  timer_s
 

Macros

#define PID12   0x0
 
#define TIM12   0x10
 
#define TIM34   0x14
 
#define PRD12   0x18
 
#define PRD34   0x1c
 
#define TCR   0x20
 
#define TGCR   0x24
 
#define WDTCR   0x28
 
#define CMP12_0   0x60
 
#define CMP12_1   0x64
 
#define CMP12_2   0x68
 
#define CMP12_3   0x6c
 
#define CMP12_4   0x70
 
#define CMP12_5   0x74
 
#define CMP12_6   0x78
 
#define CMP12_7   0x7c
 
#define TCR_ENAMODE_DISABLE   0x0
 
#define TCR_ENAMODE_ONESHOT   0x1
 
#define TCR_ENAMODE_PERIODIC   0x2
 
#define TCR_ENAMODE_MASK   0x3
 
#define TGCR_TIMMODE_SHIFT   2
 
#define TGCR_TIMMODE_64BIT_GP   0x0
 
#define TGCR_TIMMODE_32BIT_UNCHAINED   0x1
 
#define TGCR_TIMMODE_64BIT_WDOG   0x2
 
#define TGCR_TIMMODE_32BIT_CHAINED   0x3
 
#define TGCR_TIM12RS_SHIFT   0
 
#define TGCR_TIM34RS_SHIFT   1
 
#define TGCR_RESET   0x0
 
#define TGCR_UNRESET   0x1
 
#define TGCR_RESET_MASK   0x3
 
#define WDTCR_WDEN_SHIFT   14
 
#define WDTCR_WDEN_DISABLE   0x0
 
#define WDTCR_WDEN_ENABLE   0x1
 
#define WDTCR_WDKEY_SHIFT   16
 
#define WDTCR_WDKEY_SEQ0   0xa5c6
 
#define WDTCR_WDKEY_SEQ1   0xda7e
 
#define TIMER_OPTS_DISABLED   0x01
 
#define TIMER_OPTS_ONESHOT   0x02
 
#define TIMER_OPTS_PERIODIC   0x04
 
#define TIMER_OPTS_STATE_MASK   0x07
 
#define TIMER_OPTS_USE_COMPARE   0x80000000
 
#define USING_COMPARE(t)   ((t)->opts & TIMER_OPTS_USE_COMPARE)
 

Enumerations

enum  { TID_CLOCKEVENT, TID_CLOCKSOURCE }
 

Functions

void davinci_watchdog_reset (struct platform_device *pdev)
 

Variables

struct sys_timer davinci_timer
 

Macro Definition Documentation

#define CMP12_0   0x60

Definition at line 56 of file time.c.

#define CMP12_1   0x64

Definition at line 57 of file time.c.

#define CMP12_2   0x68

Definition at line 58 of file time.c.

#define CMP12_3   0x6c

Definition at line 59 of file time.c.

#define CMP12_4   0x70

Definition at line 60 of file time.c.

#define CMP12_5   0x74

Definition at line 61 of file time.c.

#define CMP12_6   0x78

Definition at line 62 of file time.c.

#define CMP12_7   0x7c

Definition at line 63 of file time.c.

#define PID12   0x0

Definition at line 46 of file time.c.

#define PRD12   0x18

Definition at line 49 of file time.c.

#define PRD34   0x1c

Definition at line 50 of file time.c.

#define TCR   0x20

Definition at line 51 of file time.c.

#define TCR_ENAMODE_DISABLE   0x0

Definition at line 66 of file time.c.

#define TCR_ENAMODE_MASK   0x3

Definition at line 69 of file time.c.

#define TCR_ENAMODE_ONESHOT   0x1

Definition at line 67 of file time.c.

#define TCR_ENAMODE_PERIODIC   0x2

Definition at line 68 of file time.c.

#define TGCR   0x24

Definition at line 52 of file time.c.

#define TGCR_RESET   0x0

Definition at line 79 of file time.c.

#define TGCR_RESET_MASK   0x3

Definition at line 81 of file time.c.

#define TGCR_TIM12RS_SHIFT   0

Definition at line 77 of file time.c.

#define TGCR_TIM34RS_SHIFT   1

Definition at line 78 of file time.c.

#define TGCR_TIMMODE_32BIT_CHAINED   0x3

Definition at line 75 of file time.c.

#define TGCR_TIMMODE_32BIT_UNCHAINED   0x1

Definition at line 73 of file time.c.

#define TGCR_TIMMODE_64BIT_GP   0x0

Definition at line 72 of file time.c.

#define TGCR_TIMMODE_64BIT_WDOG   0x2

Definition at line 74 of file time.c.

#define TGCR_TIMMODE_SHIFT   2

Definition at line 71 of file time.c.

#define TGCR_UNRESET   0x1

Definition at line 80 of file time.c.

#define TIM12   0x10

Definition at line 47 of file time.c.

#define TIM34   0x14

Definition at line 48 of file time.c.

#define TIMER_OPTS_DISABLED   0x01

Definition at line 105 of file time.c.

#define TIMER_OPTS_ONESHOT   0x02

Definition at line 106 of file time.c.

#define TIMER_OPTS_PERIODIC   0x04

Definition at line 107 of file time.c.

#define TIMER_OPTS_STATE_MASK   0x07

Definition at line 108 of file time.c.

#define TIMER_OPTS_USE_COMPARE   0x80000000

Definition at line 110 of file time.c.

#define USING_COMPARE (   t)    ((t)->opts & TIMER_OPTS_USE_COMPARE)

Definition at line 111 of file time.c.

#define WDTCR   0x28

Definition at line 53 of file time.c.

#define WDTCR_WDEN_DISABLE   0x0

Definition at line 84 of file time.c.

#define WDTCR_WDEN_ENABLE   0x1

Definition at line 85 of file time.c.

#define WDTCR_WDEN_SHIFT   14

Definition at line 83 of file time.c.

#define WDTCR_WDKEY_SEQ0   0xa5c6

Definition at line 87 of file time.c.

#define WDTCR_WDKEY_SEQ1   0xda7e

Definition at line 88 of file time.c.

#define WDTCR_WDKEY_SHIFT   16

Definition at line 86 of file time.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
TID_CLOCKEVENT 
TID_CLOCKSOURCE 

Definition at line 40 of file time.c.

Function Documentation

void davinci_watchdog_reset ( struct platform_device pdev)

Definition at line 419 of file time.c.

Variable Documentation

struct sys_timer davinci_timer
Initial value:
= {
.init = davinci_timer_init,
}

Definition at line 413 of file time.c.