blob: 8320ad4fac299154cfbae1de92351d53ce41064d [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
rev13@wp.pl6b5e5a92015-03-01 12:44:42 +01002/*
3 * (C) Copyright 2015
Kamil Lulkodecd33b2015-11-29 11:50:53 +01004 * Kamil Lulko, <kamil.lulko@gmail.com>
rev13@wp.pl6b5e5a92015-03-01 12:44:42 +01005 */
6
7#include <common.h>
8#include <asm-generic/gpio.h>
9
10void coloured_LED_init(void)
11{
12 gpio_direction_output(CONFIG_RED_LED, 0);
13 gpio_direction_output(CONFIG_GREEN_LED, 0);
14}
15
16void red_led_off(void)
17{
18 gpio_set_value(CONFIG_RED_LED, 0);
19}
20
21void green_led_off(void)
22{
23 gpio_set_value(CONFIG_GREEN_LED, 0);
24}
25
26void red_led_on(void)
27{
28 gpio_set_value(CONFIG_RED_LED, 1);
29}
30
31void green_led_on(void)
32{
33 gpio_set_value(CONFIG_GREEN_LED, 1);
34}