[U-Boot] [PATCH] AT91: Added support for taskit Stamp9G20 and PortuxG20
Achim Ehrlich
aehrlich at taskit.de
Mon Feb 22 13:35:58 CET 2010
Hello Detlef,
>> Signed-off-by: Achim Ehrlich <aehrlich at taskit.de>
>> ---
>> Makefile | 9 ++
>> board/taskit/stamp9G20/Makefile | 56 ++++++++++
>> board/taskit/stamp9G20/config.mk | 1 +
>> board/taskit/stamp9G20/led.c | 35 ++++++
>> board/taskit/stamp9G20/partition.c | 40 +++++++
>> board/taskit/stamp9G20/stamp9G20.c | 200 ++++++++++++++++++++++++++++++++++++
>> include/configs/stamp9G20.h | 197 +++++++++++++++++++++++++++++++++++
>> 7 files changed, 538 insertions(+), 0 deletions(-)
>> create mode 100644 board/taskit/stamp9G20/Makefile
>> create mode 100644 board/taskit/stamp9G20/config.mk
>> create mode 100644 board/taskit/stamp9G20/led.c
>> create mode 100644 board/taskit/stamp9G20/partition.c
>> create mode 100644 board/taskit/stamp9G20/stamp9G20.c
>> create mode 100644 include/configs/stamp9G20.h
>>
>> diff --git a/Makefile b/Makefile
>> index 524b9da..ef1a7d4 100644
>> --- a/Makefile
>> +++ b/Makefile
>> @@ -2906,6 +2906,15 @@ TNY_A9260_config : unconfig
>> @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
>> @$(MKCONFIG) -a tny_a9260 arm arm926ejs tny_a9260 calao at91
>>
>> +portuxG20_config \
>> +stamp9G20_config : unconfig
>> + @mkdir -p $(obj)include
>> + @if [ "$(findstring portux,$@)" ] ; then \
>> + echo "#define CONFIG_PORTUXG20 1" >$(obj)include/config.h; \
>> + $(XECHO) "... PortuxG20";\
>> + fi;
>> + @$(MKCONFIG) -a stamp9G20 arm arm926ejs stamp9G20 taskit at91
>> +
>> ########################################################################
>> ## ARM Integrator boards - see doc/README-integrator for more info.
>> integratorap_config \
>> diff --git a/board/taskit/stamp9G20/Makefile b/board/taskit/stamp9G20/Makefile
>> new file mode 100644
>> index 0000000..ef82428
>> --- /dev/null
>> +++ b/board/taskit/stamp9G20/Makefile
>> @@ -0,0 +1,56 @@
>> +#
>> +# (C) Copyright 2003-2008
>> +# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
>> +#
>> +# (C) Copyright 2008
>> +# Stelian Pop <stelian.pop at leadtechdesign.com>
>> +# Lead Tech Design <www.leadtechdesign.com>
>
> Well actually I am not a fan of including all these copyrights in a file
> which has so little content - so I'd vote to remove them and include
> your own copyright.
>
> But if for some reason the copyrights are not removed, then please at
> least add yourself in.
>
>
> [...]
OK.
>
>> diff --git a/board/taskit/stamp9G20/led.c b/board/taskit/stamp9G20/led.c
>> new file mode 100644
>> index 0000000..dc6ac63
>> --- /dev/null
>> +++ b/board/taskit/stamp9G20/led.c
>> @@ -0,0 +1,35 @@
>> +/*
>> + * (C) Copyright 2007-2008
>> + * Stelian Pop <stelian.pop at leadtechdesign.com>
>> + * Lead Tech Design <www.leadtechdesign.com>
>
> Dito.
I haven't changed one bit in this file, I really do not feel like even adding my
copyright.
>
>> + *
>> + * 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);
>> +}
>> diff --git a/board/taskit/stamp9G20/partition.c b/board/taskit/stamp9G20/partition.c
>> new file mode 100644
>> index 0000000..2629c67
>> --- /dev/null
>> +++ b/board/taskit/stamp9G20/partition.c
>> @@ -0,0 +1,40 @@
>> +/*
>> + * (C) Copyright 2008
>> + * Ulf Samuelsson <ulf at atmel.com>
>
> Dito.
>
>> diff --git a/board/taskit/stamp9G20/stamp9G20.c b/board/taskit/stamp9G20/stamp9G20.c
>> new file mode 100644
>> index 0000000..28cd8b1
>> --- /dev/null
>> +++ b/board/taskit/stamp9G20/stamp9G20.c
>> @@ -0,0 +1,200 @@
>> +/*
>> + * (C) Copyright 2007-2008
>> + * Stelian Pop <stelian.pop at leadtechdesign.com>
>> + * Lead Tech Design <www.leadtechdesign.com>
>> + *
>> + * Achim Ehrlich <aehrlich at taskit.de>
>> + * taskit GmbH <www.taskit.de>
>
> Ok, this time you added your name - although I would have expected a
> year.
>
Hmm, right.
Kind regards
Achim
--
product manager
email:aehrlich at taskit.de
Tel.: ++49 30 611295-25
Fax: ++49 30 611295-11
--
taskit GmbH
Seelenbinderstr. 33 | D-12555 Berlin
web:http://www.taskit.de
Amtsgericht Charlottenburg: 93HRB39014
Managing director: Thorsten Raulfs
--
More information about the U-Boot
mailing list