Makes AT91SAM9261-EK build correctly against the mainline HEAD
Subsystems (3)
PATCH 1/1 Makes AT91SAM9261-EK build correctly against the mainline HEAD
Rework for AT91SAM9261-EK, makes it build again.
Based on the work for AT91SAM9260-EK.
--- Makefile | 23 ---- arch/arm/cpu/arm926ejs/at91/at91sam9261_devices.c | 45 +++---- arch/arm/include/asm/arch-at91/at91_spi.h | 2 +- arch/arm/include/asm/arch-at91/at91sam9261.h | 2 +- .../arm/include/asm/arch-at91/at91sam9261_matrix.h | 77 +++++------ board/atmel/at91sam9261ek/at91sam9261ek.c | 136 ++++++++++--------- board/atmel/at91sam9261ek/config.mk | 1 - board/atmel/at91sam9261ek/led.c | 7 +- boards.cfg | 6 + include/configs/at91sam9261ek.h | 81 +++++++----- 10 files changed, 184 insertions(+), 196 deletions(-) delete mode 100644 board/atmel/at91sam9261ek/config.mk
Makefile +0 -23
@@ -803,29 +803,6 @@ at91sam9xeek_config : unconfig fi; @$(MKCONFIG) -n $@ -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91 -at91sam9261ek_nandflash_config \ -at91sam9261ek_dataflash_cs0_config \ -at91sam9261ek_dataflash_cs3_config \ -at91sam9261ek_config \ -at91sam9g10ek_nandflash_config \ -at91sam9g10ek_dataflash_cs0_config \ -at91sam9g10ek_dataflash_cs3_config \ -at91sam9g10ek_config : unconfig - @mkdir -p $(obj)include - @if [ "$(findstring 9g10,$@)" ] ; then \ - echo "#define CONFIG_AT91SAM9G10EK 1" >>$(obj)include/config.h ; \ - else \ - echo "#define CONFIG_AT91SAM9261EK 1" >>$(obj)include/config.h ; \ - fi; - @if [ "$(findstring _nandflash,$@)" ] ; then \ - echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ - elif [ "$(findstring dataflash_cs0,$@)" ] ; then \ - echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1" >>$(obj)include/config.h ; \ - else \ - echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \ - fi; - @$(MKCONFIG) -n $@ -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91 - at91sam9263ek_norflash_config \ at91sam9263ek_norflash_boot_config \ at91sam9263ek_nandflash_config \
arch/arm/cpu/arm926ejs/at91/at91sam9261_devices.c +18 -27
106 lines not on this page · raw message
arch/arm/include/asm/arch-at91/at91_spi.h +1 -1
@@ -33,7 +33,7 @@ typedef struct at91_spi {at91_pdc_t pdc; } at91_spi_t; -#ifdef CONFIG_AT91_LEGACY +#ifdef CONFIG_ATMEL_LEGACY #define AT91_SPI_CR 0x00/* Control Register */ #define AT91_SPI_SPIEN (1 << 0)/* SPI Enable */
arch/arm/include/asm/arch-at91/at91sam9261.h +1 -1
@@ -125,7 +125,7 @@* Other misc defines */ #define ATMEL_PIO_PORTS 3/* theese SoCs have 3 PIO */ - +#define ATMEL_PMC_UHP AT91SAM926x_PMC_UHP/* * SoC specific defines */
arch/arm/include/asm/arch-at91/at91sam9261_matrix.h +36 -41
86 lines not on this page · raw message
board/atmel/at91sam9261ek/at91sam9261ek.c +72 -64
213 lines not on this page · raw message
board/atmel/at91sam9261ek/config.mk deleted +0 -1
@@ -1 +0,0 @@ -CONFIG_SYS_TEXT_BASE = 0x23f00000
board/atmel/at91sam9261ek/led.c +5 -2
@@ -26,12 +26,15 @@#include <asm/arch/at91sam9261.h> #include <asm/arch/at91_pmc.h> #include <asm/arch/gpio.h> -#include <asm/arch/io.h> +#include <asm/arch/at91_pio.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 <<AT91SAM9261_ID_PIOA ); +writel (ATMEL_ID_PIOA , &pmc->pcer);at91_set_gpio_output (CONFIG_RED_LED ,1 );at91_set_gpio_output (CONFIG_GREEN_LED ,1 );
boards.cfg +6 -0
@@ -74,6 +74,12 @@ omap1510inn arm arm925t - ti aspenite arm arm926ejs - Marvell armada100 afeb9260 arm arm926ejs - - at91 at91cap9adk arm arm926ejs - atmel at91 +at91sam9261ek_nandflash arm arm926ejs at91sam9261ek atmel at91 at91sam9261ek:AT91SAM9261,SYS_USE_NANDFLASH +at91sam9261ek_dataflash_cs0 arm arm926ejs at91sam9261ek atmel at91 at91sam9261ek:AT91SAM9261,SYS_USE_DATAFLASH_CS0 +at91sam9261ek_dataflash_cs3 arm arm926ejs at91sam9261ek atmel at91 at91sam9261ek:AT91SAM9261,SYS_USE_DATAFLASH_CS3 +at91sam9g10ek_nandflash arm arm926ejs at91sam9261ek atmel at91 at91sam9261ek:AT91SAM9G10,SYS_USE_NANDFLASH +at91sam9g10ek_dataflash_cs0 arm arm926ejs at91sam9261ek atmel at91 at91sam9261ek:AT91SAM9G10,SYS_USE_DATAFLASH_CS0 +at91sam9g10ek_dataflash_cs3 arm arm926ejs at91sam9261ek atmel at91 at91sam9261ek:AT91SAM9G10,SYS_USE_DATAFLASH_CS3 snapper9260 arm arm926ejs - bluewater at91 snapper9260:AT91SAM9260 snapper9g20 arm arm926ejs snapper9260 bluewater at91 snapper9260:AT91SAM9G20 cpu9260 arm arm926ejs cpu9260 eukrea at91 cpu9260:CPU9260
include/configs/at91sam9261ek.h +45 -36
161 lines not on this page · raw message
Signature · 1 line
1.7.3.3
PATCH 1/1 Makes AT91SAM9261-EK build correctly against the mainline HEAD
Dear Hong Xu,
Quoted 17 lines
Rework for AT91SAM9261-EK, makes it build again.
Based on the work for AT91SAM9260-EK.Signed-off-by voice<[email protected]>Signed-off-by Hong Xu<[email protected]>--- Makefile | 23 ---- arch/arm/cpu/arm926ejs/at91/at91sam9261_devices.c | 45 +++---- arch/arm/include/asm/arch-at91/at91_spi.h | 2 +- arch/arm/include/asm/arch-at91/at91sam9261.h | 2 +- .../arm/include/asm/arch-at91/at91sam9261_matrix.h | 77 +++++------ board/atmel/at91sam9261ek/at91sam9261ek.c | 136 ++++++++++--------- board/atmel/at91sam9261ek/config.mk | 1 - board/atmel/at91sam9261ek/led.c | 7 +- boards.cfg | 6 + include/configs/at91sam9261ek.h | 81 +++++++----- 10 files changed, 184 insertions(+), 196 deletions(-)
Quoted 1 line
delete mode 100644
board/atmel/at91sam9261ek/config.mk
Could you please make separate patches for the parts that fix the SoC itself, and for what fixes the board?
I by now have several similar SoC fixes gotten as patches, I have to somehow make the best of them.... I might have to pick parts from each of them.
Best Regards,
Reinhard
PATCH 1/1 Makes AT91SAM9261-EK build correctly against the mainline HEAD
In reply to Hong XuDear Hong Xu,
and please rebase against the u-boot-atmel/master, there are already a few patches on it that yours might be relying on.
For the time being, we should at first fix the SoC files, and later when that all is on top of tree, fix the boards.
Otherwise we'll get a lot of mess and non-applying patches.
Reinhard