atmel: Update support of board AT91SAM9M10G45-EK to new style
Subsystems (2)
PATCH 1/1 atmel: Update support of board AT91SAM9M10G45-EK to new style
Based on earlier work by Alex Waterman <[email protected]>.
Signed-off-by Thomas Petazzoni <[email protected]>
--- MAKEALL | 1 - Makefile | 21 --- board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c | 115 ++++++++------ board/atmel/at91sam9m10g45ek/led.c | 6 +- boards.cfg | 1 + include/configs/at91sam9m10g45ek.h | 193 ++++++++++------------- 6 files changed, 155 insertions(+), 182 deletions(-)
MAKEALL +0 -1
@@ -444,7 +444,6 @@ LIST_ARMV7=" \ ######################################################################### LIST_at91="$(boards_by_soc at91)\ - at91sam9m10g45ek \ pm9g45 \ "
Makefile +0 -21
@@ -802,27 +802,6 @@ M5485HFE_config : unconfig ## ARM926EJ-S Systems ######################################################################### -at91sam9m10g45ek_nandflash_config \ -at91sam9m10g45ek_dataflash_config \ -at91sam9m10g45ek_dataflash_cs0_config \ -at91sam9m10g45ek_config \ -at91sam9g45ekes_nandflash_config \ -at91sam9g45ekes_dataflash_config \ -at91sam9g45ekes_dataflash_cs0_config \ -at91sam9g45ekes_config : unconfig - @mkdir -p $(obj)include - @if [ "$(findstring 9m10,$@)" ] ; then \ - echo "#define CONFIG_AT91SAM9M10G45EK 1" >>$(obj)include/config.h ; \ - else \ - echo "#define CONFIG_AT91SAM9G45EKES 1" >>$(obj)include/config.h ; \ - fi; - @if [ "$(findstring _nandflash,$@)" ] ; then \ - echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ - else \ - echo "#define CONFIG_ATMEL_SPI 1" >>$(obj)include/config.h ; \ - fi; - @$(MKCONFIG) -n $@ -a at91sam9m10g45ek arm arm926ejs at91sam9m10g45ek atmel at91 - pm9g45_config : unconfig @mkdir -p $(obj)include @$(MKCONFIG) -a pm9g45 arm arm926ejs pm9g45 ronetix at91
board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c +63 -52
238 lines not on this page · raw message
board/atmel/at91sam9m10g45ek/led.c +4 -2
@@ -23,15 +23,17 @@*/ #include <common.h> +#include <asm/io.h> #include <asm/arch/at91sam9g45.h> #include <asm/arch/at91_pmc.h> #include <asm/arch/gpio.h> -#include <asm/arch/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 <<AT91SAM9G45_ID_PIODE ); +writel (1 <<ATMEL_ID_PIODE , &pmc->pcer);at91_set_gpio_output (CONFIG_RED_LED ,1 );at91_set_gpio_output (CONFIG_GREEN_LED ,1 );
boards.cfg +1 -0
@@ -94,6 +94,7 @@ at91sam9g10ek_dataflash_cs3 arm arm926ejs at91sam9261ek atmel at91sam9g20ek_nandflash arm arm926ejs at91sam9260ek atmel at91 at91sam9260ek:AT91SAM9G20,SYS_USE_NANDFLASH at91sam9g20ek_dataflash_cs0 arm arm926ejs at91sam9260ek atmel at91 at91sam9260ek:AT91SAM9G20,SYS_USE_DATAFLASH_CS0 at91sam9g20ek_dataflash_cs1 arm arm926ejs at91sam9260ek atmel at91 at91sam9260ek:AT91SAM9G20,SYS_USE_DATAFLASH_CS1 +at91sam9m10g45ek_nandflash arm arm926ejs at91sam9m10g45ek atmel at91 at91sam9m10g45ek:AT91SAM9M10G45,SYS_USE_NANDFLASH at91sam9rlek_nandflash arm arm926ejs at91sam9rlek atmel at91 at91sam9rlek:AT91SAM9RL,SYS_USE_NANDFLASH at91sam9rlek_dataflash arm arm926ejs at91sam9rlek atmel at91 at91sam9rlek:AT91SAM9RL,SYS_USE_DATAFLASH at91sam9xeek_nandflash arm arm926ejs at91sam9260ek atmel at91 at91sam9260ek:AT91SAM9XE,SYS_USE_NANDFLASH
include/configs/at91sam9m10g45ek.h +87 -106
257 lines not on this page · raw message
Signature · 1 line
1.7.4.1
PATCH 1/1 atmel: Update support of board AT91SAM9M10G45-EK to new style
Dear Thomas Petazzoni,
Quoted 12 lines
Based on earlier work by Alex Waterman <[email protected]>.
Signed-off-by Thomas Petazzoni <[email protected]>--- MAKEALL | 1 - Makefile | 21 --- board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c | 115 ++++++++------ board/atmel/at91sam9m10g45ek/led.c | 6 +- boards.cfg | 1 + include/configs/at91sam9m10g45ek.h | 193 ++++++++++------------- 6 files changed, 155 insertions(+), 182 deletions(-)
Configuring for at91sam9m10g45ek_nandflash - Board: at91sam9m10g45ek,
Options: AT91SAM9M10G45,SYS_USE_NANDFLASH
text data bss dec hex filename
201528 32116 71768 305412 4a904 ./u-boot
Applied to u-boot-atmel/master,
board removal patch set to "Not Applicable",
thanks,
Reinhard