]>
Commit | Line | Data |
---|---|---|
6afcabf1 | 1 | /* |
f0a2c7b4 | 2 | * (C) Copyright 2007-2008 |
c9e798d3 | 3 | * Stelian Pop <stelian@popies.net> |
f0a2c7b4 II |
4 | * Lead Tech Design <www.leadtechdesign.com> |
5 | * Ilko Iliev <www.ronetix.at> | |
6afcabf1 | 6 | * |
1a459660 | 7 | * SPDX-License-Identifier: GPL-2.0+ |
6afcabf1 SP |
8 | */ |
9 | ||
f0a2c7b4 | 10 | #include <common.h> |
bcf9fe37 | 11 | #include <asm/gpio.h> |
70341e2e | 12 | #include <asm/arch/clk.h> |
684a567a | 13 | #include <asm/arch/gpio.h> |
6afcabf1 | 14 | |
f0a2c7b4 II |
15 | void coloured_LED_init(void) |
16 | { | |
70341e2e | 17 | at91_periph_clk_enable(ATMEL_ID_PIOB); |
6afcabf1 | 18 | |
bcf9fe37 AB |
19 | gpio_direction_output(CONFIG_RED_LED, 1); |
20 | gpio_direction_output(CONFIG_GREEN_LED, 1); | |
6afcabf1 | 21 | |
bcf9fe37 AB |
22 | gpio_set_value(CONFIG_RED_LED, 0); |
23 | gpio_set_value(CONFIG_GREEN_LED, 1); | |
6afcabf1 | 24 | } |