Linux-2.6.12-rc2
[linux-2.6/next.git] / arch / sh / boards / renesas / hs7751rvoip / led.c
blob18a13c8da8a4fc039d485be8ba6f0e928d2eb8f6
1 /*
2 * linux/arch/sh/kernel/setup_hs7751rvoip.c
4 * Copyright (C) 2000 Kazumoto Kojima
6 * Renesas Technology Sales HS7751RVoIP Support.
8 * Modified for HS7751RVoIP by
9 * Atom Create Engineering Co., Ltd. 2002.
10 * Lineo uSolutions, Inc. 2003.
13 #include <linux/config.h>
14 #include <asm/io.h>
15 #include <asm/hs7751rvoip/hs7751rvoip.h>
17 extern unsigned int debug_counter;
19 void debug_led_disp(void)
21 unsigned short value;
23 value = (unsigned char)debug_counter++;
24 ctrl_outb((0xf0|value), PA_OUTPORTR);
25 if (value == 0x0f)
26 debug_counter = 0;