blob: 56d811ca42566e8e3409c461c6dffd7ed3a568bb [file] [log] [blame]
Stelian Pop78379932008-03-26 18:52:33 +01001/*
2 * (C) Copyright 2007-2008
Stelian Pop5ee0c7f2011-11-01 00:00:39 +01003 * Stelian Pop <stelian@popies.net>
Stelian Pop78379932008-03-26 18:52:33 +01004 * Lead Tech Design <www.leadtechdesign.com>
5 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02006 * SPDX-License-Identifier: GPL-2.0+
Stelian Pop78379932008-03-26 18:52:33 +01007 */
8
9#include <common.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>
Stelian Pop78379932008-03-26 18:52:33 +010012
Stelian Pop78379932008-03-26 18:52:33 +010013void coloured_LED_init(void)
14{
Reinhard Meyer0bda5f22011-06-06 00:13:10 +000015 /* Clock is enabled in board_early_init_f() */
Jean-Christophe PLAGNIOL-VILLARD476d10e2009-03-21 21:08:00 +010016 at91_set_gpio_output(CONFIG_RED_LED, 1);
17 at91_set_gpio_output(CONFIG_GREEN_LED, 1);
Stelian Pop78379932008-03-26 18:52:33 +010018
Jean-Christophe PLAGNIOL-VILLARD476d10e2009-03-21 21:08:00 +010019 at91_set_gpio_value(CONFIG_RED_LED, 0);
20 at91_set_gpio_value(CONFIG_GREEN_LED, 1);
Stelian Pop78379932008-03-26 18:52:33 +010021}