blob: fbe15afd281b34d59317d3c40d40f35299253df7 [file] [log] [blame]
Stelian Pop0176d432008-03-26 18:52:33 +01001/*
2 * (C) Copyright 2007-2008
Stelian Popc9e798d2011-11-01 00:00:39 +01003 * Stelian Pop <stelian@popies.net>
Stelian Pop0176d432008-03-26 18:52:33 +01004 * Lead Tech Design <www.leadtechdesign.com>
5 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02006 * SPDX-License-Identifier: GPL-2.0+
Stelian Pop0176d432008-03-26 18:52:33 +01007 */
8
9#include <common.h>
Reinhard Meyer8c6407f2011-06-06 00:13:10 +000010#include <asm/io.h>
Stelian Pop0176d432008-03-26 18:52:33 +010011#include <asm/arch/gpio.h>
Jeroen Hofstee52422e32014-10-08 22:57:53 +020012#include <status_led.h>
Stelian Pop0176d432008-03-26 18:52:33 +010013
Stelian Pop0176d432008-03-26 18:52:33 +010014void coloured_LED_init(void)
15{
Reinhard Meyer8c6407f2011-06-06 00:13:10 +000016 /* Clock is enabled in board_early_init_f() */
Jean-Christophe PLAGNIOL-VILLARDa484b002009-03-21 21:08:00 +010017 at91_set_gpio_output(CONFIG_RED_LED, 1);
18 at91_set_gpio_output(CONFIG_GREEN_LED, 1);
Stelian Pop0176d432008-03-26 18:52:33 +010019
Jean-Christophe PLAGNIOL-VILLARDa484b002009-03-21 21:08:00 +010020 at91_set_gpio_value(CONFIG_RED_LED, 0);
21 at91_set_gpio_value(CONFIG_GREEN_LED, 1);
Stelian Pop0176d432008-03-26 18:52:33 +010022}