diff options
author | Xu, Hong <Hong.Xu@atmel.com> | 2011-07-31 22:49:00 (GMT) |
---|---|---|
committer | U-Boot <uboot@aari01-12.(none)> | 2011-08-03 11:00:56 (GMT) |
commit | f7aea46d6ad9c257d2fbea7238cc8796aaa733f1 (patch) | |
tree | 916aca91aa1c78bbe6622a02edf98aa3c5dc7bd2 /board/atmel/at91sam9261ek/led.c | |
parent | 673d39f6e40947ac77344e5029416c7b0c3ebd36 (diff) | |
download | u-boot-f7aea46d6ad9c257d2fbea7238cc8796aaa733f1.tar.xz |
AT91: Board fix for AT91SAM9261-EK
Fix board part of AT91SAM9261-EK according to the new scheme
Signed-off-by: Hong Xu <hong.xu@atmel.com>
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
Diffstat (limited to 'board/atmel/at91sam9261ek/led.c')
-rw-r--r-- | board/atmel/at91sam9261ek/led.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/board/atmel/at91sam9261ek/led.c b/board/atmel/at91sam9261ek/led.c index 5d1c5f2..0c2f522 100644 --- a/board/atmel/at91sam9261ek/led.c +++ b/board/atmel/at91sam9261ek/led.c @@ -26,12 +26,15 @@ #include <asm/arch/at91sam9261.h> #include <asm/arch/at91_pmc.h> #include <asm/arch/gpio.h> -#include <asm/arch/io.h> +#include <asm/arch/at91_pio.h> +#include <asm/io.h> void coloured_LED_init(void) { + struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; + /* Enable clock */ - at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9261_ID_PIOA); + writel(ATMEL_ID_PIOA, &pmc->pcer); at91_set_gpio_output(CONFIG_RED_LED, 1); at91_set_gpio_output(CONFIG_GREEN_LED, 1); |