summaryrefslogtreecommitdiffstats
path: root/board/ronetix/pm9261/led.c
diff options
context:
space:
mode:
authorAsen Dimov <dimov@ronetix.at>2011-07-26 04:48:41 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-09-03 22:40:44 +0200
commitf47316a8ba3e83e136be33a7610cbdd0a8ca7990 (patch)
treea078b6b7af036bdccca748913254a255acfcc6d8 /board/ronetix/pm9261/led.c
parent65b0f87a806f849670cbe23e7bbda15314621d70 (diff)
downloadtalos-obmc-uboot-f47316a8ba3e83e136be33a7610cbdd0a8ca7990.tar.gz
talos-obmc-uboot-f47316a8ba3e83e136be33a7610cbdd0a8ca7990.zip
pm9261: compiles with the AT91 reworked scheme
Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
Diffstat (limited to 'board/ronetix/pm9261/led.c')
-rw-r--r--board/ronetix/pm9261/led.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/board/ronetix/pm9261/led.c b/board/ronetix/pm9261/led.c
index ff21ce667b..f65987035d 100644
--- a/board/ronetix/pm9261/led.c
+++ b/board/ronetix/pm9261/led.c
@@ -24,17 +24,16 @@
*/
#include <common.h>
-#include <asm/arch/at91sam9261.h>
#include <asm/arch/at91_pmc.h>
-#include <asm/arch/at91_pio.h>
-#include <asm/arch/io.h>
+#include <asm/arch/gpio.h>
+#include <asm/io.h>
void coloured_LED_init(void)
{
- at91_pmc_t *pmc = (at91_pmc_t *) AT91_PMC_BASE;
+ struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC;
/* Enable clock */
- writel(1 << AT91SAM9261_ID_PIOC, &pmc->pcer);
+ writel(1 << ATMEL_ID_PIOC, &pmc->pcer);
at91_set_pio_output(CONFIG_RED_LED, 1);
at91_set_pio_output(CONFIG_GREEN_LED, 1);
OpenPOWER on IntegriCloud