Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
timer32k.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/sched.h>
#include <linux/spinlock.h>
#include <linux/err.h>
#include <linux/clk.h>
#include <linux/clocksource.h>
#include <linux/clockchips.h>
#include <linux/io.h>
#include <asm/irq.h>
#include <asm/mach/irq.h>
#include <asm/mach/time.h>
#include <plat/dmtimer.h>
#include <mach/hardware.h>
#include "common.h"

Go to the source code of this file.

Macros

#define OMAP1_32K_TIMER_BASE   0xfffb9000
 
#define OMAP1_32KSYNC_TIMER_BASE   0xfffbc400
 
#define OMAP1_32K_TIMER_CR   0x08
 
#define OMAP1_32K_TIMER_TVR   0x00
 
#define OMAP1_32K_TIMER_TCR   0x04
 
#define OMAP_32K_TICKS_PER_SEC   (32768)
 
#define OMAP_32K_TIMER_TICK_PERIOD   ((OMAP_32K_TICKS_PER_SEC / HZ) - 1)
 
#define JIFFIES_TO_HW_TICKS(nr_jiffies, clock_rate)   (((nr_jiffies) * (clock_rate)) / HZ)
 
#define omap_32k_timer_ack_irq()
 

Functions

int __init omap_32k_timer_init (void)
 

Macro Definition Documentation

#define JIFFIES_TO_HW_TICKS (   nr_jiffies,
  clock_rate 
)    (((nr_jiffies) * (clock_rate)) / HZ)

Definition at line 86 of file timer32k.c.

#define OMAP1_32K_TIMER_BASE   0xfffb9000

Definition at line 72 of file timer32k.c.

#define OMAP1_32K_TIMER_CR   0x08

Definition at line 74 of file timer32k.c.

#define OMAP1_32K_TIMER_TCR   0x04

Definition at line 76 of file timer32k.c.

#define OMAP1_32K_TIMER_TVR   0x00

Definition at line 75 of file timer32k.c.

#define OMAP1_32KSYNC_TIMER_BASE   0xfffbc400

Definition at line 73 of file timer32k.c.

#define OMAP_32K_TICKS_PER_SEC   (32768)

Definition at line 78 of file timer32k.c.

#define omap_32k_timer_ack_irq ( )

Definition at line 112 of file timer32k.c.

#define OMAP_32K_TIMER_TICK_PERIOD   ((OMAP_32K_TICKS_PER_SEC / HZ) - 1)

Definition at line 84 of file timer32k.c.

Function Documentation

int __init omap_32k_timer_init ( void  )

Definition at line 185 of file timer32k.c.