Skip to contentSkip to conversation

pm9263 converted to at91 soc access

PATCH New Asen Dimov 2 participants 2 messages Apr 19, 2010 – Apr 29, 2010

lore
Share & tools
lore

Asen Dimov

author
#0 lore raw

PATCH v2 1/1 pm9263 converted to at91 soc access

---
 board/ronetix/pm9263/led.c    |   15 ++--
 board/ronetix/pm9263/pm9263.c |  195 +++++++++++++++++++++--------------------
 include/configs/pm9263.h      |   87 +++++++++---------
 3 files changed, 152 insertions(+), 145 deletions(-)
board/ronetix/pm9263/led.c +8 -7
index fe1a1d2..4e585a4 100644
@@ -26,18 +26,19 @@
 #include <common.h>
 #include <asm/arch/at91sam9263.h>
 #include <asm/arch/at91_pmc.h>
-#include <asm/arch/gpio.h>
+#include <asm/arch/at91_pio.h>
 #include <asm/arch/io.h>
 
 void coloured_LED_init(void)
 {
+	at91_pmc_t	*pmc	= (at91_pmc_t *) AT91_PMC_BASE;
+
 	/* Enable clock */
-	at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9263_ID_PIOB |
-				      1 << AT91SAM9263_ID_PIOCDE);
+	writel(1 << AT91SAM9263_ID_PIOB, &pmc->pcer);
 
-	at91_set_gpio_output(CONFIG_RED_LED, 1);
-	at91_set_gpio_output(CONFIG_GREEN_LED, 1);
+	at91_set_pio_output(CONFIG_RED_LED, 1);
+	at91_set_pio_output(CONFIG_GREEN_LED, 1);
 
-	at91_set_gpio_value(CONFIG_RED_LED, 0);
-	at91_set_gpio_value(CONFIG_GREEN_LED, 1);
+	at91_set_pio_value(CONFIG_RED_LED, 0);
+	at91_set_pio_value(CONFIG_GREEN_LED, 1);
 }
board/ronetix/pm9263/pm9263.c +101 -94

312 lines not on this page · raw message

include/configs/pm9263.h +43 -44

154 lines not on this page · raw message

Signature · 1 line
1.5.5.6
Applied
#1 lore raw

PATCH v2 1/1 pm9263 converted to at91 soc access

Quoted 7 lines · Asen Dimov
---
 board/ronetix/pm9263/led.c    |   15 ++--
 board/ronetix/pm9263/pm9263.c |  195 +++++++++++++++++++++--------------------
 include/configs/pm9263.h      |   87 +++++++++---------
 3 files changed, 152 insertions(+), 145 deletions(-)

Applied to arm/master.
Thanks
Tom