blob: 2ea66b9b15502992b1619b12086668223af4e19a [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Stelian Pop0176d432008-03-26 18:52:33 +01002/*
3 * (C) Copyright 2007-2008
Stelian Popc9e798d2011-11-01 00:00:39 +01004 * Stelian Pop <stelian@popies.net>
Stelian Pop0176d432008-03-26 18:52:33 +01005 * Lead Tech Design <www.leadtechdesign.com>
Stelian Pop0176d432008-03-26 18:52:33 +01006 */
7
8#include <common.h>
Reinhard Meyer8c6407f2011-06-06 00:13:10 +00009#include <asm/io.h>
Stelian Pop0176d432008-03-26 18:52:33 +010010#include <asm/arch/gpio.h>
Jeroen Hofstee52422e32014-10-08 22:57:53 +020011#include <status_led.h>
Stelian Pop0176d432008-03-26 18:52:33 +010012
Stelian Pop0176d432008-03-26 18:52:33 +010013void coloured_LED_init(void)
14{
Reinhard Meyer8c6407f2011-06-06 00:13:10 +000015 /* Clock is enabled in board_early_init_f() */
Jean-Christophe PLAGNIOL-VILLARDa484b002009-03-21 21:08:00 +010016 at91_set_gpio_output(CONFIG_RED_LED, 1);
17 at91_set_gpio_output(CONFIG_GREEN_LED, 1);
Stelian Pop0176d432008-03-26 18:52:33 +010018
Jean-Christophe PLAGNIOL-VILLARDa484b002009-03-21 21:08:00 +010019 at91_set_gpio_value(CONFIG_RED_LED, 0);
20 at91_set_gpio_value(CONFIG_GREEN_LED, 1);
Stelian Pop0176d432008-03-26 18:52:33 +010021}