• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * (C) Copyright 2007-2008
4  * Stelian Pop <stelian@popies.net>
5  * Lead Tech Design <www.leadtechdesign.com>
6  */
7 
8 #include <common.h>
9 #include <asm/gpio.h>
10 #include <asm/arch/gpio.h>
11 #include <status_led.h>
12 
13 #ifdef CONFIG_RED_LED
red_led_on(void)14 void red_led_on(void)
15 {
16 	gpio_set_value(CONFIG_RED_LED, 1);
17 }
18 
red_led_off(void)19 void red_led_off(void)
20 {
21 	gpio_set_value(CONFIG_RED_LED, 0);
22 }
23 #endif
24 
25 #ifdef CONFIG_GREEN_LED
green_led_on(void)26 void green_led_on(void)
27 {
28 	gpio_set_value(CONFIG_GREEN_LED, 0);
29 }
30 
green_led_off(void)31 void green_led_off(void)
32 {
33 	gpio_set_value(CONFIG_GREEN_LED, 1);
34 }
35 #endif
36 
37 #ifdef CONFIG_YELLOW_LED
yellow_led_on(void)38 void yellow_led_on(void)
39 {
40 	gpio_set_value(CONFIG_YELLOW_LED, 0);
41 }
42 
yellow_led_off(void)43 void yellow_led_off(void)
44 {
45 	gpio_set_value(CONFIG_YELLOW_LED, 1);
46 }
47 #endif
48