aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/renesas/hs7751rvoip/led.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/boards/renesas/hs7751rvoip/led.c')
-rw-r--r--arch/sh/boards/renesas/hs7751rvoip/led.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/sh/boards/renesas/hs7751rvoip/led.c b/arch/sh/boards/renesas/hs7751rvoip/led.c
new file mode 100644
index 000000000000..18a13c8da8a4
--- /dev/null
+++ b/arch/sh/boards/renesas/hs7751rvoip/led.c
@@ -0,0 +1,27 @@
1/*
2 * linux/arch/sh/kernel/setup_hs7751rvoip.c
3 *
4 * Copyright (C) 2000 Kazumoto Kojima
5 *
6 * Renesas Technology Sales HS7751RVoIP Support.
7 *
8 * Modified for HS7751RVoIP by
9 * Atom Create Engineering Co., Ltd. 2002.
10 * Lineo uSolutions, Inc. 2003.
11 */
12
13#include <linux/config.h>
14#include <asm/io.h>
15#include <asm/hs7751rvoip/hs7751rvoip.h>
16
17extern unsigned int debug_counter;
18
19void debug_led_disp(void)
20{
21 unsigned short value;
22
23 value = (unsigned char)debug_counter++;
24 ctrl_outb((0xf0|value), PA_OUTPORTR);
25 if (value == 0x0f)
26 debug_counter = 0;
27}