18e429b3eSStelian Pop /*
28e429b3eSStelian Pop * (C) Copyright 2007-2008
3c9e798d3SStelian Pop * Stelian Pop <stelian@popies.net>
48e429b3eSStelian Pop * Lead Tech Design <www.leadtechdesign.com>
58e429b3eSStelian Pop *
61a459660SWolfgang Denk * SPDX-License-Identifier: GPL-2.0+
78e429b3eSStelian Pop */
88e429b3eSStelian Pop
98e429b3eSStelian Pop #include <common.h>
10cd46b0f2SXu, Hong #include <asm/io.h>
118e429b3eSStelian Pop #include <asm/arch/gpio.h>
12cd46b0f2SXu, Hong #include <asm/arch/at91sam9263.h>
13*70341e2eSWenyou Yang #include <asm/arch/clk.h>
148e429b3eSStelian Pop
coloured_LED_init(void)158e429b3eSStelian Pop void coloured_LED_init(void)
168e429b3eSStelian Pop {
17*70341e2eSWenyou Yang at91_periph_clk_enable(ATMEL_ID_PIOB);
18*70341e2eSWenyou Yang at91_periph_clk_enable(ATMEL_ID_PIOB);
198e429b3eSStelian Pop
20cd46b0f2SXu, Hong at91_set_gpio_output(CONFIG_RED_LED, 1);
21cd46b0f2SXu, Hong at91_set_gpio_output(CONFIG_GREEN_LED, 1);
22cd46b0f2SXu, Hong at91_set_gpio_output(CONFIG_YELLOW_LED, 1);
231b34f00cSJens Scharsig
24cd46b0f2SXu, Hong at91_set_gpio_value(CONFIG_RED_LED, 0);
25cd46b0f2SXu, Hong at91_set_gpio_value(CONFIG_GREEN_LED, 1);
26cd46b0f2SXu, Hong at91_set_gpio_value(CONFIG_YELLOW_LED, 1);
278e429b3eSStelian Pop }
28