]>
Commit | Line | Data |
---|---|---|
c609719b | 1 | /* |
04a85b3b | 2 | * (C) Copyright 2000-2004 |
c609719b WD |
3 | * Wolfgang Denk, DENX Software Engineering, [email protected]. |
4 | * | |
5 | * See file CREDITS for list of people who contributed to this | |
6 | * project. | |
7 | * | |
8 | * This program is free software; you can redistribute it and/or | |
9 | * modify it under the terms of the GNU General Public License as | |
10 | * published by the Free Software Foundation; either version 2 of | |
11 | * the License, or (at your option) any later version. | |
12 | * | |
13 | * This program is distributed in the hope that it will be useful, | |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | * GNU General Public License for more details. | |
17 | * | |
18 | * You should have received a copy of the GNU General Public License | |
19 | * along with this program; if not, write to the Free Software | |
20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, | |
21 | * MA 02111-1307 USA | |
22 | */ | |
23 | ||
24 | /* | |
25 | * The purpose of this code is to signal the operational status of a | |
26 | * target which usually boots over the network; while running in | |
27 | * PCBoot, a status LED is blinking. As soon as a valid BOOTP reply | |
28 | * message has been received, the LED is turned off. The Linux | |
29 | * kernel, once it is running, will start blinking the LED again, | |
30 | * with another frequency. | |
31 | */ | |
32 | ||
33 | #ifndef _STATUS_LED_H_ | |
34 | #define _STATUS_LED_H_ | |
35 | ||
36 | #ifdef CONFIG_STATUS_LED | |
37 | ||
38 | #define STATUS_LED_OFF 0 | |
39 | #define STATUS_LED_BLINKING 1 | |
40 | #define STATUS_LED_ON 2 | |
41 | ||
42 | void status_led_tick (unsigned long timestamp); | |
43 | void status_led_set (int led, int state); | |
44 | ||
45 | /***** TQM8xxL ********************************************************/ | |
c40b2956 | 46 | #if defined(CONFIG_TQM8xxL) && !defined(CONFIG_HMI10) |
c609719b WD |
47 | # define STATUS_LED_PAR im_cpm.cp_pbpar |
48 | # define STATUS_LED_DIR im_cpm.cp_pbdir | |
49 | # define STATUS_LED_ODR im_cpm.cp_pbodr | |
50 | # define STATUS_LED_DAT im_cpm.cp_pbdat | |
51 | ||
52 | # define STATUS_LED_BIT 0x00000001 | |
6d0f6bcf | 53 | # define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2) |
c609719b WD |
54 | # define STATUS_LED_STATE STATUS_LED_BLINKING |
55 | ||
56 | # define STATUS_LED_ACTIVE 1 /* LED on for bit == 1 */ | |
57 | ||
58 | # define STATUS_LED_BOOT 0 /* LED 0 used for boot status */ | |
59 | ||
60 | /***** MVS v1 **********************************************************/ | |
61 | #elif (defined(CONFIG_MVS) && CONFIG_MVS < 2) | |
62 | # define STATUS_LED_PAR im_ioport.iop_pdpar | |
63 | # define STATUS_LED_DIR im_ioport.iop_pddir | |
64 | # undef STATUS_LED_ODR | |
65 | # define STATUS_LED_DAT im_ioport.iop_pddat | |
66 | ||
67 | # define STATUS_LED_BIT 0x00000001 | |
6d0f6bcf | 68 | # define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2) |
c609719b WD |
69 | # define STATUS_LED_STATE STATUS_LED_BLINKING |
70 | ||
71 | # define STATUS_LED_ACTIVE 1 /* LED on for bit == 1 */ | |
72 | ||
73 | # define STATUS_LED_BOOT 0 /* LED 0 used for boot status */ | |
74 | ||
75 | /***** ETX_094 ********************************************************/ | |
76 | #elif defined(CONFIG_ETX094) | |
77 | ||
78 | # define STATUS_LED_PAR im_ioport.iop_pdpar | |
79 | # define STATUS_LED_DIR im_ioport.iop_pddir | |
80 | # undef STATUS_LED_ODR | |
81 | # define STATUS_LED_DAT im_ioport.iop_pddat | |
82 | ||
83 | # define STATUS_LED_BIT 0x00000001 | |
6d0f6bcf | 84 | # define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2) |
c609719b WD |
85 | # define STATUS_LED_STATE STATUS_LED_BLINKING |
86 | ||
87 | # define STATUS_LED_ACTIVE 0 /* LED on for bit == 0 */ | |
88 | ||
89 | # define STATUS_LED_BOOT 0 /* LED 0 used for boot status */ | |
90 | ||
91 | /***** GEN860T *********************************************************/ | |
92 | #elif defined(CONFIG_GEN860T) | |
93 | ||
94 | # define STATUS_LED_PAR im_ioport.iop_papar | |
95 | # define STATUS_LED_DIR im_ioport.iop_padir | |
96 | # define STATUS_LED_ODR im_ioport.iop_paodr | |
97 | # define STATUS_LED_DAT im_ioport.iop_padat | |
98 | ||
99 | # define STATUS_LED_BIT 0x0800 /* Red LED 0 is on PA.4 */ | |
6d0f6bcf | 100 | # define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 4) |
7aa78614 | 101 | # define STATUS_LED_STATE STATUS_LED_OFF |
c609719b | 102 | # define STATUS_LED_BIT1 0x0400 /* Grn LED 1 is on PA.5 */ |
6d0f6bcf | 103 | # define STATUS_LED_PERIOD1 (CONFIG_SYS_HZ / 8) |
c609719b WD |
104 | # define STATUS_LED_STATE1 STATUS_LED_BLINKING |
105 | # define STATUS_LED_BIT2 0x0080 /* Red LED 2 is on PA.8 */ | |
6d0f6bcf | 106 | # define STATUS_LED_PERIOD2 (CONFIG_SYS_HZ / 4) |
7aa78614 | 107 | # define STATUS_LED_STATE2 STATUS_LED_OFF |
c609719b | 108 | # define STATUS_LED_BIT3 0x0040 /* Grn LED 3 is on PA.9 */ |
6d0f6bcf | 109 | # define STATUS_LED_PERIOD3 (CONFIG_SYS_HZ / 4) |
7aa78614 | 110 | # define STATUS_LED_STATE3 STATUS_LED_OFF |
c609719b WD |
111 | |
112 | # define STATUS_LED_ACTIVE 1 /* LED on for bit == 1 */ | |
7aa78614 | 113 | # define STATUS_LED_BOOT 1 /* Boot status on LED 1 */ |
c609719b WD |
114 | |
115 | /***** IVMS8 **********************************************************/ | |
116 | #elif defined(CONFIG_IVMS8) | |
117 | ||
118 | # define STATUS_LED_PAR im_cpm.cp_pbpar | |
119 | # define STATUS_LED_DIR im_cpm.cp_pbdir | |
120 | # define STATUS_LED_ODR im_cpm.cp_pbodr | |
121 | # define STATUS_LED_DAT im_cpm.cp_pbdat | |
122 | ||
123 | # define STATUS_LED_BIT 0x00000010 /* LED 0 is on PB.27 */ | |
6d0f6bcf | 124 | # define STATUS_LED_PERIOD (1 * CONFIG_SYS_HZ) |
c609719b WD |
125 | # define STATUS_LED_STATE STATUS_LED_OFF |
126 | # define STATUS_LED_BIT1 0x00000020 /* LED 1 is on PB.26 */ | |
6d0f6bcf | 127 | # define STATUS_LED_PERIOD1 (1 * CONFIG_SYS_HZ) |
c609719b WD |
128 | # define STATUS_LED_STATE1 STATUS_LED_OFF |
129 | /* IDE LED usable for other purposes, too */ | |
130 | # define STATUS_LED_BIT2 0x00000008 /* LED 2 is on PB.28 */ | |
6d0f6bcf | 131 | # define STATUS_LED_PERIOD2 (1 * CONFIG_SYS_HZ) |
c609719b WD |
132 | # define STATUS_LED_STATE2 STATUS_LED_OFF |
133 | ||
134 | # define STATUS_LED_ACTIVE 1 /* LED on for bit == 1 */ | |
135 | ||
136 | # define STATUS_ILOCK_SWITCH 0x00800000 /* ILOCK switch in IRQ4 */ | |
137 | ||
6d0f6bcf | 138 | # define STATUS_ILOCK_PERIOD (CONFIG_SYS_HZ / 10) /* about every 100 ms */ |
c609719b WD |
139 | |
140 | # define STATUS_LED_YELLOW 0 | |
141 | # define STATUS_LED_GREEN 1 | |
142 | # define STATUS_LED_BOOT 2 /* IDE LED used for boot status */ | |
143 | ||
144 | /***** IVML24 *********************************************************/ | |
145 | #elif defined(CONFIG_IVML24) | |
146 | ||
147 | # define STATUS_LED_PAR im_cpm.cp_pbpar | |
148 | # define STATUS_LED_DIR im_cpm.cp_pbdir | |
149 | # define STATUS_LED_ODR im_cpm.cp_pbodr | |
150 | # define STATUS_LED_DAT im_cpm.cp_pbdat | |
151 | ||
152 | # define STATUS_LED_BIT 0x00000010 /* LED 0 is on PB.27 */ | |
6d0f6bcf | 153 | # define STATUS_LED_PERIOD (1 * CONFIG_SYS_HZ) |
c609719b WD |
154 | # define STATUS_LED_STATE STATUS_LED_OFF |
155 | # define STATUS_LED_BIT1 0x00000020 /* LED 1 is on PB.26 */ | |
6d0f6bcf | 156 | # define STATUS_LED_PERIOD1 (1 * CONFIG_SYS_HZ) |
c609719b WD |
157 | # define STATUS_LED_STATE1 STATUS_LED_OFF |
158 | /* IDE LED usable for other purposes, too */ | |
159 | # define STATUS_LED_BIT2 0x00000008 /* LED 2 is on PB.28 */ | |
6d0f6bcf | 160 | # define STATUS_LED_PERIOD2 (1 * CONFIG_SYS_HZ) |
c609719b WD |
161 | # define STATUS_LED_STATE2 STATUS_LED_OFF |
162 | ||
163 | # define STATUS_LED_ACTIVE 1 /* LED on for bit == 1 */ | |
164 | ||
165 | # define STATUS_ILOCK_SWITCH 0x00004000 /* ILOCK is on PB.17 */ | |
166 | ||
6d0f6bcf | 167 | # define STATUS_ILOCK_PERIOD (CONFIG_SYS_HZ / 10) /* about every 100 ms */ |
c609719b WD |
168 | |
169 | # define STATUS_LED_YELLOW 0 | |
170 | # define STATUS_LED_GREEN 1 | |
171 | # define STATUS_LED_BOOT 2 /* IDE LED used for boot status */ | |
172 | ||
173 | /***** LANTEC *********************************************************/ | |
174 | #elif defined(CONFIG_LANTEC) | |
175 | ||
176 | # define STATUS_LED_PAR im_ioport.iop_pdpar | |
177 | # define STATUS_LED_DIR im_ioport.iop_pddir | |
178 | # undef STATUS_LED_ODR | |
179 | # define STATUS_LED_DAT im_ioport.iop_pddat | |
180 | ||
181 | # if CONFIG_LATEC < 2 | |
182 | # define STATUS_LED_BIT 0x1000 | |
183 | # else | |
184 | # define STATUS_LED_BIT 0x0800 | |
185 | # endif | |
6d0f6bcf | 186 | # define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2) |
c609719b WD |
187 | # define STATUS_LED_STATE STATUS_LED_BLINKING |
188 | ||
189 | # define STATUS_LED_ACTIVE 0 /* LED on for bit == 0 */ | |
190 | ||
191 | # define STATUS_LED_BOOT 0 /* LED 0 used for boot status */ | |
192 | ||
193 | /***** PCU E and CCM ************************************************/ | |
194 | #elif (defined(CONFIG_PCU_E) || defined(CONFIG_CCM)) | |
195 | ||
196 | # define STATUS_LED_PAR im_cpm.cp_pbpar | |
197 | # define STATUS_LED_DIR im_cpm.cp_pbdir | |
198 | # define STATUS_LED_ODR im_cpm.cp_pbodr | |
199 | # define STATUS_LED_DAT im_cpm.cp_pbdat | |
200 | ||
201 | # define STATUS_LED_BIT 0x00010000 /* green LED is on PB.15 */ | |
6d0f6bcf | 202 | # define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2) |
c609719b WD |
203 | # define STATUS_LED_STATE STATUS_LED_BLINKING |
204 | ||
205 | # define STATUS_LED_ACTIVE 1 /* LED on for bit == 1 */ | |
206 | ||
207 | # define STATUS_LED_BOOT 0 /* LED 0 used for boot status */ | |
208 | ||
209 | /***** ICU862 ********************************************************/ | |
210 | #elif defined(CONFIG_ICU862) | |
211 | ||
212 | # define STATUS_LED_PAR im_ioport.iop_papar | |
213 | # define STATUS_LED_DIR im_ioport.iop_padir | |
214 | # define STATUS_LED_ODR im_ioport.iop_paodr | |
215 | # define STATUS_LED_DAT im_ioport.iop_padat | |
216 | ||
217 | # define STATUS_LED_BIT 0x4000 /* LED 0 is on PA.1 */ | |
6d0f6bcf | 218 | # define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2) |
c609719b WD |
219 | # define STATUS_LED_STATE STATUS_LED_BLINKING |
220 | # define STATUS_LED_BIT1 0x1000 /* LED 1 is on PA.3 */ | |
6d0f6bcf | 221 | # define STATUS_LED_PERIOD1 (CONFIG_SYS_HZ) |
c609719b WD |
222 | # define STATUS_LED_STATE1 STATUS_LED_OFF |
223 | ||
224 | # define STATUS_LED_ACTIVE 1 /* LED on for bit == 1 */ | |
225 | ||
226 | # define STATUS_LED_BOOT 0 /* LED 0 used for boot status */ | |
227 | ||
228 | /***** Someone else defines these *************************************/ | |
229 | #elif defined(STATUS_LED_PAR) | |
230 | ||
231 | /* | |
232 | * ADVICE: Define in your board configuration file rather than | |
233 | * filling this file up with lots of custom board stuff. | |
234 | */ | |
235 | ||
236 | /***** NetVia ********************************************************/ | |
237 | #elif defined(CONFIG_NETVIA) | |
238 | ||
993cad93 WD |
239 | #if !defined(CONFIG_NETVIA_VERSION) || CONFIG_NETVIA_VERSION == 1 |
240 | ||
c609719b WD |
241 | #define STATUS_LED_PAR im_ioport.iop_pdpar |
242 | #define STATUS_LED_DIR im_ioport.iop_pddir | |
243 | #undef STATUS_LED_ODR | |
244 | #define STATUS_LED_DAT im_ioport.iop_pddat | |
245 | ||
246 | # define STATUS_LED_BIT 0x0080 /* PD.8 */ | |
6d0f6bcf | 247 | # define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2) |
c609719b WD |
248 | # define STATUS_LED_STATE STATUS_LED_BLINKING |
249 | ||
250 | # define STATUS_LED_BIT1 0x0040 /* PD.9 */ | |
6d0f6bcf | 251 | # define STATUS_LED_PERIOD1 (CONFIG_SYS_HZ / 2) |
c609719b WD |
252 | # define STATUS_LED_STATE1 STATUS_LED_OFF |
253 | ||
254 | # define STATUS_LED_ACTIVE 0 /* LED on for bit == 0 */ | |
255 | # define STATUS_LED_BOOT 0 /* LED 0 used for boot status */ | |
256 | ||
993cad93 | 257 | #endif |
56f94be3 | 258 | |
0db5bca8 WD |
259 | /***** CMI ********************************************************/ |
260 | #elif defined(CONFIG_CMI) | |
8bde7f77 WD |
261 | # define STATUS_LED_DIR im_mios.mios_mpiosm32ddr |
262 | # define STATUS_LED_DAT im_mios.mios_mpiosm32dr | |
0db5bca8 WD |
263 | |
264 | # define STATUS_LED_BIT 0x2000 /* Select one of the 16 possible*/ | |
265 | /* MIOS outputs */ | |
6d0f6bcf | 266 | # define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2) /* Blinking periode is 500 ms */ |
0db5bca8 WD |
267 | # define STATUS_LED_STATE STATUS_LED_BLINKING |
268 | ||
269 | # define STATUS_LED_ACTIVE 1 /* LED on for bit == 0 */ | |
270 | # define STATUS_LED_BOOT 0 /* LED 0 used for boot status */ | |
271 | ||
0608e04d WD |
272 | /***** KUP4K, KUP4X ****************************************************/ |
273 | #elif defined(CONFIG_KUP4K) || defined(CONFIG_KUP4X) || defined(CONFIG_CCM) | |
56f94be3 WD |
274 | |
275 | # define STATUS_LED_PAR im_ioport.iop_papar | |
276 | # define STATUS_LED_DIR im_ioport.iop_padir | |
277 | # define STATUS_LED_ODR im_ioport.iop_paodr | |
278 | # define STATUS_LED_DAT im_ioport.iop_padat | |
279 | ||
280 | # define STATUS_LED_BIT 0x00000300 /* green + red PA[8]=yellow, PA[7]=red, PA[6]=green */ | |
6d0f6bcf | 281 | # define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2) |
56f94be3 WD |
282 | # define STATUS_LED_STATE STATUS_LED_BLINKING |
283 | ||
284 | # define STATUS_LED_ACTIVE 1 /* LED on for bit == 1 */ | |
285 | ||
286 | # define STATUS_LED_BOOT 0 /* LED 0 used for boot status */ | |
287 | ||
dc7c9a1a WD |
288 | #elif defined(CONFIG_SVM_SC8xx) |
289 | # define STATUS_LED_PAR im_cpm.cp_pbpar | |
290 | # define STATUS_LED_DIR im_cpm.cp_pbdir | |
291 | # define STATUS_LED_ODR im_cpm.cp_pbodr | |
292 | # define STATUS_LED_DAT im_cpm.cp_pbdat | |
293 | ||
294 | # define STATUS_LED_BIT 0x00000001 | |
6d0f6bcf | 295 | # define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2) |
dc7c9a1a WD |
296 | # define STATUS_LED_STATE STATUS_LED_BLINKING |
297 | ||
298 | # define STATUS_LED_ACTIVE 1 /* LED on for bit == 1 */ | |
299 | ||
300 | # define STATUS_LED_BOOT 0 /* LED 0 used for boot status */ | |
301 | ||
682011ff WD |
302 | /***** RBC823 ********************************************************/ |
303 | #elif defined(CONFIG_RBC823) | |
304 | ||
305 | # define STATUS_LED_PAR im_ioport.iop_pcpar | |
306 | # define STATUS_LED_DIR im_ioport.iop_pcdir | |
307 | # undef STATUS_LED_ODR | |
308 | # define STATUS_LED_DAT im_ioport.iop_pcdat | |
309 | ||
310 | # define STATUS_LED_BIT 0x0002 /* LED 0 is on PC.14 */ | |
6d0f6bcf | 311 | # define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2) |
682011ff WD |
312 | # define STATUS_LED_STATE STATUS_LED_BLINKING |
313 | # define STATUS_LED_BIT1 0x0004 /* LED 1 is on PC.13 */ | |
6d0f6bcf | 314 | # define STATUS_LED_PERIOD1 (CONFIG_SYS_HZ) |
682011ff WD |
315 | # define STATUS_LED_STATE1 STATUS_LED_OFF |
316 | ||
317 | # define STATUS_LED_ACTIVE 1 /* LED on for bit == 1 */ | |
318 | ||
319 | # define STATUS_LED_BOOT 0 /* LED 0 used for boot status */ | |
320 | ||
c40b2956 WD |
321 | /***** HMI10 **********************************************************/ |
322 | #elif defined(CONFIG_HMI10) | |
a522fa0e WD |
323 | # define STATUS_LED_PAR im_ioport.iop_papar |
324 | # define STATUS_LED_DIR im_ioport.iop_padir | |
325 | # define STATUS_LED_ODR im_ioport.iop_paodr | |
326 | # define STATUS_LED_DAT im_ioport.iop_padat | |
327 | ||
328 | # define STATUS_LED_BIT 0x00000001 /* LED is on PA15 */ | |
6d0f6bcf | 329 | # define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2) |
a522fa0e WD |
330 | # define STATUS_LED_STATE STATUS_LED_BLINKING |
331 | ||
332 | # define STATUS_LED_ACTIVE 1 /* LED on for bit == 1 */ | |
333 | ||
334 | # define STATUS_LED_BOOT 0 /* LED 0 used for boot status */ | |
335 | ||
04a85b3b | 336 | /***** NetPhone ********************************************************/ |
79fa88f3 | 337 | #elif defined(CONFIG_NETPHONE) || defined(CONFIG_NETTA2) |
04a85b3b | 338 | /* XXX empty just to avoid the error */ |
6bdf4306 WD |
339 | /***** STx XTc ********************************************************/ |
340 | #elif defined(CONFIG_STXXTC) | |
341 | /* XXX empty just to avoid the error */ | |
466b7410 WD |
342 | /***** sbc8240 ********************************************************/ |
343 | #elif defined(CONFIG_WRSBC8240) | |
344 | /* XXX empty just to avoid the error */ | |
c609719b | 345 | /************************************************************************/ |
5c952cf0 WD |
346 | #elif defined(CONFIG_NIOS2) |
347 | /* XXX empty just to avoid the error */ | |
348 | /************************************************************************/ | |
01815c2d MF |
349 | #elif defined(CONFIG_BLACKFIN) |
350 | /* XXX empty just to avoid the error */ | |
351 | /************************************************************************/ | |
4707fb50 BS |
352 | #elif defined(CONFIG_V38B) |
353 | ||
354 | # define STATUS_LED_BIT 0x0010 /* Timer7 GPIO */ | |
6d0f6bcf | 355 | # define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2) |
4707fb50 BS |
356 | # define STATUS_LED_STATE STATUS_LED_BLINKING |
357 | ||
358 | # define STATUS_LED_ACTIVE 0 /* LED on for bit == 0 */ | |
359 | # define STATUS_LED_BOOT 0 /* LED 0 used for boot status */ | |
360 | ||
a11c0b85 BS |
361 | #elif defined(CONFIG_MOTIONPRO) |
362 | ||
363 | #define STATUS_LED_BIT ((vu_long *) MPC5XXX_GPT6_ENABLE) | |
6d0f6bcf | 364 | #define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 10) |
a11c0b85 BS |
365 | #define STATUS_LED_STATE STATUS_LED_BLINKING |
366 | ||
367 | #define STATUS_LED_BIT1 ((vu_long *) MPC5XXX_GPT7_ENABLE) | |
6d0f6bcf | 368 | #define STATUS_LED_PERIOD1 (CONFIG_SYS_HZ / 10) |
a11c0b85 BS |
369 | #define STATUS_LED_STATE1 STATUS_LED_OFF |
370 | ||
371 | #define STATUS_LED_BOOT 0 /* LED 0 used for boot status */ | |
372 | ||
566a494f HS |
373 | #elif defined(CONFIG_BOARD_SPECIFIC_LED) |
374 | /* led_id_t is unsigned long mask */ | |
375 | typedef unsigned long led_id_t; | |
376 | ||
377 | extern void __led_toggle (led_id_t mask); | |
378 | extern void __led_init (led_id_t mask, int state); | |
379 | extern void __led_set (led_id_t mask, int state); | |
c609719b WD |
380 | #else |
381 | # error Status LED configuration missing | |
382 | #endif | |
383 | /************************************************************************/ | |
384 | ||
48b42616 WD |
385 | #ifndef CONFIG_BOARD_SPECIFIC_LED |
386 | # include <asm/status_led.h> | |
387 | #endif | |
388 | ||
de74b9ee | 389 | /* |
bd86220f | 390 | * Coloured LEDs API |
de74b9ee | 391 | */ |
bd86220f PP |
392 | #ifndef __ASSEMBLY__ |
393 | extern void coloured_LED_init (void); | |
394 | extern void red_LED_on(void); | |
395 | extern void red_LED_off(void); | |
396 | extern void green_LED_on(void); | |
397 | extern void green_LED_off(void); | |
398 | extern void yellow_LED_on(void); | |
399 | extern void yellow_LED_off(void); | |
7cdf804f TR |
400 | extern void blue_LED_on(void); |
401 | extern void blue_LED_off(void); | |
bd86220f PP |
402 | #else |
403 | .extern LED_init | |
404 | .extern red_LED_on | |
405 | .extern red_LED_off | |
406 | .extern yellow_LED_on | |
407 | .extern yellow_LED_off | |
408 | .extern green_LED_on | |
409 | .extern green_LED_off | |
7cdf804f TR |
410 | .extern blue_LED_on |
411 | .extern blue_LED_off | |
bd86220f PP |
412 | #endif |
413 | ||
c609719b WD |
414 | #endif /* CONFIG_STATUS_LED */ |
415 | ||
416 | #endif /* _STATUS_LED_H_ */ |