1*83d290c5STom Rini // SPDX-License-Identifier: GPL-2.0+ 20176d43eSStelian Pop /* 30176d43eSStelian Pop * (C) Copyright 2007-2008 4c9e798d3SStelian Pop * Stelian Pop <stelian@popies.net> 50176d43eSStelian Pop * Lead Tech Design <www.leadtechdesign.com> 60176d43eSStelian Pop */ 70176d43eSStelian Pop 80176d43eSStelian Pop #include <common.h> 98c6407fcSReinhard Meyer #include <asm/io.h> 100176d43eSStelian Pop #include <asm/arch/gpio.h> 1152422e37SJeroen Hofstee #include <status_led.h> 120176d43eSStelian Pop coloured_LED_init(void)130176d43eSStelian Popvoid coloured_LED_init(void) 140176d43eSStelian Pop { 158c6407fcSReinhard Meyer /* Clock is enabled in board_early_init_f() */ 16a484b00bSJean-Christophe PLAGNIOL-VILLARD at91_set_gpio_output(CONFIG_RED_LED, 1); 17a484b00bSJean-Christophe PLAGNIOL-VILLARD at91_set_gpio_output(CONFIG_GREEN_LED, 1); 180176d43eSStelian Pop 19a484b00bSJean-Christophe PLAGNIOL-VILLARD at91_set_gpio_value(CONFIG_RED_LED, 0); 20a484b00bSJean-Christophe PLAGNIOL-VILLARD at91_set_gpio_value(CONFIG_GREEN_LED, 1); 210176d43eSStelian Pop } 22