Skip to contentSkip to conversation

AT91 rework: fix build errors for at91sam(9261/9g10/9263)ek

PATCH New Romain Izard 1 participant 3 messages Jun 10, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover AT91 rework: fix build errors for at91sam(9261/9g10/9263)ek

This patchset makes it possible to build u-boot for at91sam9261ek and at91sam9263ek evaluation kits. It applies on top of u-boot-atmel. It is directly inspired of Reinhard Meyer's patch for at91sam9260ek.

It has not been tested on a live device, yet. Moreover, the NOR flash support for the at91sam9263ek compiles but does not link due to the CFI timer issue, so it is not mentioned in the boards.cfg file pending the issue's resolution.

Romain Izard (2):
at91sam9263ek: fix build errors
at91sam9261ek: fix build errors

 MAKEALL                                           |    3 -
 Makefile                                          |   42 ----
 arch/arm/cpu/arm926ejs/at91/at91sam9261_devices.c |   32 ++--
 arch/arm/include/asm/arch-at91/at91_matrix.h      |   15 +-
 arch/arm/include/asm/arch-at91/at91sam9261.h      |    1 +
 arch/arm/include/asm/arch-at91/at91sam9263.h      |   19 ++
 arch/arm/include/asm/arch-at91/at91sam9_sdramc.h  |    2 +-
 board/atmel/at91sam9261ek/at91sam9261ek.c         |  211 +++++++++++---------
 board/atmel/at91sam9261ek/config.mk               |    1 -
 board/atmel/at91sam9261ek/led.c                   |   21 +--
 board/atmel/at91sam9263ek/at91sam9263ek.c         |   62 ++++---
 board/atmel/at91sam9263ek/config.mk               |    1 -
 board/atmel/at91sam9263ek/led.c                   |   13 +-
 boards.cfg                                        |    8 +
 include/configs/at91sam9261ek.h                   |  101 ++++++----
 include/configs/at91sam9263ek.h                   |  100 ++++++----
 16 files changed, 339 insertions(+), 293 deletions(-)
 delete mode 100644 board/atmel/at91sam9261ek/config.mk
 delete mode 100644 board/atmel/at91sam9263ek/config.mk
#1 lore raw

PATCH 1/2 at91sam9263ek: fix build errors

The targets using dataflash and nandflash as storage are available.

---
 MAKEALL                                          |    1 -
 Makefile                                         |   19 ----
 arch/arm/include/asm/arch-at91/at91sam9263.h     |   19 ++++
 arch/arm/include/asm/arch-at91/at91sam9_sdramc.h |    2 +-
 board/atmel/at91sam9263ek/at91sam9263ek.c        |   62 ++++++++------
 board/atmel/at91sam9263ek/config.mk              |    1 -
 board/atmel/at91sam9263ek/led.c                  |   13 +--
 boards.cfg                                       |    2 +
 include/configs/at91sam9263ek.h                  |  100 +++++++++++++---------
 9 files changed, 119 insertions(+), 100 deletions(-)
 delete mode 100644 board/atmel/at91sam9263ek/config.mk
MAKEALL +0 -1
index 50c0080..3aac7ca 100755
@@ -449,7 +449,6 @@ LIST_at91="$(boards_by_soc at91)\
 	$(boards_by_soc at91rm9200)\
 	at91sam9260ek		\
 	at91sam9261ek		\
-	at91sam9263ek		\
 	at91sam9g10ek		\
 	at91sam9g20ek		\
 	at91sam9m10g45ek	\
Makefile +0 -19
index 1619c47..c62601a 100644
@@ -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 \
arch/arm/include/asm/arch-at91/at91sam9263.h +19 -0
index 2a1d6ee..e48c9ff 100644
@@ -124,11 +124,30 @@
 #define ATMEL_BASE_DMAC		0x00800000	/* DMA Controller */
 #define ATMEL_BASE_UHP		0x00a00000	/* USB Host controller */
 
+#define ATMEL_BASE_EBI0_CS0	0x10000000
+#define ATMEL_BASE_EBI0_CS1	0x20000000
+#define ATMEL_BASE_EBI0_CS2	0x30000000
+#define ATMEL_BASE_EBI0_CS3	0x40000000
+#define ATMEL_BASE_EBI0_CS4	0x50000000
+#define ATMEL_BASE_EBI0_CS5	0x60000000
+
+#define ATMEL_BASE_EBI1_CS0	0x70000000
+#define ATMEL_BASE_EBI1_CS1	0x80000000
+#define ATMEL_BASE_EBI1_CS2	0x90000000
+
+#define ATMEL_BASE_CS0		ATMEL_BASE_EBI0_CS0
+#define ATMEL_BASE_CS1		ATMEL_BASE_EBI0_CS1
+#define ATMEL_BASE_CS2		ATMEL_BASE_EBI0_CS2
+#define ATMEL_BASE_CS3		ATMEL_BASE_EBI0_CS3
+#define ATMEL_BASE_CS4		ATMEL_BASE_EBI0_CS4
+#define ATMEL_BASE_CS5		ATMEL_BASE_EBI0_CS5
+
 /*
  * 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/at91sam9_sdramc.h +1 -1
index 54159a7..2d4c49e 100644
@@ -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
board/atmel/at91sam9263ek/at91sam9263ek.c +34 -28

145 lines not on this page · raw message

board/atmel/at91sam9263ek/config.mk deleted +0 -1
deleted file mode 100644
index e554a45..0000000
@@ -1 +0,0 @@
-CONFIG_SYS_TEXT_BASE = 0x23f00000
board/atmel/at91sam9263ek/led.c +3 -10
index fa1f05b..99f0046 100644
@@ -23,20 +23,13 @@
  */
 
 #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_pio.h>
 
 void coloured_LED_init(void)
 {
-	/* Enable clock */
-	at91_pmc_t	*pmc	= (at91_pmc_t *) AT91_PMC_BASE;
-
-	writel(1 << AT91SAM9263_ID_PIOB | 1 << AT91SAM9263_ID_PIOCDE,
-		&pmc->pcer);
-
+	/* Clock enabled in board_early_init_f() */
 	at91_set_pio_output(CONFIG_RED_LED, 1);
 	at91_set_pio_output(CONFIG_GREEN_LED, 1);
 	at91_set_pio_output(CONFIG_YELLOW_LED, 1);
boards.cfg +2 -0
index ac20c81..5e2acdb 100644
@@ -83,6 +83,8 @@ 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_dataflash      arm         arm926ejs   at91sam9263ek       atmel          at91        at91sam9263ek:SYS_USE_DATAFLASH
+at91sam9263ek_nandflash      arm         arm926ejs   at91sam9263ek       atmel          at91        at91sam9263ek:SYS_USE_NANDFLASH
 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 +60 -40

163 lines not on this page · raw message

Signature · 1 line
1.7.0.4
#2 lore raw

PATCH 2/2 at91sam9261ek: fix build errors

In reply to Romain Izard

The targets using dataflash and nandflash as storage, for both at91sam9261 and at91sam9g10 SoC are available.

---
 MAKEALL                                           |    2 -
 Makefile                                          |   23 ---
 arch/arm/cpu/arm926ejs/at91/at91sam9261_devices.c |   32 ++--
 arch/arm/include/asm/arch-at91/at91_matrix.h      |   15 +-
 arch/arm/include/asm/arch-at91/at91sam9261.h      |    1 +
 board/atmel/at91sam9261ek/at91sam9261ek.c         |  211 +++++++++++---------
 board/atmel/at91sam9261ek/config.mk               |    1 -
 board/atmel/at91sam9261ek/led.c                   |   21 +--
 boards.cfg                                        |    6 +
 include/configs/at91sam9261ek.h                   |  101 ++++++----
 10 files changed, 220 insertions(+), 193 deletions(-)
 delete mode 100644 board/atmel/at91sam9261ek/config.mk
MAKEALL +0 -2
index 3aac7ca..6e97054 100755
@@ -448,8 +448,6 @@ LIST_ARMV7="		\
 LIST_at91="$(boards_by_soc at91)\
 	$(boards_by_soc at91rm9200)\
 	at91sam9260ek		\
-	at91sam9261ek		\
-	at91sam9g10ek		\
 	at91sam9g20ek		\
 	at91sam9m10g45ek	\
 	at91sam9rlek		\
Makefile +0 -23
index c62601a..b0edafb 100644
@@ -766,29 +766,6 @@ M5485HFE_config :	unconfig
 ## ARM926EJ-S Systems
 #########################################################################
 
-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
-
 at91sam9rlek_nandflash_config \
 at91sam9rlek_dataflash_config \
 at91sam9rlek_dataflash_cs0_config \
arch/arm/cpu/arm926ejs/at91/at91sam9261_devices.c +17 -15
index b4353ef..0d087b8 100644
@@ -23,45 +23,47 @@
  */
 
 #include <common.h>
+#include <asm/io.h>
+#include <asm/arch/at91sam9261.h>
 #include <asm/arch/at91_common.h>
 #include <asm/arch/at91_pmc.h>
+#include <asm/arch/at91_pio.h>
 #include <asm/arch/gpio.h>
-#include <asm/arch/io.h>
 
 void at91_serial0_hw_init(void)
 {
-	at91_pmc_t	*pmc	= (at91_pmc_t *) AT91_PMC_BASE;
+	at91_pmc_t	*pmc	= (at91_pmc_t *) ATMEL_BASE_PMC;
 
 	at91_set_a_periph(AT91_PIO_PORTC, 8, 1);		/* TXD0 */
 	at91_set_a_periph(AT91_PIO_PORTC, 9, 0);		/* RXD0 */
-	writel(1 << AT91SAM9261_ID_US0, &pmc->pcer);
+	writel(1 << ATMEL_ID_USART0, &pmc->pcer);
 }
 
 void at91_serial1_hw_init(void)
 {
-	at91_pmc_t	*pmc	= (at91_pmc_t *) AT91_PMC_BASE;
+	at91_pmc_t	*pmc	= (at91_pmc_t *) ATMEL_BASE_PMC;
 
 	at91_set_a_periph(AT91_PIO_PORTC, 12, 1);		/* TXD1 */
 	at91_set_a_periph(AT91_PIO_PORTC, 13, 0);		/* RXD1 */
-	writel(1 << AT91SAM9261_ID_US1, &pmc->pcer);
+	writel(1 << ATMEL_ID_USART1, &pmc->pcer);
 }
 
 void at91_serial2_hw_init(void)
 {
-	at91_pmc_t	*pmc	= (at91_pmc_t *) AT91_PMC_BASE;
+	at91_pmc_t	*pmc	= (at91_pmc_t *) ATMEL_BASE_PMC;
 
 	at91_set_a_periph(AT91_PIO_PORTC, 14, 1);		/* TXD2 */
 	at91_set_a_periph(AT91_PIO_PORTC, 15, 0);		/* RXD2 */
-	writel(1 << AT91SAM9261_ID_US2, &pmc->pcer);
+	writel(1 << ATMEL_ID_USART2, &pmc->pcer);
 }
 
-void at91_serial3_hw_init(void)
+void at91_seriald_hw_init(void)
 {
-	at91_pmc_t	*pmc	= (at91_pmc_t *) AT91_PMC_BASE;
+	at91_pmc_t	*pmc	= (at91_pmc_t *) ATMEL_BASE_PMC;
 
 	at91_set_a_periph(AT91_PIO_PORTA, 9, 0);		/* DRXD */
 	at91_set_a_periph(AT91_PIO_PORTA, 10, 1);		/* DTXD */
-	writel(1 << AT91_ID_SYS, &pmc->pcer);
+	writel(1 << ATMEL_ID_SYS, &pmc->pcer);
 }
 
 void at91_serial_hw_init(void)
@@ -79,21 +81,21 @@ void at91_serial_hw_init(void)
 #endif
 
 #ifdef CONFIG_USART3	/* DBGU */
-	at91_serial3_hw_init();
+	at91_seriald_hw_init();
 #endif
 }
 
 #ifdef CONFIG_HAS_DATAFLASH
 void at91_spi0_hw_init(unsigned long cs_mask)
 {
-	at91_pmc_t	*pmc	= (at91_pmc_t *) AT91_PMC_BASE;
+	at91_pmc_t	*pmc	= (at91_pmc_t *) ATMEL_BASE_PMC;
 
 	at91_set_a_periph(AT91_PIO_PORTA, 0, 0);	/* SPI0_MISO */
 	at91_set_a_periph(AT91_PIO_PORTA, 1, 0);	/* SPI0_MOSI */
 	at91_set_a_periph(AT91_PIO_PORTA, 2, 0);	/* SPI0_SPCK */
 
 	/* Enable clock */
-	writel(1 << AT91SAM9261_ID_SPI0, &pmc->pcer);
+	writel(1 << ATMEL_ID_SPI0, &pmc->pcer);
 
 	if (cs_mask & (1 << 0)) {
 		at91_set_a_periph(AT91_PIO_PORTA, 3, 1);
@@ -123,14 +125,14 @@ void at91_spi0_hw_init(unsigned long cs_mask)
 
 void at91_spi1_hw_init(unsigned long cs_mask)
 {
-	at91_pmc_t	*pmc	= (at91_pmc_t *) AT91_PMC_BASE;
+	at91_pmc_t	*pmc	= (at91_pmc_t *) ATMEL_BASE_PMC;
 
 	at91_set_a_periph(AT91_PIO_PORTB, 30, 0);	/* SPI1_MISO */
 	at91_set_a_periph(AT91_PIO_PORTB, 31, 0);	/* SPI1_MOSI */
 	at91_set_a_periph(AT91_PIO_PORTB, 29, 0);	/* SPI1_SPCK */
 
 	/* Enable clock */
-	writel(1 << AT91SAM9261_ID_SPI1, &pmc->pcer);
+	writel(1 << ATMEL_ID_SPI1, &pmc->pcer);
 
 	if (cs_mask & (1 << 0)) {
 		at91_set_a_periph(AT91_PIO_PORTB, 28, 1);
arch/arm/include/asm/arch-at91/at91_matrix.h +8 -7
index a9ba9e9..4d566e3 100644
@@ -27,7 +27,7 @@
 
 #if defined(CONFIG_AT91SAM9260) || defined(CONFIG_AT91SAM9G20)
 #define AT91_ASM_MATRIX_CSA0	(ATMEL_BASE_MATRIX + 0x11C)
-#elif defined(CONFIG_AT91SAM9261)
+#elif defined(CONFIG_AT91SAM9261) || defined(CONFIG_AT91SAM9G10)
 #define AT91_ASM_MATRIX_CSA0	(ATMEL_BASE_MATRIX + 0x30)
 #elif defined(CONFIG_AT91SAM9263)
 #define AT91_ASM_MATRIX_CSA0	(ATMEL_BASE_MATRIX + 0x120)
@@ -43,7 +43,7 @@
 #if defined(CONFIG_AT91SAM9260) || defined(CONFIG_AT91SAM9G20)
 #define AT91_MATRIX_MASTERS	6
 #define AT91_MATRIX_SLAVES	5
-#elif defined(CONFIG_AT91SAM9261)
+#elif defined(CONFIG_AT91SAM9261) || defined(CONFIG_AT91SAM9G10)
 #define AT91_MATRIX_MASTERS	1
 #define AT91_MATRIX_SLAVES	5
 #elif defined(CONFIG_AT91SAM9263)
@@ -63,7 +63,7 @@ typedef struct at91_priority {
 
 typedef struct at91_matrix {
 	u32		mcfg[AT91_MATRIX_MASTERS];
-#if defined(CONFIG_AT91SAM9261)
+#if defined(CONFIG_AT91SAM9261) ||  defined(CONFIG_AT91SAM9G10)
 	u32		scfg[AT91_MATRIX_SLAVES];
 	u32		res61_1[3];
 	u32		tcr;
@@ -113,7 +113,7 @@ typedef struct at91_matrix {
 
 #define AT91_MATRIX_CSA_EBI1_CS2A	0x00000008
 
-#if defined CONFIG_AT91SAM9261
+#if defined(CONFIG_AT91SAM9261) ||  defined(CONFIG_AT91SAM9G10)
 /* Remap Command for AHB Master 0 (ARM926EJ-S Instruction Master) */
 #define	AT91_MATRIX_MCFG_RCB0	(1 << 0)
 /* Remap Command for AHB Master 1 (ARM926EJ-S Data Master) */
@@ -143,7 +143,8 @@ typedef struct at91_matrix {
 /* Fixed Index of Default Master */
 #if defined(CONFIG_AT91SAM9G45) || defined(CONFIG_AT91SAM9263)
 #define	AT91_MATRIX_SCFG_FIXED_DEFMSTR(x)	((x & 0xf) << 18)
-#elif defined(CONFIG_AT91SAM9261) || defined(CONFIG_AT91SAM9260)
+#elif defined(CONFIG_AT91SAM9261) || defined(CONFIG_AT91SAM9G10) || \
+	defined(CONFIG_AT91SAM9260)
 #define	AT91_MATRIX_SCFG_FIXED_DEFMSTR(x)	((x & 7) << 18)
 #endif
 
@@ -151,7 +152,7 @@ typedef struct at91_matrix {
 #if defined(CONFIG_AT91SAM9G45)
 #define	AT91_MATRIX_SCFG_SLOT_CYCLE(x)	((x & 0x1ff) << 0)
 #elif defined(CONFIG_AT91SAM9260) || defined(CONFIG_AT91SAM9261) || \
-	defined(CONFIG_AT91SAM9263)
+	defined(CONFIG_AT91SAM9G10) || defined(CONFIG_AT91SAM9263)
 #define	AT91_MATRIX_SCFG_SLOT_CYCLE(x)	((x & 0xff) << 0)
 #endif
 
@@ -235,7 +236,7 @@ typedef struct at91_matrix {
 #endif
 
 /* USB Pad Pull-Up Control Register */
-#if defined(CONFIG_AT91SAM9261)
+#if defined(CONFIG_AT91SAM9261) || defined(CONFIG_AT91SAM9G10)
 #define	AT91_MATRIX_USBPUCR_PUON	0x40000000
 #endif
 
arch/arm/include/asm/arch-at91/at91sam9261.h +1 -0
index c85fd29..4934590 100644
@@ -126,6 +126,7 @@
  */
 #define ATMEL_PIO_PORTS		3		/* theese SoCs have 3 PIO */
 #define ATMEL_BASE_PIO		ATMEL_BASE_PIOA
+#define ATMEL_PMC_UHP		AT91SAM926x_PMC_UHP
 
 /*
  * SoC specific defines
board/atmel/at91sam9261ek/at91sam9261ek.c +116 -95

305 lines not on this page · raw message

board/atmel/at91sam9261ek/config.mk deleted +0 -1
deleted file mode 100644
index e554a45..0000000
@@ -1 +0,0 @@
-CONFIG_SYS_TEXT_BASE = 0x23f00000
board/atmel/at91sam9261ek/led.c +9 -12
index 5d1c5f2..99f0046 100644
@@ -23,21 +23,18 @@
  */
 
 #include <common.h>
-#include <asm/arch/at91sam9261.h>
-#include <asm/arch/at91_pmc.h>
+#include <asm/io.h>
 #include <asm/arch/gpio.h>
-#include <asm/arch/io.h>
+#include <asm/arch/at91_pio.h>
 
 void coloured_LED_init(void)
 {
-	/* Enable clock */
-	at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9261_ID_PIOA);
+	/* Clock enabled in board_early_init_f() */
+	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_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);
 }
boards.cfg +6 -0
index 5e2acdb..349fed6 100644
@@ -83,6 +83,12 @@ 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
+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
+at91sam9261ek_nandflash      arm         arm926ejs   at91sam9261ek       atmel          at91        at91sam9261ek:AT91SAM9261,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
+at91sam9g10ek_nandflash      arm         arm926ejs   at91sam9261ek       atmel          at91        at91sam9261ek:AT91SAM9G10,SYS_USE_NANDFLASH
 at91sam9263ek_dataflash      arm         arm926ejs   at91sam9263ek       atmel          at91        at91sam9263ek:SYS_USE_DATAFLASH
 at91sam9263ek_nandflash      arm         arm926ejs   at91sam9263ek       atmel          at91        at91sam9263ek:SYS_USE_NANDFLASH
 snapper9260                  arm         arm926ejs   -                   bluewater      at91        snapper9260:AT91SAM9260
include/configs/at91sam9261ek.h +63 -38

159 lines not on this page · raw message

Signature · 1 line
1.7.0.4