pm9261 converted to at91 soc access
PATCH 1/1 pm9261 converted to at91 soc access
Signed-off-by Asen Dimov <[email protected]>
--- board/ronetix/pm9261/led.c | 18 +++-- board/ronetix/pm9261/pm9261.c | 152 +++++++++++++++++++++++----------------- include/configs/pm9261.h | 68 +++++++++---------- 3 files changed, 130 insertions(+), 108 deletions(-)
board/ronetix/pm9261/led.c +10 -8
@@ -26,19 +26,21 @@#include <common.h> #include <asm/arch/at91sam9261.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 <<AT91SAM9261_ID_PIOC ); +writel (1 <<AT91SAM9261_ID_PIOC , &pmc->pcer); -at91_set_gpio_output (CONFIG_RED_LED ,1 ); -at91_set_gpio_output (CONFIG_GREEN_LED ,1 ); -at91_set_gpio_output (CONFIG_YELLOW_LED ,1 ); +at91_set_pio_output (CONFIG_RED_LED ,1 ); +at91_set_pio_output (CONFIG_GREEN_LED ,1 ); +at91_set_pio_output (CONFIG_YELLOW_LED ,1 ); -at91_set_gpio_value (CONFIG_RED_LED ,0 ); -at91_set_gpio_value (CONFIG_GREEN_LED ,1 ); -at91_set_gpio_value (CONFIG_YELLOW_LED ,1 ); +at91_set_pio_value (CONFIG_RED_LED ,0 ); +at91_set_pio_value (CONFIG_GREEN_LED ,1 ); +at91_set_pio_value (CONFIG_YELLOW_LED ,1 ); }
board/ronetix/pm9261/pm9261.c +87 -65
213 lines not on this page · raw message
include/configs/pm9261.h +33 -35
123 lines not on this page · raw message
Signature · 1 line
1.5.5.6
PATCH 1/1 pm9261 converted to at91 soc access
board/ronetix/pm9261/led.c
Quoted 8 lines · Asen Dimov
Signed-off-by Asen Dimov <[email protected]>--- board/ronetix/pm9261/led.c | 18 +++-- board/ronetix/pm9261/pm9261.c | 152 +++++++++++++++++++++++----------------- include/configs/pm9261.h | 68 +++++++++---------- 3 files changed, 130 insertions(+), 108 deletions(-)board/ronetix/pm9261/led.c +0
-0
This patch has been applied to arm/next
Thanks
Tom