blob: eb286347b1ec0f7b2787c511853e1d71875d763c (
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
31
32
33
34
35
36
|
/*
* 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 <linux/module.h>
#include <asm/hardware.h>
#include <asm/leds.h>
#include <asm/system.h>
void ebsa110_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);
}
void (*leds_event)(led_event_t) = ebsa110_leds_event;
EXPORT_SYMBOL(leds_event);
|