OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-arm/] [arch-cl7500/] [time.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1276 phoenix
/*
2
 * linux/include/asm-arm/arch-cl7500/time.h
3
 *
4
 * Copyright (c) 1996-2000 Russell King.
5
 *
6
 * Changelog:
7
 *  24-Sep-1996 RMK     Created
8
 *  10-Oct-1996 RMK     Brought up to date with arch-sa110eval
9
 *  04-Dec-1997 RMK     Updated for new arch/arm/time.c
10
 */
11
 
12
static void timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
13
{
14
        do_timer(regs);
15
        do_set_rtc();
16
        do_profile(regs);
17
 
18
        {
19
                /* Twinkle the lights. */
20
                static int count, state = 0xff00;
21
                if (count-- == 0) {
22
                        state ^= 0x100;
23
                        count = 25;
24
                        *((volatile unsigned int *)LED_ADDRESS) = state;
25
                }
26
        }
27
}
28
 
29
/*
30
 * Set up timer interrupt.
31
 */
32
static inline void setup_timer(void)
33
{
34
        extern void ioctime_init(void);
35
        ioctime_init();
36
 
37
        timer_irq.handler = timer_interrupt;
38
 
39
        setup_arm_irq(IRQ_TIMER, &timer_irq);
40
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.