2 * arch/sh64/kernel/led_cayman.c
4 * Copyright (C) 2002 Stuart Menefy <stuart.menefy@st.com>
6 * May be copied or modified under the terms of the GNU General Public
7 * License. See linux/COPYING for more information.
14 ** It is supposed these functions to be used for a low level
15 ** debugging (via Cayman LEDs), hence to be available as soon
17 ** Unfortunately Cayman LEDs relies on Cayman EPLD to be mapped
18 ** (this happen when IRQ are initialized... quite late).
19 ** These triky dependencies should be removed. Temporary, it
20 ** may be enough to NOP until EPLD is mapped.
23 extern unsigned long epld_virt
;
25 #define LED_ADDR (epld_virt + 0x008)
26 #define HDSP2534_ADDR (epld_virt + 0x100)
28 void mach_led(int position
, int value
)
34 ctrl_outl(0, LED_ADDR
);
36 ctrl_outl(1, LED_ADDR
);
40 void mach_alphanum(int position
, unsigned char value
)
45 ctrl_outb(value
, HDSP2534_ADDR
+ 0xe0 + (position
<< 2));
48 void mach_alphanum_brightness(int setting
)
50 ctrl_outb(setting
& 7, HDSP2534_ADDR
+ 0xc0);