AT91: Makes AT91SAM9263 SoC build correctly against u-boot-atmel/master
PATCH v2 1/2 AT91: Makes AT91SAM9263 SoC build correctly against u-boot-atmel/master
Rework for AT91SAM9263 SoC, makes it build again.
Based on the work for AT91SAM9260-EK.
--- arch/arm/cpu/arm926ejs/at91/lowlevel_init.S | 2 +- arch/arm/cpu/arm926ejs/at91/timer.c | 13 ++ arch/arm/include/asm/arch-at91/at91_spi.h | 2 +- arch/arm/include/asm/arch-at91/at91sam9263.h | 13 ++ .../arm/include/asm/arch-at91/at91sam9263_matrix.h | 146 ++++++-------------- arch/arm/include/asm/arch-at91/at91sam9_sdramc.h | 2 +- 6 files changed, 71 insertions(+), 107 deletions(-)
arch/arm/cpu/arm926ejs/at91/lowlevel_init.S +1 -1
@@ -35,7 +35,7 @@ #include <asm/arch/at91sam9_sdramc.h> #include <asm/arch/at91sam9_smc.h> #include <asm/arch/at91_rstc.h> -#ifdef CONFIG_AT91_LEGACY +#ifdef CONFIG_ATMEL_LEGACY #include <asm/arch/at91sam9_matrix.h> #endif #ifndef CONFIG_SYS_MATRIX_EBICSA_VAL
arch/arm/cpu/arm926ejs/at91/timer.c +13 -0
@@ -134,3 +134,16 @@ ulong get_tbclk(void) {return gd->timer_rate_hz; } + +/* +* Reset the timer. +*/ +void reset_timer (void ) +{ +/* TODO: write this code. */ +} + +void reset_timer_masked (void ) +{ +/* TODO: write this code. */ +}
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/at91sam9263.h +13 -0
@@ -125,10 +125,23 @@#define ATMEL_BASE_UHP 0x00a00000/* USB Host controller */ /* +* External memory +*/ +#define ATMEL_BASE_CS0 0x10000000/* typically NOR */ +#define ATMEL_BASE_CS1 0x20000000/* SDRAM */ +#define ATMEL_BASE_CS2 0x30000000 +#define ATMEL_BASE_CS3 0x40000000/* typically NAND */ +#define ATMEL_BASE_CS4 0x50000000 +#define ATMEL_BASE_CS5 0x60000000 +#define ATMEL_BASE_CS6 0x70000000 +#define ATMEL_BASE_CS7 0x80000000 + +/* * Other misc defines */ #define ATMEL_PIO_PORTS 5/* this SoCs has 5 PIO */ #define ATMEL_BASE_PIO ATMEL_BASE_PIOA +#define ATMEL_PMC_UHP AT91SAM926x_PMC_UHP/* * Cpu Name
arch/arm/include/asm/arch-at91/at91sam9263_matrix.h +42 -104
157 lines not on this page · raw message
arch/arm/include/asm/arch-at91/at91sam9_sdramc.h +1 -1
@@ -20,7 +20,7 @@#ifdef __ASSEMBLY__#ifndef ATMEL_BASE_SDRAMC -#define ATMEL_BASE_SDRAMC AT91_SDRAMC0_BASE +#define ATMEL_BASE_SDRAMC ATMEL_BASE_SDRAMC0#endif #define AT91_ASM_SDRAMC_MR ATMEL_BASE_SDRAMC
Signature · 1 line
1.7.3.3
PATCH v2 2/2 AT91: Makes AT91SAM9263-EK build correctly against u-boot-atmel/master
Rework for AT91SAM9263-EK, makes it build again.
Based on the work for AT91SAM9260-EK.
--- Makefile | 19 ------- board/atmel/at91sam9263ek/at91sam9263ek.c | 56 ++++++++++++------- board/atmel/at91sam9263ek/config.mk | 1 - board/atmel/at91sam9263ek/led.c | 23 ++++---- boards.cfg | 5 ++ include/configs/at91sam9263ek.h | 83 ++++++++++++++++------------ 6 files changed, 98 insertions(+), 89 deletions(-) delete mode 100644 board/atmel/at91sam9263ek/config.mk
Makefile +0 -19
@@ -789,25 +789,6 @@ at91sam9g10ek_config : unconfig fi; @$(MKCONFIG) -n $@ -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91 -at91sam9263ek_norflash_config \ -at91sam9263ek_norflash_boot_config \ -at91sam9263ek_nandflash_config \ -at91sam9263ek_dataflash_config \ -at91sam9263ek_dataflash_cs0_config \ -at91sam9263ek_config : unconfig - @mkdir -p $(obj)include - @if [ "$(findstring _nandflash,$@)" ] ; then \ - echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ - elif [ "$(findstring norflash,$@)" ] ; then \ - echo "#define CONFIG_SYS_USE_NORFLASH 1" >>$(obj)include/config.h ; \ - else \ - echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \ - fi; - @if [ "$(findstring norflash_boot,$@)" ] ; then \ - echo "#define CONFIG_SYS_USE_BOOT_NORFLASH 1" >>$(obj)include/config.h ; \ - fi; - @$(MKCONFIG) -n $@ -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91 - at91sam9rlek_nandflash_config \ at91sam9rlek_dataflash_config \ at91sam9rlek_dataflash_cs0_config \
board/atmel/at91sam9263ek/at91sam9263ek.c +35 -21
135 lines not on this page · raw message
board/atmel/at91sam9263ek/config.mk deleted +0 -1
@@ -1 +0,0 @@ -CONFIG_SYS_TEXT_BASE = 0x23f00000
board/atmel/at91sam9263ek/led.c +11 -12
@@ -23,25 +23,24 @@*/ #include <common.h> -#include <asm/arch/hardware.h> -#include <asm/arch/at91_pmc.h> -#include <asm/arch/at91_pio.h> +#include <asm/io.h> #include <asm/arch/gpio.h> -#include <asm/arch/io.h> +#include <asm/arch/at91_pmc.h> +#include <asm/arch/at91sam9263.h> void coloured_LED_init (void ) {/* Enable clock */ -at91_pmc_t *pmc = (at91_pmc_t *)AT91_PMC_BASE ; +at91_pmc_t *pmc = (at91_pmc_t *)ATMEL_BASE_PMC ; -writel (1 <<AT91SAM9263_ID_PIOB |1 <<AT91SAM9263_ID_PIOCDE , +writel (1 <<ATMEL_ID_PIOB |1 <<ATMEL_ID_PIOCDE , &pmc->pcer); -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_output (CONFIG_RED_LED ,1 ); +at91_set_gpio_output (CONFIG_GREEN_LED ,1 ); +at91_set_gpio_output (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 ); +at91_set_gpio_value (CONFIG_RED_LED ,0 ); +at91_set_gpio_value (CONFIG_GREEN_LED ,1 ); +at91_set_gpio_value (CONFIG_YELLOW_LED ,1 ); }
boards.cfg +5 -0
@@ -83,6 +83,11 @@ at91sam9g20ek_dataflash_cs1 arm arm926ejs at91sam9260ek atmel at91sam9xeek_nandflash arm arm926ejs at91sam9260ek atmel at91 at91sam9260ek:AT91SAM9XE,SYS_USE_NANDFLASH at91sam9xeek_dataflash_cs0 arm arm926ejs at91sam9260ek atmel at91 at91sam9260ek:AT91SAM9XE,SYS_USE_DATAFLASH_CS0 at91sam9xeek_dataflash_cs1 arm arm926ejs at91sam9260ek atmel at91 at91sam9260ek:AT91SAM9XE,SYS_USE_DATAFLASH_CS1 +at91sam9263ek_nandflash arm arm926ejs at91sam9263ek atmel at91 at91sam9263ek:AT91SAM9263,SYS_USE_NANDFLASH +at91sam9263ek_dataflash_cs0 arm arm926ejs at91sam9263ek atmel at91 at91sam9263ek:AT91SAM9263,SYS_USE_DATAFLASH +at91sam9263ek_dataflash arm arm926ejs at91sam9263ek atmel at91 at91sam9263ek:AT91SAM9263,SYS_USE_DATAFLASH +at91sam9263ek_norflash arm arm926ejs at91sam9263ek atmel at91 at91sam9263ek:AT91SAM9263,SYS_USE_NORFLASH +at91sam9263ek_norflash_boot arm arm926ejs at91sam9263ek atmel at91 at91sam9263ek:AT91SAM9263,SYS_USE_BOOT_NORFLASH 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/at91sam9263ek.h +47 -36
161 lines not on this page · raw message
Signature · 1 line
1.7.3.3
PATCH v2 2/2 AT91: Makes AT91SAM9263-EK build correctly against u-boot-atmel/master
Dear Hong Xu,
Quoted 4 lines
Rework for AT91SAM9263-EK, makes it build again.
Based on the work for AT91SAM9260-EK.Signed-off-by Hong Xu <[email protected]>
Quoted 9 lines
--- Makefile | 19 ------- board/atmel/at91sam9263ek/at91sam9263ek.c | 56 ++++++++++++------- board/atmel/at91sam9263ek/config.mk | 1 - board/atmel/at91sam9263ek/led.c | 23 ++++---- boards.cfg | 5 ++ include/configs/at91sam9263ek.h | 83 ++++++++++++++++------------ 6 files changed, 98 insertions(+), 89 deletions(-) delete mode 100644 board/atmel/at91sam9263ek/config.mk
I can try to apply this, but perhaps it is better if you resubmit this after the 9263 SoC fix patch?
Thanks, Reinhard
PATCH v2 2/2 AT91: Makes AT91SAM9263-EK build correctly against u-boot-atmel/master
Dear Hong Xu,
Quoted 14 lines
Quoted 4 lines
Rework for AT91SAM9263-EK, makes it build again.
Based on the work for AT91SAM9260-EK.Signed-off-by Hong Xu <[email protected]>Quoted 9 lines
--- Makefile | 19 ------- board/atmel/at91sam9263ek/at91sam9263ek.c | 56 ++++++++++++------- board/atmel/at91sam9263ek/config.mk | 1 - board/atmel/at91sam9263ek/led.c | 23 ++++---- boards.cfg | 5 ++ include/configs/at91sam9263ek.h | 83 ++++++++++++++++------------ 6 files changed, 98 insertions(+), 89 deletions(-) delete mode 100644 board/atmel/at91sam9263ek/config.mk
Quoted 2 lines
I can try to apply this, but perhaps it is better if you resubmit this after the 9263 SoC fix patch?
Disregard, it still applied quite well.
Now in u-boot-atmel/master.
Thanks,
Reinhard
PATCH v2 1/2 AT91: Makes AT91SAM9263 SoC build correctly against u-boot-atmel/master
In reply to Hong XuDear Hong Xu,
Quoted 24 lines
Rework for AT91SAM9263 SoC, makes it build again.
Based on the work for AT91SAM9260-EK.Signed-off-by Hong Xu <[email protected]>--- arch/arm/cpu/arm926ejs/at91/lowlevel_init.S | 2 +- arch/arm/cpu/arm926ejs/at91/timer.c | 13 ++ arch/arm/include/asm/arch-at91/at91_spi.h | 2 +- arch/arm/include/asm/arch-at91/at91sam9263.h | 13 ++ .../arm/include/asm/arch-at91/at91sam9263_matrix.h | 146 ++++++-------------- arch/arm/include/asm/arch-at91/at91sam9_sdramc.h | 2 +- 6 files changed, 71 insertions(+), 107 deletions(-)arch/arm/cpu/arm926ejs/at91/timer.c +3
-0@@ -134,3 +134,16 @@ ulong get_tbclk(void) {return gd->timer_rate_hz; } + +/* +* Reset the timer.
arch/arm/cpu/arm926ejs/at91/timer.c ulong get_tbclk(void) · line 149
Quoted 10 lines
arch/arm/cpu/arm926ejs/at91/timer.c +10
-0+*/ +void reset_timer (void ) +{ +/* TODO: write this code. */ +} + +void reset_timer_masked (void ) +{ +/* TODO: write this code. */ +}
NAK. Those functions were intentionally removed from at91/timer.c quite a while ago.
If some other code requires them, it must be fixed there. See also the discussion of the "new timer API" made recently.
Applied (without at91/timer.c changes) to u-boot-atmel/master.
Best Regards,
Reinhard
PATCH v2 1/2 AT91: Makes AT91SAM9263 SoC build correctly against u-boot-atmel/master
Hi Reinhard,
Quoted 43 lines · Reinhard Meyer
Dear Hong Xu,
Quoted 10 lines
Rework for AT91SAM9263 SoC, makes it build again. Based on the work for AT91SAM9260-EK.
Signed-off-by Hong Xu <[email protected]>---
arch/arm/cpu/arm926ejs/at91/lowlevel_init.S| 2 +-arch/arm/cpu/arm926ejs/at91/timer.c| 13 ++arch/arm/include/asm/arch-at91/at91_spi.h| 2 +-arch/arm/include/asm/arch-at91/at91sam9263.h| 13 ++.../arm/include/asm/arch-at91/at91sam9263_matrix.h| 146++++++--------------
Review
Quoted 4 lines
arch/arm/include/asm/arch-at91/at91sam9_sdramc.h| 2 +-6 files changed, 71 insertions(+), 107 deletions(-)(quoted diff) +0
-0
b/arch/arm/cpu/arm926ejs/at91/timer.cQuoted 10 lines
index a087687..89a01ea 100644
arch/arm/cpu/arm926ejs/at91/timer.c +3
-0@@ -134,3 +134,16 @@ ulong get_tbclk(void) {return gd->timer_rate_hz; } + +/* +* Reset the timer. arch/arm/cpu/arm926ejs/at91/timer.c ulong get_tbclk(void) · line 149
Quoted 10 lines
arch/arm/cpu/arm926ejs/at91/timer.c +10
-0+*/ +void reset_timer (void ) +{ +/* TODO: write this code. */ +} + +void reset_timer_masked (void ) +{ +/* TODO: write this code. */ +}NAK. Those functions were intentionally removed from
at91/timer.cquite a while ago.
If some other code requires them, it must be fixed there. See also the discussion of the "new timer API" made recently.
Quoted 1 line
Applied (without
at91/timer.cchanges) to u-boot-atmel/master.
Thanks for merging the AT91SAM9263 SoC part. What about [PATCH 2/2] [V2]
AT91: Makes AT91SAM9263-EK build correctly against u-boot-atmel/master ?
BR,
Hong
Quoted 3 lines
Best Regards,
Reinhard
PATCH v2 1/2 AT91: Makes AT91SAM9263 SoC build correctly against u-boot-atmel/master
ping ...
Quoted 63 lines · Hong Xu
Hi Reinhard,
Quoted 43 lines · Reinhard Meyer
Dear Hong Xu,
Quoted 10 lines
Rework for AT91SAM9263 SoC, makes it build again. Based on the work for AT91SAM9260-EK.
Signed-off-by Hong Xu <[email protected]>---
arch/arm/cpu/arm926ejs/at91/lowlevel_init.S| 2 +-arch/arm/cpu/arm926ejs/at91/timer.c| 13 ++arch/arm/include/asm/arch-at91/at91_spi.h| 2 +-arch/arm/include/asm/arch-at91/at91sam9263.h| 13 ++.../arm/include/asm/arch-at91/at91sam9263_matrix.h| 146++++++--------------
Review
Quoted 4 lines
arch/arm/include/asm/arch-at91/at91sam9_sdramc.h| 2 +-6 files changed, 71 insertions(+), 107 deletions(-)(quoted diff) +0
-0
b/arch/arm/cpu/arm926ejs/at91/timer.cQuoted 10 lines
index a087687..89a01ea 100644
arch/arm/cpu/arm926ejs/at91/timer.c +3
-0@@ -134,3 +134,16 @@ ulong get_tbclk(void) {return gd->timer_rate_hz; } + +/* +* Reset the timer. arch/arm/cpu/arm926ejs/at91/timer.c ulong get_tbclk(void) · line 149
Quoted 10 lines
arch/arm/cpu/arm926ejs/at91/timer.c +10
-0+*/ +void reset_timer (void ) +{ +/* TODO: write this code. */ +} + +void reset_timer_masked (void ) +{ +/* TODO: write this code. */ +}NAK. Those functions were intentionally removed from
at91/timer.cquite a while ago.
If some other code requires them, it must be fixed there. See also the discussion of the "new timer API" made recently.Quoted 1 line
Applied (without
at91/timer.cchanges) to u-boot-atmel/master.Thanks for merging the AT91SAM9263 SoC part. What about [PATCH 2/2] [V2]
AT91: Makes AT91SAM9263-EK build correctly against u-boot-atmel/master ?BR,
HongQuoted 3 lines
Best Regards,
Reinhard_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
PATCH v2 1/2 AT91: Makes AT91SAM9263 SoC build correctly against u-boot-atmel/master
In reply to Hong XuDear Hong Xu,
Quoted 4 lines
Rework for AT91SAM9263 SoC, makes it build again.
Based on the work for AT91SAM9260-EK.Signed-off-by Hong Xu <[email protected]>
Quoted 8 lines
--- arch/arm/cpu/arm926ejs/at91/lowlevel_init.S | 2 +- arch/arm/cpu/arm926ejs/at91/timer.c | 13 ++ arch/arm/include/asm/arch-at91/at91_spi.h | 2 +- arch/arm/include/asm/arch-at91/at91sam9263.h | 13 ++ .../arm/include/asm/arch-at91/at91sam9263_matrix.h | 146 ++++++-------------- arch/arm/include/asm/arch-at91/at91sam9_sdramc.h | 2 +- 6 files changed, 71 insertions(+), 107 deletions(-)
Could you please rebase and reissue this patch based onto current master (without the timer.c changes)?
Thanks,
Reinhard
PATCH v2 1/2 AT91: Makes AT91SAM9263 SoC build correctly against u-boot-atmel/master
Dear Hong Xu,
Quoted 2 lines
Could you please rebase and reissue this patch based onto current master (without the
timer.cchanges)?
Disregard, it still applied quite well.
Now in u-boot-atmel/master.
Thanks,
Reinhard