AT91 rework: fix at91sam(9260/9g20/9xe)ek board port to build again:
[oweals/u-boot.git] / board / atmel / at91sam9260ek / led.c
index 2424d27fbd1a4ae271a2d843599c765139cbd2f6..daf81e805bb5de0de7f14e9d5764de82396283e5 100644 (file)
  */
 
 #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);