]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/cpu/arm926ejs/at91/led.c
5dd90487eddc6edcdc1802580aff4597bb522569
[karo-tx-uboot.git] / arch / arm / cpu / arm926ejs / at91 / led.c
1 /*
2  * (C) Copyright 2007-2008
3  * Stelian Pop <stelian@popies.net>
4  * Lead Tech Design <www.leadtechdesign.com>
5  *
6  * SPDX-License-Identifier:     GPL-2.0+
7  */
8
9 #include <common.h>
10 #include <asm/io.h>
11 #include <asm/arch/at91_pmc.h>
12 #include <asm/arch/at91_pio.h>
13 #include <asm/arch/gpio.h>
14
15 #ifdef CONFIG_RED_LED
16 void red_led_on(void)
17 {
18         at91_set_gpio_value(CONFIG_RED_LED, 1);
19 }
20
21 void red_led_off(void)
22 {
23         at91_set_gpio_value(CONFIG_RED_LED, 0);
24 }
25 #endif
26
27 #ifdef CONFIG_GREEN_LED
28 void green_led_on(void)
29 {
30         at91_set_gpio_value(CONFIG_GREEN_LED, 0);
31 }
32
33 void green_led_off(void)
34 {
35         at91_set_gpio_value(CONFIG_GREEN_LED, 1);
36 }
37 #endif
38
39 #ifdef CONFIG_YELLOW_LED
40 void yellow_led_on(void)
41 {
42         at91_set_gpio_value(CONFIG_YELLOW_LED, 0);
43 }
44
45 void yellow_led_off(void)
46 {
47         at91_set_gpio_value(CONFIG_YELLOW_LED, 1);
48 }
49 #endif