Skip to contentSkip to conversation

Add support for Eukrea CPU9260 SBC

PATCH Superseded Eric Benard 3 participants 17 messages Jul 16, 2009 – Aug 9, 2009

Subsystems (3)

v2 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Add support for Eukrea CPU9260 SBC

CPUAT91 is built around Atmel's AT91SAM9260 and has up to 64MB of NOR flash, up to 128MB of SDRAM, up to 2GB of NAND and includes a 10/100 Ethernet PHY in RMII mode.

---
 MAINTAINERS                        |    4 +
 MAKEALL                            |    1 +
 Makefile                           |   13 ++
 board/eukrea/cpu9260/Makefile      |   59 +++++++
 board/eukrea/cpu9260/config.mk     |    1 +
 board/eukrea/cpu9260/cpu9260.c     |  211 ++++++++++++++++++++++
 board/eukrea/cpu9260/cpu9260_led.c |   46 +++++
 cpu/arm926ejs/at91/lowlevel_init.S |    2 +-
 include/configs/cpu9260.h          |  339 ++++++++++++++++++++++++++++++++++++
 9 files changed, 675 insertions(+), 1 deletions(-)
 create mode 100644 board/eukrea/cpu9260/Makefile
 create mode 100644 board/eukrea/cpu9260/config.mk
 create mode 100644 board/eukrea/cpu9260/cpu9260.c
 create mode 100644 board/eukrea/cpu9260/cpu9260_led.c
 create mode 100644 include/configs/cpu9260.h
MAINTAINERS +4 -0
index 575a7ec..b8d701a 100644
@@ -515,6 +515,10 @@ Dirk Behme <[email protected]>
 
 	omap3_beagle	ARM CORTEX-A8 (OMAP3530 SoC)
 
+Eric Benard <[email protected]>
+
+	cpu9260	ARM926EJS (AT91SAM9260 SoC)
+
 Rishi Bhattacharya <[email protected]>
 
 	omap5912osk	ARM926EJS
MAKEALL +1 -0
index 020ff73..bdc80fa 100755
@@ -592,6 +592,7 @@ LIST_at91="			\
 	at91sam9m10g45ek	\
 	at91sam9rlek		\
 	cmc_pu2			\
+	cpu9260			\
 	csb637			\
 	kb9202			\
 	meesc			\
Makefile +13 -0
index 090e645..7ae2bfe 100644
@@ -2813,6 +2813,19 @@ at91sam9rlek_config	:	unconfig
 	fi;
 	@$(MKCONFIG) -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
 
+cpu9260_64m_config \
+cpu9260_config	:	unconfig
+	@$(MKCONFIG) -a cpu9260 arm arm926ejs cpu9260 eukrea at91
+	@if [ "$(findstring _64m,$@)" ] ; then \
+		echo "#define CONFIG_SYS_SDRC_CR_VAL CONFIG_SYS_SDRC_CR_VAL_64MB" \
+			>>$(obj)include/config.h ; \
+		$(XECHO) "... with 64MB SDRAM" ; \
+	else \
+		echo "#define CONFIG_SYS_SDRC_CR_VAL CONFIG_SYS_SDRC_CR_VAL_128MB" \
+			>>$(obj)include/config.h ; \
+		$(XECHO) "... with 128MB SDRAM" ; \
+	fi;
+
 meesc_config	:	unconfig
 	@$(MKCONFIG) $(@:_config=) arm arm926ejs meesc esd at91
 
board/eukrea/cpu9260/Makefile new file +59 -0

59 lines not on this page · raw message

board/eukrea/cpu9260/config.mk new file +1 -0
new file mode 100644
index 0000000..9ce161e
@@ -0,0 +1 @@
+TEXT_BASE = 0x21f00000
board/eukrea/cpu9260/cpu9260.c new file +211 -0

211 lines not on this page · raw message

board/eukrea/cpu9260/cpu9260_led.c new file +46 -0

46 lines not on this page · raw message

cpu/arm926ejs/at91/lowlevel_init.S +1 -1
index 5ed518c..9962ae9 100644
@@ -194,7 +194,7 @@ SMRDATA:
 	.word CONFIG_SYS_PIOD_PPUDR_VAL
 	.word (AT91_BASE_SYS + AT91_PIOD + PIO_ASR)
 	.word CONFIG_SYS_PIOD_PPUDR_VAL
-#elif defined(CONFIG_AT91SAM9261)
+#elif defined(CONFIG_AT91SAM9260) || defined(CONFIG_AT91SAM9261)
 	.word (AT91_BASE_SYS + AT91_PIOC + PIO_PDR)
 	.word CONFIG_SYS_PIOC_PDR_VAL1
 	.word (AT91_BASE_SYS + AT91_PIOC + PIO_PUDR)
include/configs/cpu9260.h new file +339 -0

339 lines not on this page · raw message

Signature · 1 line
1.6.0.4
#1 lore raw

PATCH v2 1/1 Add support for Eukrea CPU9260 SBC

board/eukrea/cpu9260/cpu9260.c line 207

Quoted 13 lines
board/eukrea/cpu9260/cpu9260.c new file +13 -0
+
+#ifdef CONFIG_DISPLAY_BOARDINFO
+int checkboard(void)
+{
+	char buf[32];
+
+	printf("Board : Eukrea Electromatique CPU9260\n");
+	printf("Crystal frequency: %8s MHz\n",
+					strmhz(buf, get_main_clk_rate()));
+	printf("CPU clock        : %8s MHz\n",
+					strmhz(buf, get_cpu_clk_rate()));
+	printf("Master clock     : %8s MHz\n",
+					strmhz(buf, get_mck_clk_rate()));

please use CONFIG_DISPLAY_CPUINFO

Quoted 4 lines
board/eukrea/cpu9260/cpu9260.c new file +4 -0
+	printf("\n");
+	return 0;
+}
+#endif

<snip>

cpu/arm926ejs/at91/lowlevel_init.S SMRDATA: · line 197

Quoted 10 lines
cpu/arm926ejs/at91/lowlevel_init.S +1 -1
index 5ed518c..9962ae9 100644
@@ -194,7 +194,7 @@ SMRDATA:
 	.word CONFIG_SYS_PIOD_PPUDR_VAL
 	.word (AT91_BASE_SYS + AT91_PIOD + PIO_ASR)
 	.word CONFIG_SYS_PIOD_PPUDR_VAL
-#elif defined(CONFIG_AT91SAM9261)
+#elif defined(CONFIG_AT91SAM9260) || defined(CONFIG_AT91SAM9261)

please do this in a separate patch

Quoted 3 lines
cpu/arm926ejs/at91/lowlevel_init.S +0 -0
 	.word (AT91_BASE_SYS + AT91_PIOC + PIO_PDR)
 	.word CONFIG_SYS_PIOC_PDR_VAL1
 	.word (AT91_BASE_SYS + AT91_PIOC + PIO_PUDR)

<snip>

cpu/arm926ejs/at91/lowlevel_init.S

Quoted 8 lines
cpu/arm926ejs/at91/lowlevel_init.S +8 -0
+
+/* NAND flash */
+#define CONFIG_NAND_ATMEL			1
+#define NAND_MAX_CHIPS				1
+#define CONFIG_SYS_MAX_NAND_DEVICE		1
+#define CONFIG_SYS_NAND_BASE			0x40000000
+#define CONFIG_SYS_NAND_DBW_8			1
+#undef  CONFIG_SYS_NAND_DBW_16

please remove if no-need

Quoted 21 lines
cpu/arm926ejs/at91/lowlevel_init.S +21 -0
+#define CONFIG_SYS_NAND_READY_PIN		AT91_PIN_PC13
+#define CONFIG_SYS_NAND_ENABLE_PIN		AT91_PIN_PC14
+#define CONFIG_SYS_NAND_MASK_ALE		(1 << 21)
+#define CONFIG_SYS_NAND_MASK_CLE		(1 << 22)
+
+/* NOR flash */
+#define CONFIG_SYS_FLASH_CFI			1
+#define CONFIG_FLASH_CFI_DRIVER			1
+#define PHYS_FLASH_1				0x10000000
+#define PHYS_FLASH_2				0x12000000
+#define CONFIG_SYS_FLASH_BANKS_LIST		\
+		{ PHYS_FLASH_1, PHYS_FLASH_2 }
+#define CONFIG_SYS_FLASH_BASE			PHYS_FLASH_1
+#define CONFIG_SYS_MAX_FLASH_SECT		(255+4)
+#define CONFIG_SYS_MAX_FLASH_BANKS		2
+#define CONFIG_SYS_FLASH_CFI_WIDTH		FLASH_CFI_16BIT
+#define CONFIG_SYS_FLASH_EMPTY_INFO		1
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE	1
+#define CONFIG_SYS_FLASH_PROTECTION		1
+#define CONFIG_SYS_MONITOR_BASE			PHYS_FLASH_1
+

<snip>

Quoted 36 lines
cpu/arm926ejs/at91/lowlevel_init.S +36 -0
+#undef CONFIG_SYS_USE_NANDFLASH
+#define CONFIG_SYS_USE_FLASH			1
+
+#if defined(CONFIG_SYS_USE_FLASH)
+#define CONFIG_ENV_IS_IN_FLASH		1
+#define CONFIG_ENV_OFFSET		0x40000
+#define CONFIG_ENV_SECT_SIZE		0x20000
+#define	CONFIG_ENV_SIZE			0x20000
+#define CONFIG_ENV_OVERWRITE		1
+
+#define CONFIG_BOOTCOMMAND		"run flashboot"
+
+#define MTDIDS_DEFAULT	 		"nor0=physmap-flash.0,nand0=nand"
+#define MTDPARTS_DEFAULT		\
+	"mtdparts=physmap-flash.0:"	\
+		"256k(u-boot)ro,"	\
+		"128k(u-boot-env)ro,"	\
+		"1792k(kernel),"	\
+		"-(rootfs);"		\
+	"nand:-(nand)"
+
+#define CONFIG_BOOTARGS "root=/dev/mtdblock3 rootfstype=jffs2 "
+
+#define CONFIG_EXTRA_ENV_SETTINGS				\
+	"mtdids=" MTDIDS_DEFAULT "\0"				\
+	"mtdparts=" MTDPARTS_DEFAULT "\0"			\
+	"partition=nand0,0\0"					\
+	"ramargs=setenv bootargs $(bootargs) $(mtdparts)\0"	\
+	"ramboot=tftpboot 0x22000000 cpu9260/uImage;"		\
+		"run ramargs;bootm 22000000\0"			\
+	"flashboot=run ramargs;bootm 0x10060000\0"		\
+	"updtub=tftp 0x24000000 cpu9260/u-boot.bin;protect off"	\
+		" 0x10000000 0x1003ffff;erase 0x10000000 "	\
+		"0x1003ffff;cp.b 0x24000000 0x10000000 "	\
+		"$(filesize)\0" \
+	"updtui=tftp 0x24000000 cpu9260/uImage;protect off"	\

cpu/arm926ejs/at91/lowlevel_init.S

Quoted 10 lines
cpu/arm926ejs/at91/lowlevel_init.S +10 -0
+		" 0x10060000 0x1021ffff;erase 0x10060000 "	\
+		"0x1021ffff;cp.b 0x24000000 0x10060000 "	\
+		"$(filesize)\0" \
+	"updtrfs=tftp 0x24000000 cpu9260/rootfs.jffs2;protect "	\
+		"off 0x10220000 0x13ffffff;erase 0x10220000 "	\
+		"0x13ffffff;cp.b 0x24000000 0x10220000 "	\
+		"$(filesize)\0" \
+	""
+#else
+#error "Undefined memory device"

why?

Quoted 7 lines
cpu/arm926ejs/at91/lowlevel_init.S +7 -0
+#endif
+
+#define CONFIG_BAUDRATE			115200
+#define CONFIG_SYS_BAUDRATE_TABLE	{115200 , 19200, 38400, 57600, 9600 }
+
+#define CONFIG_SYS_PROMPT		"CPU9260=> "
+#define CONFIG_SYS_CBSIZE		256

cpu/arm926ejs/at91/lowlevel_init.S

Quoted 10 lines
cpu/arm926ejs/at91/lowlevel_init.S +9 -0
+#define CONFIG_SYS_MAXARGS		16
+#define CONFIG_SYS_PBSIZE		\
+		(CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_LONGHELP		1
+#define CONFIG_CMDLINE_EDITING		1
+#define CONFIG_SILENT_CONSOLE		1
+#define CONFIG_NETCONSOLE		1
+
 
+#define ROUND(A, B)			(((A) + (B)) & ~((B) - 1))

please remove

Best Regards,
J.

#2 lore raw

PATCH 1/2 Add support for Eukrea CPU9260 SBC

CPUAT91 is built around Atmel's AT91SAM9260 and has up to 64MB of NOR flash, up to 128MB of SDRAM, up to 2GB of NAND and includes a 10/100 Ethernet PHY in RMII mode.

---
 MAINTAINERS                        |    4 +
 MAKEALL                            |    1 +
 Makefile                           |   13 ++
 board/eukrea/cpu9260/Makefile      |   59 +++++++
 board/eukrea/cpu9260/config.mk     |    1 +
 board/eukrea/cpu9260/cpu9260.c     |  211 +++++++++++++++++++++++
 board/eukrea/cpu9260/cpu9260_led.c |   46 +++++
 include/configs/cpu9260.h          |  335 ++++++++++++++++++++++++++++++++++++
 8 files changed, 670 insertions(+), 0 deletions(-)
 create mode 100644 board/eukrea/cpu9260/Makefile
 create mode 100644 board/eukrea/cpu9260/config.mk
 create mode 100644 board/eukrea/cpu9260/cpu9260.c
 create mode 100644 board/eukrea/cpu9260/cpu9260_led.c
 create mode 100644 include/configs/cpu9260.h
MAINTAINERS +4 -0
index 575a7ec..b8d701a 100644
@@ -515,6 +515,10 @@ Dirk Behme <[email protected]>
 
 	omap3_beagle	ARM CORTEX-A8 (OMAP3530 SoC)
 
+Eric Benard <[email protected]>
+
+	cpu9260	ARM926EJS (AT91SAM9260 SoC)
+
 Rishi Bhattacharya <[email protected]>
 
 	omap5912osk	ARM926EJS
MAKEALL +1 -0
index 020ff73..bdc80fa 100755
@@ -592,6 +592,7 @@ LIST_at91="			\
 	at91sam9m10g45ek	\
 	at91sam9rlek		\
 	cmc_pu2			\
+	cpu9260			\
 	csb637			\
 	kb9202			\
 	meesc			\
Makefile +13 -0
index 090e645..7ae2bfe 100644
@@ -2813,6 +2813,19 @@ at91sam9rlek_config	:	unconfig
 	fi;
 	@$(MKCONFIG) -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
 
+cpu9260_64m_config \
+cpu9260_config	:	unconfig
+	@$(MKCONFIG) -a cpu9260 arm arm926ejs cpu9260 eukrea at91
+	@if [ "$(findstring _64m,$@)" ] ; then \
+		echo "#define CONFIG_SYS_SDRC_CR_VAL CONFIG_SYS_SDRC_CR_VAL_64MB" \
+			>>$(obj)include/config.h ; \
+		$(XECHO) "... with 64MB SDRAM" ; \
+	else \
+		echo "#define CONFIG_SYS_SDRC_CR_VAL CONFIG_SYS_SDRC_CR_VAL_128MB" \
+			>>$(obj)include/config.h ; \
+		$(XECHO) "... with 128MB SDRAM" ; \
+	fi;
+
 meesc_config	:	unconfig
 	@$(MKCONFIG) $(@:_config=) arm arm926ejs meesc esd at91
 
board/eukrea/cpu9260/Makefile new file +59 -0

59 lines not on this page · raw message

board/eukrea/cpu9260/config.mk new file +1 -0
new file mode 100644
index 0000000..9ce161e
@@ -0,0 +1 @@
+TEXT_BASE = 0x21f00000
board/eukrea/cpu9260/cpu9260.c new file +211 -0

211 lines not on this page · raw message

board/eukrea/cpu9260/cpu9260_led.c new file +46 -0

46 lines not on this page · raw message

include/configs/cpu9260.h new file +335 -0

335 lines not on this page · raw message

Signature · 1 line
1.6.0.4
#3 lore raw

PATCH 2/2 Add AT91SAM9260 to at91's lowlevel_init.S

Needed for AT91SAM9260 NOR Boot on Eukrea's CPU9260.

---
 cpu/arm926ejs/at91/lowlevel_init.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
cpu/arm926ejs/at91/lowlevel_init.S +1 -1
index 5ed518c..9962ae9 100644
@@ -194,7 +194,7 @@ SMRDATA:
 	.word CONFIG_SYS_PIOD_PPUDR_VAL
 	.word (AT91_BASE_SYS + AT91_PIOD + PIO_ASR)
 	.word CONFIG_SYS_PIOD_PPUDR_VAL
-#elif defined(CONFIG_AT91SAM9261)
+#elif defined(CONFIG_AT91SAM9260) || defined(CONFIG_AT91SAM9261)
 	.word (AT91_BASE_SYS + AT91_PIOC + PIO_PDR)
 	.word CONFIG_SYS_PIOC_PDR_VAL1
 	.word (AT91_BASE_SYS + AT91_PIOC + PIO_PUDR)
Signature · 1 line
1.6.0.4
#4 lore raw

PATCH 1/2 Add support for Eukrea CPU9260 SBC

In reply to Eric Benard

Dear Eric Benard,

Quoted 4 lines · In message <[email protected]> you wrote:

CPUAT91 is built around Atmel's AT91SAM9260 and has up to 64MB of NOR flash, up to 128MB of SDRAM, up to 2GB of NAND and includes a 10/100 Ethernet PHY in RMII mode.

...

Quoted 8 lines
Makefile +2 -0
@@ -2813,6 +2813,19 @@ at91sam9rlek_config	:	unconfig
 	fi;
 	@$(MKCONFIG) -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
 
+cpu9260_64m_config \
+cpu9260_config	:	unconfig

Makefile at91sam9rlek_config : unconfig · line 2827

Quoted 10 lines
Makefile +10 -0
+	@$(MKCONFIG) -a cpu9260 arm arm926ejs cpu9260 eukrea at91
+	@if [ "$(findstring _64m,$@)" ] ; then \
+		echo "#define CONFIG_SYS_SDRC_CR_VAL CONFIG_SYS_SDRC_CR_VAL_64MB" \
+			>>$(obj)include/config.h ; \
+		$(XECHO) "... with 64MB SDRAM" ; \
+	else \
+		echo "#define CONFIG_SYS_SDRC_CR_VAL CONFIG_SYS_SDRC_CR_VAL_128MB" \
+			>>$(obj)include/config.h ; \
+		$(XECHO) "... with 128MB SDRAM" ; \
+	fi;

This makes no sense to me. "mkconfig -a" (i. e. in append mode) should be used AFTER manually initializing the config files. Either omit the "-a", or move the line down.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Drawing on my fine command of language, I said nothing.
#5 lore raw

PATCH v3 1/2 Add support for Eukrea CPU9260 SBC

CPUAT91 is built around Atmel's AT91SAM9260 and has up to 64MB of NOR flash, up to 128MB of SDRAM, up to 2GB of NAND and includes a 10/100 Ethernet PHY in RMII mode.

v3 : fix Makefile (run mkconfig after config.h configuration)

---
 MAINTAINERS                        |    4 +
 MAKEALL                            |    1 +
 Makefile                           |   13 ++
 board/eukrea/cpu9260/Makefile      |   59 +++++++
 board/eukrea/cpu9260/config.mk     |    1 +
 board/eukrea/cpu9260/cpu9260.c     |  211 +++++++++++++++++++++++
 board/eukrea/cpu9260/cpu9260_led.c |   46 +++++
 include/configs/cpu9260.h          |  335 ++++++++++++++++++++++++++++++++++++
 8 files changed, 670 insertions(+), 0 deletions(-)
 create mode 100644 board/eukrea/cpu9260/Makefile
 create mode 100644 board/eukrea/cpu9260/config.mk
 create mode 100644 board/eukrea/cpu9260/cpu9260.c
 create mode 100644 board/eukrea/cpu9260/cpu9260_led.c
 create mode 100644 include/configs/cpu9260.h
MAINTAINERS +4 -0
index 575a7ec..b8d701a 100644
@@ -515,6 +515,10 @@ Dirk Behme <[email protected]>
 
 	omap3_beagle	ARM CORTEX-A8 (OMAP3530 SoC)
 
+Eric Benard <[email protected]>
+
+	cpu9260	ARM926EJS (AT91SAM9260 SoC)
+
 Rishi Bhattacharya <[email protected]>
 
 	omap5912osk	ARM926EJS
MAKEALL +1 -0
index 020ff73..bdc80fa 100755
@@ -592,6 +592,7 @@ LIST_at91="			\
 	at91sam9m10g45ek	\
 	at91sam9rlek		\
 	cmc_pu2			\
+	cpu9260			\
 	csb637			\
 	kb9202			\
 	meesc			\
Makefile +13 -0
index 090e645..7ae2bfe 100644
@@ -2813,6 +2813,19 @@ at91sam9rlek_config	:	unconfig
 	fi;
 	@$(MKCONFIG) -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
 
+cpu9260_64m_config \
+cpu9260_config	:	unconfig
+	@$(MKCONFIG) -a cpu9260 arm arm926ejs cpu9260 eukrea at91
+	@if [ "$(findstring _64m,$@)" ] ; then \
+		echo "#define CONFIG_SYS_SDRC_CR_VAL CONFIG_SYS_SDRC_CR_VAL_64MB" \
+			>>$(obj)include/config.h ; \
+		$(XECHO) "... with 64MB SDRAM" ; \
+	else \
+		echo "#define CONFIG_SYS_SDRC_CR_VAL CONFIG_SYS_SDRC_CR_VAL_128MB" \
+			>>$(obj)include/config.h ; \
+		$(XECHO) "... with 128MB SDRAM" ; \
+	fi;
+
 meesc_config	:	unconfig
 	@$(MKCONFIG) $(@:_config=) arm arm926ejs meesc esd at91
 
board/eukrea/cpu9260/Makefile new file +59 -0

59 lines not on this page · raw message

board/eukrea/cpu9260/config.mk new file +1 -0
new file mode 100644
index 0000000..9ce161e
@@ -0,0 +1 @@
+TEXT_BASE = 0x21f00000
board/eukrea/cpu9260/cpu9260.c new file +211 -0

211 lines not on this page · raw message

board/eukrea/cpu9260/cpu9260_led.c new file +46 -0

46 lines not on this page · raw message

include/configs/cpu9260.h new file +335 -0

335 lines not on this page · raw message

Signature · 1 line
1.6.0.4
#6 lore raw

PATCH v3 2/2 Add AT91SAM9260 to at91's lowlevel_init.S

Needed for AT91SAM9260 NOR Boot on Eukrea's CPU9260.

---
 cpu/arm926ejs/at91/lowlevel_init.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
cpu/arm926ejs/at91/lowlevel_init.S +1 -1
index 5ed518c..9962ae9 100644
@@ -194,7 +194,7 @@ SMRDATA:
 	.word CONFIG_SYS_PIOD_PPUDR_VAL
 	.word (AT91_BASE_SYS + AT91_PIOD + PIO_ASR)
 	.word CONFIG_SYS_PIOD_PPUDR_VAL
-#elif defined(CONFIG_AT91SAM9261)
+#elif defined(CONFIG_AT91SAM9260) || defined(CONFIG_AT91SAM9261)
 	.word (AT91_BASE_SYS + AT91_PIOC + PIO_PDR)
 	.word CONFIG_SYS_PIOC_PDR_VAL1
 	.word (AT91_BASE_SYS + AT91_PIOC + PIO_PUDR)
Signature · 1 line
1.6.0.4
#7 lore raw

PATCH v4 1/2 Add support for Eukrea CPU9260 SBC

In reply to Wolfgang Denk

CPUAT91 is built around Atmel's AT91SAM9260 and has up to 64MB of NOR flash, up to 128MB of SDRAM, up to 2GB of NAND and includes a 10/100 Ethernet PHY in RMII mode.

v4 : do the commit before generating/sending the patch ;-) v3 : fix Makefile (run mkconfig after config.h configuration)

---
 MAINTAINERS                        |    4 +
 MAKEALL                            |    1 +
 Makefile                           |   13 ++
 board/eukrea/cpu9260/Makefile      |   59 +++++++
 board/eukrea/cpu9260/config.mk     |    1 +
 board/eukrea/cpu9260/cpu9260.c     |  211 +++++++++++++++++++++++
 board/eukrea/cpu9260/cpu9260_led.c |   46 +++++
 include/configs/cpu9260.h          |  335 ++++++++++++++++++++++++++++++++++++
 8 files changed, 670 insertions(+), 0 deletions(-)
 create mode 100644 board/eukrea/cpu9260/Makefile
 create mode 100644 board/eukrea/cpu9260/config.mk
 create mode 100644 board/eukrea/cpu9260/cpu9260.c
 create mode 100644 board/eukrea/cpu9260/cpu9260_led.c
 create mode 100644 include/configs/cpu9260.h
MAINTAINERS +4 -0
index 575a7ec..b8d701a 100644
@@ -515,6 +515,10 @@ Dirk Behme <[email protected]>
 
 	omap3_beagle	ARM CORTEX-A8 (OMAP3530 SoC)
 
+Eric Benard <[email protected]>
+
+	cpu9260	ARM926EJS (AT91SAM9260 SoC)
+
 Rishi Bhattacharya <[email protected]>
 
 	omap5912osk	ARM926EJS
MAKEALL +1 -0
index 020ff73..bdc80fa 100755
@@ -592,6 +592,7 @@ LIST_at91="			\
 	at91sam9m10g45ek	\
 	at91sam9rlek		\
 	cmc_pu2			\
+	cpu9260			\
 	csb637			\
 	kb9202			\
 	meesc			\
Makefile +13 -0
index 090e645..8c4178f 100644
@@ -2813,6 +2813,19 @@ at91sam9rlek_config	:	unconfig
 	fi;
 	@$(MKCONFIG) -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
 
+cpu9260_64m_config \
+cpu9260_config	:	unconfig
+	@if [ "$(findstring _64m,$@)" ] ; then \
+		echo "#define CONFIG_SYS_SDRC_CR_VAL CONFIG_SYS_SDRC_CR_VAL_64MB" \
+			>>$(obj)include/config.h ; \
+		$(XECHO) "... CPU9260 with 64MB SDRAM" ; \
+	else \
+		echo "#define CONFIG_SYS_SDRC_CR_VAL CONFIG_SYS_SDRC_CR_VAL_128MB" \
+			>>$(obj)include/config.h ; \
+		$(XECHO) "... CPU9260 with 128MB SDRAM" ; \
+	fi;
+	@$(MKCONFIG) -a cpu9260 arm arm926ejs cpu9260 eukrea at91
+
 meesc_config	:	unconfig
 	@$(MKCONFIG) $(@:_config=) arm arm926ejs meesc esd at91
 
board/eukrea/cpu9260/Makefile new file +59 -0

59 lines not on this page · raw message

board/eukrea/cpu9260/config.mk new file +1 -0
new file mode 100644
index 0000000..9ce161e
@@ -0,0 +1 @@
+TEXT_BASE = 0x21f00000
board/eukrea/cpu9260/cpu9260.c new file +211 -0

211 lines not on this page · raw message

board/eukrea/cpu9260/cpu9260_led.c new file +46 -0

46 lines not on this page · raw message

include/configs/cpu9260.h new file +335 -0

335 lines not on this page · raw message

Signature · 1 line
1.6.0.4
#8 lore raw

PATCH v4 2/2 Add AT91SAM9260 to at91's lowlevel_init.S

Needed for AT91SAM9260 NOR Boot on Eukrea's CPU9260.

---
 cpu/arm926ejs/at91/lowlevel_init.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
cpu/arm926ejs/at91/lowlevel_init.S +1 -1
index 5ed518c..9962ae9 100644
@@ -194,7 +194,7 @@ SMRDATA:
 	.word CONFIG_SYS_PIOD_PPUDR_VAL
 	.word (AT91_BASE_SYS + AT91_PIOD + PIO_ASR)
 	.word CONFIG_SYS_PIOD_PPUDR_VAL
-#elif defined(CONFIG_AT91SAM9261)
+#elif defined(CONFIG_AT91SAM9260) || defined(CONFIG_AT91SAM9261)
 	.word (AT91_BASE_SYS + AT91_PIOC + PIO_PDR)
 	.word CONFIG_SYS_PIOC_PDR_VAL1
 	.word (AT91_BASE_SYS + AT91_PIOC + PIO_PUDR)
Signature · 1 line
1.6.0.4
#9 lore raw

PATCH v4 1/2 Add support for Eukrea CPU9260 SBC

In reply to Eric Benard
Quoted 108 lines · Eric Benard

CPUAT91 is built around Atmel's AT91SAM9260 and has up to 64MB of NOR flash, up to 128MB of SDRAM, up to 2GB of NAND and includes a 10/100 Ethernet PHY in RMII mode.

v4 : do the commit before generating/sending the patch ;-) v3 : fix Makefile (run mkconfig after config.h configuration)

---
 MAINTAINERS                        |    4 +
 MAKEALL                            |    1 +
 Makefile                           |   13 ++
 board/eukrea/cpu9260/Makefile      |   59 +++++++
 board/eukrea/cpu9260/config.mk     |    1 +
 board/eukrea/cpu9260/cpu9260.c     |  211 +++++++++++++++++++++++
 board/eukrea/cpu9260/cpu9260_led.c |   46 +++++
 include/configs/cpu9260.h          |  335 ++++++++++++++++++++++++++++++++++++
 8 files changed, 670 insertions(+), 0 deletions(-)
 create mode 100644 board/eukrea/cpu9260/Makefile
 create mode 100644 board/eukrea/cpu9260/config.mk
 create mode 100644 board/eukrea/cpu9260/cpu9260.c
 create mode 100644 board/eukrea/cpu9260/cpu9260_led.c
 create mode 100644 include/configs/cpu9260.h
MAINTAINERS +4 -0
index 575a7ec..b8d701a 100644
@@ -515,6 +515,10 @@ Dirk Behme <[email protected]>
 
 	omap3_beagle	ARM CORTEX-A8 (OMAP3530 SoC)
 
+Eric Benard <[email protected]>
+
+	cpu9260	ARM926EJS (AT91SAM9260 SoC)
+
 Rishi Bhattacharya <[email protected]>
 
 	omap5912osk	ARM926EJS
MAKEALL +1 -0
index 020ff73..bdc80fa 100755
@@ -592,6 +592,7 @@ LIST_at91="			\
 	at91sam9m10g45ek	\
 	at91sam9rlek		\
 	cmc_pu2			\
+	cpu9260			\
 	csb637			\
 	kb9202			\
 	meesc			\
Makefile +13 -0
index 090e645..8c4178f 100644
@@ -2813,6 +2813,19 @@ at91sam9rlek_config	:	unconfig
 	fi;
 	@$(MKCONFIG) -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
 
+cpu9260_64m_config \
+cpu9260_config	:	unconfig
+	@if [ "$(findstring _64m,$@)" ] ; then \
+		echo "#define CONFIG_SYS_SDRC_CR_VAL CONFIG_SYS_SDRC_CR_VAL_64MB" \
+			>>$(obj)include/config.h ; \
+		$(XECHO) "... CPU9260 with 64MB SDRAM" ; \
+	else \
+		echo "#define CONFIG_SYS_SDRC_CR_VAL CONFIG_SYS_SDRC_CR_VAL_128MB" \
+			>>$(obj)include/config.h ; \
+		$(XECHO) "... CPU9260 with 128MB SDRAM" ; \
+	fi;
+	@$(MKCONFIG) -a cpu9260 arm arm926ejs cpu9260 eukrea at91
+
 meesc_config	:	unconfig
 	@$(MKCONFIG) $(@:_config=) arm arm926ejs meesc esd at91
 
board/eukrea/cpu9260/Makefile new file +27 -0
new file mode 100644
index 0000000..5b1acdc
@@ -0,0 +1,59 @@
+#
+# (C) Copyright 2003-2008
+# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
+#
+# (C) Copyright 2008
+# Stelian Pop <[email protected]>
+# Lead Tech Design <www.leadtechdesign.com>
+# Ilko Iliev <www.ronetix.at>
+#
+# (C) Copyright 2009
+# Eric Benard <[email protected]>
+#
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software

board/eukrea/cpu9260/Makefile line 37

Quoted 10 lines
board/eukrea/cpu9260/Makefile new file +10 -0
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+
+include $(TOPDIR)/config.mk
+
+LIB	= $(obj)lib$(BOARD).a
+
+COBJS-y += $(BOARD).o
+COBJS-y += $(BOARD)_led.o

please keep the same way as all other at91sam
COBJS-y += led.o

Quoted 57 lines
board/eukrea/cpu9260/Makefile new file +22 -0
+
+SRCS	:= $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
+OBJS	:= $(addprefix $(obj),$(COBJS-y) $(SOBJS))
+SOBJS	:= $(addprefix $(obj),$(SOBJS))
+
+$(LIB):	$(obj).depend $(OBJS) $(SOBJS)
+	$(AR) $(ARFLAGS) $@ $(OBJS)
+
+clean:
+	rm -f $(SOBJS) $(OBJS)
+
+distclean:	clean
+	rm -f $(LIB) core *.bak $(obj).depend
+
+#########################################################################
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#########################################################################
board/eukrea/cpu9260/config.mk new file +1 -0
new file mode 100644
index 0000000..9ce161e
@@ -0,0 +1 @@
+TEXT_BASE = 0x21f00000
board/eukrea/cpu9260/cpu9260.c new file +22 -0
new file mode 100644
index 0000000..84707b6
@@ -0,0 +1,211 @@
+/*
+ * (C) Copyright 2007-2008
+ * Stelian Pop <[email protected]>
+ * Lead Tech Design <www.leadtechdesign.com>
+ * Ilko Iliev <www.ronetix.at>
+ *
+ * (C) Copyright 2009
+ * Eric Benard <[email protected]>
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *

board/eukrea/cpu9260/cpu9260.c line 32

Quoted 10 lines
board/eukrea/cpu9260/cpu9260.c new file +10 -0
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#include <common.h>
+#include <asm/sizes.h>
+#include <asm/arch/at91sam9260.h>
+#include <asm/arch/at91sam9260_matrix.h>

please
#include <asm/arch/at91sam9_matrix.h>

Quoted 166 lines
board/eukrea/cpu9260/cpu9260.c new file +166 -0
+#include <asm/arch/at91sam9_smc.h>
+#include <asm/arch/at91_common.h>
+#include <asm/arch/at91_pmc.h>
+#include <asm/arch/at91_rstc.h>
+#include <asm/arch/gpio.h>
+#include <asm/arch/io.h>
+#include <asm/arch/clk.h>
+#include <asm/arch/hardware.h>
+#if defined(CONFIG_RESET_PHY_R) && defined(CONFIG_MACB)
+#include <net.h>
+#endif
+#include <netdev.h>
+
+DECLARE_GLOBAL_DATA_PTR;
+
+/* ------------------------------------------------------------------------- */
+/*
+ * Miscelaneous platform dependent initialisations
+ */
+
+#ifdef CONFIG_CMD_NAND
+static void cpu9260_nand_hw_init(void)
+{
+	unsigned long csa;
+
+	/* Enable CS3 */
+	csa = at91_sys_read(AT91_MATRIX_EBICSA);
+	at91_sys_write(AT91_MATRIX_EBICSA,
+		       csa | AT91_MATRIX_CS3A_SMC_SMARTMEDIA);
+
+	/* Configure SMC CS3 for NAND/SmartMedia */
+	at91_sys_write(AT91_SMC_SETUP(3),
+		       AT91_SMC_NWESETUP_(1) | AT91_SMC_NCS_WRSETUP_(0) |
+		       AT91_SMC_NRDSETUP_(1) | AT91_SMC_NCS_RDSETUP_(0));
+	at91_sys_write(AT91_SMC_PULSE(3),
+		       AT91_SMC_NWEPULSE_(3) | AT91_SMC_NCS_WRPULSE_(3) |
+		       AT91_SMC_NRDPULSE_(3) | AT91_SMC_NCS_RDPULSE_(3));
+	at91_sys_write(AT91_SMC_CYCLE(3),
+		       AT91_SMC_NWECYCLE_(5) | AT91_SMC_NRDCYCLE_(5));
+	at91_sys_write(AT91_SMC_MODE(3),
+		       AT91_SMC_READMODE | AT91_SMC_WRITEMODE |
+		       AT91_SMC_EXNWMODE_DISABLE |
+		       AT91_SMC_DBW_8 |
+		       AT91_SMC_TDF_(2));
+
+	at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9260_ID_PIOC);
+
+	/* Configure RDY/BSY */
+	at91_set_gpio_input(CONFIG_SYS_NAND_READY_PIN, 1);
+
+	/* Enable NandFlash */
+	at91_set_gpio_output(CONFIG_SYS_NAND_ENABLE_PIN, 1);
+}
+#endif
+
+#ifdef CONFIG_MACB
+static void cpu9260_macb_hw_init(void)
+{
+	unsigned long rstc;
+
+	/* Enable clock */
+	at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9260_ID_EMAC);
+
+	/*
+	 * Disable pull-up on:
+	 *	RXDV (PA17) => PHY normal mode (not Test mode)
+	 *	ERX0 (PA14) => PHY ADDR0
+	 *	ERX1 (PA15) => PHY ADDR1
+	 *	ERX2 (PA25) => PHY ADDR2
+	 *	ERX3 (PA26) => PHY ADDR3
+	 *	ECRS (PA28) => PHY ADDR4  => PHYADDR = 0x0
+	 *
+	 * PHY has internal pull-down
+	 */
+	writel(pin_to_mask(AT91_PIN_PA14) |
+	       pin_to_mask(AT91_PIN_PA15) |
+	       pin_to_mask(AT91_PIN_PA17) |
+	       pin_to_mask(AT91_PIN_PA25) |
+	       pin_to_mask(AT91_PIN_PA26) |
+	       pin_to_mask(AT91_PIN_PA28),
+	       pin_to_controller(AT91_PIN_PA0) + PIO_PUDR);
+
+	rstc = at91_sys_read(AT91_RSTC_MR) & AT91_RSTC_ERSTL;
+
+	/* Need to reset PHY -> 500ms reset */
+	at91_sys_write(AT91_RSTC_MR, AT91_RSTC_KEY |
+				     AT91_RSTC_ERSTL & (0x0D << 8) |
+				     AT91_RSTC_URSTEN);
+
+	at91_sys_write(AT91_RSTC_CR, AT91_RSTC_KEY | AT91_RSTC_EXTRST);
+
+	/* Wait for end hardware reset */
+	while (!(at91_sys_read(AT91_RSTC_SR) & AT91_RSTC_NRSTL));
+
+	/* Restore NRST value */
+	at91_sys_write(AT91_RSTC_MR, AT91_RSTC_KEY |
+				     (rstc) |
+				     AT91_RSTC_URSTEN);
+
+	/* Re-enable pull-up */
+	writel(pin_to_mask(AT91_PIN_PA14) |
+	       pin_to_mask(AT91_PIN_PA15) |
+	       pin_to_mask(AT91_PIN_PA17) |
+	       pin_to_mask(AT91_PIN_PA25) |
+	       pin_to_mask(AT91_PIN_PA26) |
+	       pin_to_mask(AT91_PIN_PA28),
+	       pin_to_controller(AT91_PIN_PA0) + PIO_PUER);
+
+	at91_macb_hw_init();
+}
+#endif
+
+int board_init(void)
+{
+	/* Enable Ctrlc */
+	console_init_f();
+
+	/* arch number of CPUAT9260-Board */
+	gd->bd->bi_arch_number = MACH_TYPE_CPUAT9260;
+
+	/* adress of boot parameters */
+	gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
+
+	at91_serial_hw_init();
+#ifdef CONFIG_CMD_NAND
+	cpu9260_nand_hw_init();
+#endif
+#ifdef CONFIG_MACB
+	cpu9260_macb_hw_init();
+#endif
+
+	return 0;
+}
+
+int dram_init(void)
+{
+	gd->bd->bi_dram[0].start = PHYS_SDRAM;
+	gd->bd->bi_dram[0].size = PHYS_SDRAM_SIZE;
+	return 0;
+}
+
+#ifdef CONFIG_RESET_PHY_R
+void reset_phy(void)
+{
+#ifdef CONFIG_MACB
+	/*
+	 * Initialize ethernet HW addr prior to starting Linux,
+	 * needed for nfsroot
+	 */
+	eth_init(gd->bd);
+#endif
+}
+#endif
+
+int board_eth_init(bd_t *bis)
+{
+	int rc = 0;
+#ifdef CONFIG_MACB
+	rc = macb_eth_initialize(0, (void *)AT91SAM9260_BASE_EMAC, 0x1F);
+#endif
+	return rc;
+}
+
+#ifdef CONFIG_DISPLAY_CPUINFO
+int checkboard(void)
+{

board/eukrea/cpu9260/cpu9260.c line 208

Quoted 10 lines
board/eukrea/cpu9260/cpu9260.c new file +10 -0
+	char buf[32];
+
+	printf("Board : Eukrea Electromatique CPU9260\n");
+	printf("Crystal frequency: %8s MHz\n",
+					strmhz(buf, get_main_clk_rate()));
+	printf("CPU clock        : %8s MHz\n",
+					strmhz(buf, get_cpu_clk_rate()));
+	printf("Master clock     : %8s MHz\n",
+					strmhz(buf, get_mck_clk_rate()));
+	printf("\n");

it can not work CONFIG_DISPLAY_CPUINFO is for print_cpuinfo callback when I tell you use CONFIG_DISPLAY_CPUINFO
it's because we already implement this printf in cpu/arm926ejs/at91/cpu.c
so please update

Quoted 87 lines
board/eukrea/cpu9260/cpu9260.c new file +3 -0
+	return 0;
+}
+#endif
board/eukrea/cpu9260/cpu9260_led.c new file +46 -0
new file mode 100644
index 0000000..33942c7
@@ -0,0 +1,46 @@
+/*
+ * (C) Copyright 2007-2008
+ * Stelian Pop <[email protected]>
+ * Lead Tech Design <www.leadtechdesign.com>
+ * Ilko Iliev <www.ronetix.at>
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#include <common.h>
+#include <asm/arch/at91sam9260.h>
+#include <asm/arch/at91_pmc.h>
+#include <asm/arch/gpio.h>
+#include <asm/arch/io.h>
+
+void coloured_LED_init(void)
+{
+	/* Enable clock */
+	at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9260_ID_PIOC);
+
+	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_output(CONFIG_BLUE_LED, 1);
+
+	at91_set_gpio_value(CONFIG_RED_LED, 1);
+	at91_set_gpio_value(CONFIG_GREEN_LED, 1);
+	at91_set_gpio_value(CONFIG_YELLOW_LED, 1);
+	at91_set_gpio_value(CONFIG_BLUE_LED, 0);
+}
include/configs/cpu9260.h new file +26 -0
new file mode 100644
index 0000000..1342754
@@ -0,0 +1,335 @@
+/*
+ * (C) Copyright 2007-2008
+ * Stelian Pop <[email protected]>
+ * Lead Tech Design <www.leadtechdesign.com>
+ * Ilko Iliev <www.ronetix.at>
+ *
+ * (C) Copyright 2009
+ * Eric Benard <[email protected]>
+ *
+ * Configuration settings for the Eukrea CPU9260 board.
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software

include/configs/cpu9260.h line 36

Quoted 10 lines
include/configs/cpu9260.h new file +10 -0
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef __CONFIG_H
+#define __CONFIG_H
+
+#define CONFIG_DISPLAY_CPUINFO	1
+
+#define CPU9260_CRYSTAL		18432000

please use
AT91_MAIN_CLOCK or you will let U-Boot detect it for the clock api

Best Regards,
J.

#10 lore raw

PATCH v5 1/1 Add support for Eukrea CPU9260 SBC

CPUAT91 is built around Atmel's AT91SAM9260 and has up to 64MB of NOR flash, up to 128MB of SDRAM, up to 2GB of NAND and includes a 10/100 Ethernet PHY in RMII mode.

---
 MAINTAINERS                        |    4 +
 MAKEALL                            |    1 +
 Makefile                           |   13 ++
 board/eukrea/cpu9260/Makefile      |   59 +++++++
 board/eukrea/cpu9260/config.mk     |    1 +
 board/eukrea/cpu9260/cpu9260.c     |  211 +++++++++++++++++++++++
 board/eukrea/cpu9260/cpu9260_led.c |   46 +++++
 board/eukrea/cpu9260/led.c         |   46 +++++
 include/configs/cpu9260.h          |  335 ++++++++++++++++++++++++++++++++++++
 9 files changed, 716 insertions(+), 0 deletions(-)
 create mode 100644 board/eukrea/cpu9260/Makefile
 create mode 100644 board/eukrea/cpu9260/config.mk
 create mode 100644 board/eukrea/cpu9260/cpu9260.c
 create mode 100644 board/eukrea/cpu9260/cpu9260_led.c
 create mode 100644 board/eukrea/cpu9260/led.c
 create mode 100644 include/configs/cpu9260.h
MAINTAINERS +4 -0
index 620604c..fa85a45 100644
@@ -521,6 +521,10 @@ Dirk Behme <[email protected]>
 
 	omap3_beagle	ARM CORTEX-A8 (OMAP3530 SoC)
 
+Eric Benard <[email protected]>
+
+	cpu9260	ARM926EJS (AT91SAM9260 SoC)
+
 Rishi Bhattacharya <[email protected]>
 
 	omap5912osk	ARM926EJS
MAKEALL +1 -0
index edebaea..e081588 100755
@@ -600,6 +600,7 @@ LIST_at91="			\
 	at91sam9m10g45ek	\
 	at91sam9rlek		\
 	cmc_pu2			\
+	cpu9260			\
 	csb637			\
 	kb9202			\
 	meesc			\
Makefile +13 -0
index 54c0b67..d1eeb42 100644
@@ -2804,6 +2804,19 @@ at91sam9rlek_config	:	unconfig
 	fi;
 	@$(MKCONFIG) -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
 
+cpu9260_64m_config \
+cpu9260_config	:	unconfig
+	@if [ "$(findstring _64m,$@)" ] ; then \
+		echo "#define CONFIG_SYS_SDRC_CR_VAL CONFIG_SYS_SDRC_CR_VAL_64MB" \
+			>>$(obj)include/config.h ; \
+		$(XECHO) "... CPU9260 with 64MB SDRAM" ; \
+	else \
+		echo "#define CONFIG_SYS_SDRC_CR_VAL CONFIG_SYS_SDRC_CR_VAL_128MB" \
+			>>$(obj)include/config.h ; \
+		$(XECHO) "... CPU9260 with 128MB SDRAM" ; \
+	fi;
+	@$(MKCONFIG) -a cpu9260 arm arm926ejs cpu9260 eukrea at91
+
 meesc_config	:	unconfig
 	@$(MKCONFIG) $(@:_config=) arm arm926ejs meesc esd at91
 
board/eukrea/cpu9260/Makefile new file +59 -0

59 lines not on this page · raw message

board/eukrea/cpu9260/config.mk new file +1 -0
new file mode 100644
index 0000000..9ce161e
@@ -0,0 +1 @@
+TEXT_BASE = 0x21f00000
board/eukrea/cpu9260/cpu9260.c new file +211 -0

211 lines not on this page · raw message

board/eukrea/cpu9260/cpu9260_led.c new file +46 -0

46 lines not on this page · raw message

board/eukrea/cpu9260/led.c new file +46 -0

46 lines not on this page · raw message

include/configs/cpu9260.h new file +335 -0

335 lines not on this page · raw message

Signature · 1 line
1.6.0.4
#11 lore raw

PATCH v6 1/1 Add support for Eukrea CPU9260 SBC

In reply to Jean-Christophe PLAGNIOL-VILLARD

CPUAT91 is built around Atmel's AT91SAM9260 and has up to 64MB of NOR flash, up to 128MB of SDRAM, up to 2GB of NAND and includes a 10/100 Ethernet PHY in RMII mode.

---
 MAINTAINERS                    |    4 +
 MAKEALL                        |    1 +
 Makefile                       |   13 ++
 board/eukrea/cpu9260/Makefile  |   59 +++++++
 board/eukrea/cpu9260/config.mk |    1 +
 board/eukrea/cpu9260/cpu9260.c |  194 +++++++++++++++++++++++
 board/eukrea/cpu9260/led.c     |   46 ++++++
 include/configs/cpu9260.h      |  335 ++++++++++++++++++++++++++++++++++++++++
 8 files changed, 653 insertions(+), 0 deletions(-)
 create mode 100644 board/eukrea/cpu9260/Makefile
 create mode 100644 board/eukrea/cpu9260/config.mk
 create mode 100644 board/eukrea/cpu9260/cpu9260.c
 create mode 100644 board/eukrea/cpu9260/led.c
 create mode 100644 include/configs/cpu9260.h
MAINTAINERS +4 -0
index 620604c..fa85a45 100644
@@ -521,6 +521,10 @@ Dirk Behme <[email protected]>
 
 	omap3_beagle	ARM CORTEX-A8 (OMAP3530 SoC)
 
+Eric Benard <[email protected]>
+
+	cpu9260	ARM926EJS (AT91SAM9260 SoC)
+
 Rishi Bhattacharya <[email protected]>
 
 	omap5912osk	ARM926EJS
MAKEALL +1 -0
index edebaea..e081588 100755
@@ -600,6 +600,7 @@ LIST_at91="			\
 	at91sam9m10g45ek	\
 	at91sam9rlek		\
 	cmc_pu2			\
+	cpu9260			\
 	csb637			\
 	kb9202			\
 	meesc			\
Makefile +13 -0
index 54c0b67..d1eeb42 100644
@@ -2804,6 +2804,19 @@ at91sam9rlek_config	:	unconfig
 	fi;
 	@$(MKCONFIG) -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
 
+cpu9260_64m_config \
+cpu9260_config	:	unconfig
+	@if [ "$(findstring _64m,$@)" ] ; then \
+		echo "#define CONFIG_SYS_SDRC_CR_VAL CONFIG_SYS_SDRC_CR_VAL_64MB" \
+			>>$(obj)include/config.h ; \
+		$(XECHO) "... CPU9260 with 64MB SDRAM" ; \
+	else \
+		echo "#define CONFIG_SYS_SDRC_CR_VAL CONFIG_SYS_SDRC_CR_VAL_128MB" \
+			>>$(obj)include/config.h ; \
+		$(XECHO) "... CPU9260 with 128MB SDRAM" ; \
+	fi;
+	@$(MKCONFIG) -a cpu9260 arm arm926ejs cpu9260 eukrea at91
+
 meesc_config	:	unconfig
 	@$(MKCONFIG) $(@:_config=) arm arm926ejs meesc esd at91
 
board/eukrea/cpu9260/Makefile new file +59 -0

59 lines not on this page · raw message

board/eukrea/cpu9260/config.mk new file +1 -0
new file mode 100644
index 0000000..9ce161e
@@ -0,0 +1 @@
+TEXT_BASE = 0x21f00000
board/eukrea/cpu9260/cpu9260.c new file +194 -0

194 lines not on this page · raw message

board/eukrea/cpu9260/led.c new file +46 -0

46 lines not on this page · raw message

include/configs/cpu9260.h new file +335 -0

335 lines not on this page · raw message

Signature · 1 line
1.6.0.4
#12 lore raw

PATCH v6 1/1 Add support for Eukrea CPU9260 SBC

Dear Eric Benard,

Quoted 6 lines · In message <[email protected]> you wrote:

CPUAT91 is built around Atmel's AT91SAM9260 and has up to 64MB of NOR flash, up to 128MB of SDRAM, up to 2GB of NAND and includes a 10/100 Ethernet PHY in RMII mode.

---

Would you please indicate what's the difference between the patches you submit? Such comment belongs below the '---' line!

What exactly is the difference between v5 and v6 of this patch? You sent these just 12 minutes apart, but without any word of explanation!

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Houston, Tranquillity Base here.  The Eagle has landed.
                                                    -- Neil Armstrong
#13 lore raw

PATCH v6 1/1 Add support for Eukrea CPU9260 SBC

Dear Wolfgang Denx,

Wolfgang Denk a ?crit :

Quoted 3 lines

Would you please indicate what's the difference between the patches you submit? Such comment belongs below the '---' line!

Is there a way to add these comments using git or should I edit the patch before sending it ?

Quoted 3 lines

What exactly is the difference between v5 and v6 of this patch? You sent these just 12 minutes apart, but without any word of explanation!

sorry, it was a mistake using git ... v5 = v4
v6 fixes Jean Christophe's comments.

Eric

#14 lore raw

PATCH v6 1/1 Add support for Eukrea CPU9260 SBC

Dear =?ISO-8859-1?Q?Eric_B=E9nard?=,

Quoted 6 lines · In message <[email protected]> you wrote:
Quoted 4 lines

Would you please indicate what's the difference between the patches you submit? Such comment belongs below the '---' line!

Is there a way to add these comments using git or should I edit the patch before sending it ?

Edit the patch, and insert your comments below the '---' line.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"What if" is a trademark of Hewlett Packard, so stop using it in your
sentences without permission, or risk being sued.
#15 lore raw

PATCH v6 1/1 Add support for Eukrea CPU9260 SBC

In reply to Eric Benard
Quoted 5 lines · Eric Benard

CPUAT91 is built around Atmel's AT91SAM9260 and has up to 64MB of NOR flash, up to 128MB of SDRAM, up to 2GB of NAND and includes a 10/100 Ethernet PHY in RMII mode.

Quoted 15 lines
---
 MAINTAINERS                    |    4 +
 MAKEALL                        |    1 +
 Makefile                       |   13 ++
 board/eukrea/cpu9260/Makefile  |   59 +++++++
 board/eukrea/cpu9260/config.mk |    1 +
 board/eukrea/cpu9260/cpu9260.c |  194 +++++++++++++++++++++++
 board/eukrea/cpu9260/led.c     |   46 ++++++
 include/configs/cpu9260.h      |  335 ++++++++++++++++++++++++++++++++++++++++
 8 files changed, 653 insertions(+), 0 deletions(-)
 create mode 100644 board/eukrea/cpu9260/Makefile
 create mode 100644 board/eukrea/cpu9260/config.mk
 create mode 100644 board/eukrea/cpu9260/cpu9260.c
 create mode 100644 board/eukrea/cpu9260/led.c
 create mode 100644 include/configs/cpu9260.h

applied to u-boot-arm

Best Regards,
J.

#16 lore raw

PATCH v6 1/1 Add support for Eukrea CPU9260 SBC

Dear Jean-Christophe PLAGNIOL-VILLARD,

Quoted 21 lines · In message <[email protected]> you wrote:
Quoted 5 lines · Eric Benard

CPUAT91 is built around Atmel's AT91SAM9260 and has up to 64MB of NOR flash, up to 128MB of SDRAM, up to 2GB of NAND and includes a 10/100 Ethernet PHY in RMII mode.

Quoted 15 lines
---
 MAINTAINERS                    |    4 +
 MAKEALL                        |    1 +
 Makefile                       |   13 ++
 board/eukrea/cpu9260/Makefile  |   59 +++++++
 board/eukrea/cpu9260/config.mk |    1 +
 board/eukrea/cpu9260/cpu9260.c |  194 +++++++++++++++++++++++
 board/eukrea/cpu9260/led.c     |   46 ++++++
 include/configs/cpu9260.h      |  335 ++++++++++++++++++++++++++++++++++++++++
 8 files changed, 653 insertions(+), 0 deletions(-)
 create mode 100644 board/eukrea/cpu9260/Makefile
 create mode 100644 board/eukrea/cpu9260/config.mk
 create mode 100644 board/eukrea/cpu9260/cpu9260.c
 create mode 100644 board/eukrea/cpu9260/led.c
 create mode 100644 include/configs/cpu9260.h
Quoted 1 line

applied to u-boot-arm

Please undo. This patch is not ripe yet. NAK from me.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A metaphor is like a simile.