Linux Kernel
3.7.1
|
#include <linux/clocksource.h>
#include <linux/io.h>
#include <asm/machdep.h>
#include <asm/coldfire.h>
#include <asm/mcfpit.h>
#include <asm/mcfsim.h>
Go to the source code of this file.
Macros | |
#define | DMA_TIMER_0 (0x00) |
#define | DMA_TIMER_1 (0x40) |
#define | DMA_TIMER_2 (0x80) |
#define | DMA_TIMER_3 (0xc0) |
#define | DTMR0 (MCF_IPSBAR + DMA_TIMER_0 + 0x400) |
#define | DTXMR0 (MCF_IPSBAR + DMA_TIMER_0 + 0x402) |
#define | DTER0 (MCF_IPSBAR + DMA_TIMER_0 + 0x403) |
#define | DTRR0 (MCF_IPSBAR + DMA_TIMER_0 + 0x404) |
#define | DTCR0 (MCF_IPSBAR + DMA_TIMER_0 + 0x408) |
#define | DTCN0 (MCF_IPSBAR + DMA_TIMER_0 + 0x40c) |
#define | DMA_FREQ ((MCF_CLK / 2) / 16) |
#define | DMA_DTMR_RESTART (1 << 3) |
#define | DMA_DTMR_CLK_DIV_1 (1 << 1) |
#define | DMA_DTMR_CLK_DIV_16 (2 << 1) |
#define | DMA_DTMR_ENABLE (1 << 0) |
#define | CYC2NS_SCALE_FACTOR 10 /* 2^10, carefully chosen */ |
#define | CYC2NS_SCALE ((1000000 << CYC2NS_SCALE_FACTOR) / (DMA_FREQ / 1000)) |
Functions | |
arch_initcall (init_cf_dt_clocksource) | |
unsigned long long | sched_clock (void) |
#define CYC2NS_SCALE ((1000000 << CYC2NS_SCALE_FACTOR) / (DMA_FREQ / 1000)) |
Definition at line 68 of file dma_timer.c.
#define CYC2NS_SCALE_FACTOR 10 /* 2^10, carefully chosen */ |
Definition at line 67 of file dma_timer.c.
#define DMA_DTMR_CLK_DIV_1 (1 << 1) |
Definition at line 33 of file dma_timer.c.
#define DMA_DTMR_CLK_DIV_16 (2 << 1) |
Definition at line 34 of file dma_timer.c.
#define DMA_DTMR_ENABLE (1 << 0) |
Definition at line 35 of file dma_timer.c.
#define DMA_DTMR_RESTART (1 << 3) |
Definition at line 32 of file dma_timer.c.
#define DMA_FREQ ((MCF_CLK / 2) / 16) |
Definition at line 29 of file dma_timer.c.
#define DMA_TIMER_0 (0x00) |
Definition at line 17 of file dma_timer.c.
#define DMA_TIMER_1 (0x40) |
Definition at line 18 of file dma_timer.c.
#define DMA_TIMER_2 (0x80) |
Definition at line 19 of file dma_timer.c.
#define DMA_TIMER_3 (0xc0) |
Definition at line 20 of file dma_timer.c.
#define DTCN0 (MCF_IPSBAR + DMA_TIMER_0 + 0x40c) |
Definition at line 27 of file dma_timer.c.
#define DTCR0 (MCF_IPSBAR + DMA_TIMER_0 + 0x408) |
Definition at line 26 of file dma_timer.c.
#define DTER0 (MCF_IPSBAR + DMA_TIMER_0 + 0x403) |
Definition at line 24 of file dma_timer.c.
#define DTMR0 (MCF_IPSBAR + DMA_TIMER_0 + 0x400) |
Definition at line 22 of file dma_timer.c.
#define DTRR0 (MCF_IPSBAR + DMA_TIMER_0 + 0x404) |
Definition at line 25 of file dma_timer.c.
#define DTXMR0 (MCF_IPSBAR + DMA_TIMER_0 + 0x402) |
Definition at line 23 of file dma_timer.c.
arch_initcall | ( | init_cf_dt_clocksource | ) |
Definition at line 76 of file dma_timer.c.