[U-Boot] [PATCH] Support for the Calao TNY-A9260/TNY-A9G20 boards

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Wed Aug 19 23:30:05 CEST 2009


On 21:14 Wed 19 Aug     , Albin Tonnerre wrote:
> The Calao TNY-A9260 and TNY-9G20 are boards manufactured and sold by
> Calao Systems <http://www.calao-systems.com>. Their components are very
> similar to the AT91SAM9260EK board, so their configuration is based on
> the configuration of this board. There are however some differences:
> different clocks, no LCD, no ethernet. They also can use SPI EEPROM to
> store the environment.
> 
> Signed-off-by: Albin Tonnerre <albin.tonnerre at free-electrons.com>
> ---
please put the version in the subject to known which one is the last
> Changes since previous version:
>  - As per Jean-Christophe's commentes, fix long lines and use uppercase for
>    defines in include/configs/tny_a9260.h. Slightly rework the ifdef logic in
>    the process
>  - Add an entry in MAINTAINERS for the tny_a9g20 as weel, since both 9260 and
>    9g20 are supported
> 
>  MAINTAINERS                              |    5 +
>  MAKEALL                                  |    1 +
>  Makefile                                 |   10 ++
>  board/calao/tny_a9260/Makefile           |   55 ++++++++++
>  board/calao/tny_a9260/config.mk          |    1 +
>  board/calao/tny_a9260/spi.c              |   50 +++++++++
>  board/calao/tny_a9260/tny_a9260.c        |  110 +++++++++++++++++++
>  cpu/arm926ejs/at91/at91sam9260_devices.c |    2 +-
>  include/configs/tny_a9260.h              |  172 ++++++++++++++++++++++++++++++
>  9 files changed, 405 insertions(+), 1 deletions(-)
>  create mode 100644 board/calao/tny_a9260/Makefile
>  create mode 100644 board/calao/tny_a9260/config.mk
>  create mode 100644 board/calao/tny_a9260/spi.c
>  create mode 100644 board/calao/tny_a9260/tny_a9260.c
>  create mode 100644 include/configs/tny_a9260.h
> 
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 620604c..91e2c7f 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -681,6 +681,11 @@ Andrea Scian <andrea.scian at dave-tech.it>
>  
>  	B2		ARM7TDMI (S3C44B0X)
>  
> +Albin Tonnerre <albin.tonnerre at free-electrons.com>
> +
> +	tny_a9260	ARM926EJS (AT91SAM9260 SoC)
> +	tny_a9g20	ARM926EJS (AT91SAM9G20 SoC)
> +
>  Greg Ungerer <greg.ungerer at opengear.com>
>  
>  	cm4008		ks8695p
> diff --git a/MAKEALL b/MAKEALL
> index edebaea..5882ceb 100755
> --- a/MAKEALL
> +++ b/MAKEALL
> @@ -607,6 +607,7 @@ LIST_at91="			\
>  	m501sk			\
>  	pm9261			\
>  	pm9263			\
> +	tny_a9260	\
why not 9g20 too?
>  "
>  
>  #########################################################################
> diff --git a/Makefile b/Makefile
> index 329e0f5..2abaeeb 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -2838,6 +2838,16 @@ at91sam9g45ekes_config	:	unconfig
>  pm9263_config	:	unconfig
>  	@$(MKCONFIG) $(@:_config=) arm arm926ejs pm9263 ronetix at91
>  
> +TNY_A9G20_NANDFLASH_config \
> +TNY_A9G20_EEPROM_config \
> +TNY_A9G20_config \
> +TNY_A9260_NANDFLASH_config \
> +TNY_A9260_EEPROM_config \
> +TNY_A9260_config	:	unconfig
> +	@mkdir -p $(obj)include
> +	@echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
try somethink like this so you do not need to put the config name uppercase
	@echo -n "#define " >$(obj)include/config.h
	@echo    "$(@:_config=)" | tr [a-z] [A-Z] >> $(obj)include/config.h

please also remember that if you update the config you need to update the
MAKEALL too
> +	@$(MKCONFIG) -a tny_a9260 arm arm926ejs tny_a9260 calao at91
> +
Best Regards,
J.


More information about the U-Boot mailing list