blob: cc6d5d7a05eb0ce9499e5c8e57184c3ef17d60ef [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Stelian Pop78379932008-03-26 18:52:33 +01002/*
3 * (C) Copyright 2007-2008
Stelian Pop5ee0c7f2011-11-01 00:00:39 +01004 * Stelian Pop <stelian@popies.net>
Stelian Pop78379932008-03-26 18:52:33 +01005 * Lead Tech Design <www.leadtechdesign.com>
Stelian Pop78379932008-03-26 18:52:33 +01006 */
7
8#include <common.h>
Simon Glass97589732020-05-10 11:40:02 -06009#include <init.h>
Reinhard Meyer0bda5f22011-06-06 00:13:10 +000010#include <asm/io.h>
Stelian Pop78379932008-03-26 18:52:33 +010011#include <asm/arch/gpio.h>
Jeroen Hofstee74a08bc2014-10-08 22:57:53 +020012#include <status_led.h>
Stelian Pop78379932008-03-26 18:52:33 +010013
Stelian Pop78379932008-03-26 18:52:33 +010014void coloured_LED_init(void)
15{
Reinhard Meyer0bda5f22011-06-06 00:13:10 +000016 /* Clock is enabled in board_early_init_f() */
Jean-Christophe PLAGNIOL-VILLARD476d10e2009-03-21 21:08:00 +010017 at91_set_gpio_output(CONFIG_RED_LED, 1);
18 at91_set_gpio_output(CONFIG_GREEN_LED, 1);
Stelian Pop78379932008-03-26 18:52:33 +010019
Jean-Christophe PLAGNIOL-VILLARD476d10e2009-03-21 21:08:00 +010020 at91_set_gpio_value(CONFIG_RED_LED, 0);
21 at91_set_gpio_value(CONFIG_GREEN_LED, 1);
Stelian Pop78379932008-03-26 18:52:33 +010022}