aboutsummaryrefslogtreecommitdiff
path: root/board/atmel/at91sam9260ek/led.c
diff options
context:
space:
mode:
authorReinhard Meyer <u-boot@emk-elektronik.de>2011-06-06 00:13:10 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-06-21 22:26:22 +0200
commit8c6407fce320155a1e56645b9f95db9ac0806c26 (patch)
treef26ae3bf93ae1544f3f22df053eafcf9742a4935 /board/atmel/at91sam9260ek/led.c
parentb8d41dda223133691b40726b9c7fd3d55a9e6e42 (diff)
AT91 rework: fix at91sam(9260/9g20/9xe)ek board port to build again:
Make ATMEL's at91sam9260/9g20/9xe-ek boards build again Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
Diffstat (limited to 'board/atmel/at91sam9260ek/led.c')
-rw-r--r--board/atmel/at91sam9260ek/led.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/board/atmel/at91sam9260ek/led.c b/board/atmel/at91sam9260ek/led.c
index 2424d27fb..daf81e805 100644
--- a/board/atmel/at91sam9260ek/led.c
+++ b/board/atmel/at91sam9260ek/led.c
@@ -23,16 +23,12 @@
*/
#include <common.h>
-#include <asm/arch/at91sam9260.h>
-#include <asm/arch/at91_pmc.h>
+#include <asm/io.h>
#include <asm/arch/gpio.h>
-#include <asm/arch/io.h>
void coloured_LED_init(void)
{
- /* Enable clock */
- at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9260_ID_PIOA);
-
+ /* Clock is enabled in board_early_init_f() */
at91_set_gpio_output(CONFIG_RED_LED, 1);
at91_set_gpio_output(CONFIG_GREEN_LED, 1);