public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2] at91: add at91sam9xeek board support
@ 2009-01-05 14:42 Nicolas Ferre
  2009-01-06 20:18 ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Ferre @ 2009-01-05 14:42 UTC (permalink / raw)
  To: u-boot

At91sam9xe is basically an at91sam9260 with embedded flash. We can manage
it as another entry for at91sam9260 in the Makefile.

Check documentation at :
http://www.atmel.com/dyn/products/product_card.asp?part_id=4263

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
---
Patch against u-boot-at91.git

V2 integrates the typo noted during
the v1 review (Typo: CFG_ convert to CONFIG_SYS_)

 Makefile |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 623b8f7..74dfcca 100644
--- a/Makefile
+++ b/Makefile
@@ -2599,6 +2599,23 @@ at91sam9260ek_config	:	unconfig
 	fi;
 	@$(MKCONFIG) -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
 
+at91sam9xeek_nandflash_config \
+at91sam9xeek_dataflash_cs0_config \
+at91sam9xeek_dataflash_cs1_config \
+at91sam9xeek_config	:	unconfig
+	@mkdir -p $(obj)include
+	@if [ "$(findstring _nandflash,$@)" ] ; then \
+		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
+		$(XECHO) "... with environment variable in NAND FLASH" ; \
+	elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
+		echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1"	>>$(obj)include/config.h ; \
+		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
+	else \
+		echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1"	>>$(obj)include/config.h ; \
+		$(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \
+	fi;
+	@$(MKCONFIG) -n at91sam9xeek -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91sam9
+
 at91sam9261ek_nandflash_config \
 at91sam9261ek_dataflash_cs0_config \
 at91sam9261ek_dataflash_cs3_config \
-- 
1.5.3.7

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH v2] at91: add at91sam9xeek board support
  2009-01-05 14:42 [U-Boot] [PATCH v2] at91: add at91sam9xeek board support Nicolas Ferre
@ 2009-01-06 20:18 ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 0 replies; 2+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2009-01-06 20:18 UTC (permalink / raw)
  To: u-boot

On 15:42 Mon 05 Jan     , Nicolas Ferre wrote:
> At91sam9xe is basically an at91sam9260 with embedded flash. We can manage
> it as another entry for at91sam9260 in the Makefile.
>
> Check documentation at :
> http://www.atmel.com/dyn/products/product_card.asp?part_id=4263
>
> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
> ---
> Patch against u-boot-at91.git
>
> V2 integrates the typo noted during
> the v1 review (Typo: CFG_ convert to CONFIG_SYS_)
>
> Makefile |   17 +++++++++++++++++
> 1 files changed, 17 insertions(+), 0 deletions(-)
applied

Best Regards,
J.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-06 20:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-05 14:42 [U-Boot] [PATCH v2] at91: add at91sam9xeek board support Nicolas Ferre
2009-01-06 20:18 ` Jean-Christophe PLAGNIOL-VILLARD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox