blob: cc2f7a91df55bbb617524feabc206d525c7830c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/*
* arch/arm/kernel/leds-ebsa110.c
*
* Copyright (C) 1998 Russell King
*
* EBSA-110 LED control routines. We use the led as follows:
*
* - Red - toggles state every 50 timer interrupts
*/
#include <asm/hardware.h>
#include <asm/leds.h>
#include <asm/system.h>
void leds_event(led_event_t ledevt)
{
unsigned long flags;
save_flags_cli(flags);
switch(ledevt) {
case led_timer:
*(volatile unsigned char *)0xf2400000 ^= 128;
break;
default:
break;
}
restore_flags(flags);
}
|