summaryrefslogtreecommitdiffstats
path: root/board/atmel/at91sam9rlek/led.c
diff options
context:
space:
mode:
authorXu, Hong <Hong.Xu@atmel.com>2011-08-01 03:56:53 +0000
committerU-Boot <uboot@aari01-12.(none)>2011-08-03 13:00:56 +0200
commit21d671d0c492984c75c7cb704325e56448bf277a (patch)
treecc125504bd2830025adf3197314ffa81612abe97 /board/atmel/at91sam9rlek/led.c
parentf87353f0d96304d4768937973fa3ab83413d3433 (diff)
downloadblackbird-obmc-uboot-21d671d0c492984c75c7cb704325e56448bf277a.tar.gz
blackbird-obmc-uboot-21d671d0c492984c75c7cb704325e56448bf277a.zip
AT91: Makes AT91SAM9RL-EK build correctly against u-boot-atmel/master
Rework for AT91SAM9RL-EK, makes it build again. Based on the work for AT91SAM9260-EK. V4: added changes to MAKEALL Signed-off-by: Hong Xu <hong.xu@atmel.com> Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
Diffstat (limited to 'board/atmel/at91sam9rlek/led.c')
-rw-r--r--board/atmel/at91sam9rlek/led.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/board/atmel/at91sam9rlek/led.c b/board/atmel/at91sam9rlek/led.c
index 9634cc03e1..987e8c061c 100644
--- a/board/atmel/at91sam9rlek/led.c
+++ b/board/atmel/at91sam9rlek/led.c
@@ -26,12 +26,14 @@
#include <asm/arch/at91sam9rl.h>
#include <asm/arch/at91_pmc.h>
#include <asm/arch/gpio.h>
-#include <asm/arch/io.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 << AT91SAM9RL_ID_PIOD);
+ writel(ATMEL_ID_PIOD, &pmc->pcer);
at91_set_gpio_output(CONFIG_RED_LED, 1);
at91_set_gpio_output(CONFIG_GREEN_LED, 1);
OpenPOWER on IntegriCloud