1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2007-2008
4 * Stelian Pop <stelian@popies.net>
5 * Lead Tech Design <www.leadtechdesign.com>
10 #include <asm/arch/gpio.h>
11 #include <status_led.h>
16 gpio_set_value(CONFIG_RED_LED, 1);
19 void red_led_off(void)
21 gpio_set_value(CONFIG_RED_LED, 0);
25 #ifdef CONFIG_GREEN_LED
26 void green_led_on(void)
28 gpio_set_value(CONFIG_GREEN_LED, 0);
31 void green_led_off(void)
33 gpio_set_value(CONFIG_GREEN_LED, 1);
37 #ifdef CONFIG_YELLOW_LED
38 void yellow_led_on(void)
40 gpio_set_value(CONFIG_YELLOW_LED, 0);
43 void yellow_led_off(void)
45 gpio_set_value(CONFIG_YELLOW_LED, 1);