[U-Boot] [PATCH 6/8] Add board support for TS-7800
Michael Spang
mspang at csclub.uwaterloo.ca
Thu Mar 17 20:50:01 CET 2011
On Sat, Jan 29, 2011 at 2:39 AM, Albert ARIBAUD <albert.aribaud at free.fr> wrote:
> Le 29/01/2011 02:00, Michael Spang a écrit :
>>
>> The TS-7800 is an Orion5x implementation by Technologic Systems.
>>
>> Signed-off-by: Michael Spang<mspang at csclub.uwaterloo.ca>
>> ---
>> MAKEALL | 1 +
>> board/technologic/ts7800/Makefile | 46 +++++++++++
>> board/technologic/ts7800/ts7800.c | 36 +++++++++
>> boards.cfg | 1 +
>> include/configs/ts7800.h | 149
>> +++++++++++++++++++++++++++++++++++++
>> 5 files changed, 233 insertions(+), 0 deletions(-)
>> create mode 100644 board/technologic/ts7800/Makefile
>> create mode 100644 board/technologic/ts7800/ts7800.c
>> create mode 100644 include/configs/ts7800.h
>>
>> diff --git a/MAKEALL b/MAKEALL
>> index a732e6a..5cd4155 100755
>> --- a/MAKEALL
>> +++ b/MAKEALL
>> @@ -344,6 +344,7 @@ LIST_ARM9=" \
>> edb9315 \
>> edb9315a \
>> edminiv2 \
>> + ts7800 \
>> guruplug \
>> imx27lite \
>> jadecpu \
>> diff --git a/board/technologic/ts7800/Makefile
>> b/board/technologic/ts7800/Makefile
>> new file mode 100644
>> index 0000000..d62d0f2
>> --- /dev/null
>> +++ b/board/technologic/ts7800/Makefile
>> @@ -0,0 +1,46 @@
>> +#
>> +# Copyright (C) 2010 Michael Spang<mspang at csclub.uwaterloo.ca>
>
> Fix copyright year (holds for the whole patchset)
>
>> +# 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., 51 Franklin Street, Fifth Floor, Boston,
>> +# MA 02110-1301 USA
>> +#
>> +
>> +LIB = $(obj)lib$(BOARD).o
>> +
>> +COBJS := ts7800.o
>> +
>> +SRCS := $(COBJS:.o=.c)
>> +OBJS := $(addprefix $(obj),$(COBJS))
>> +
>> +$(LIB): $(obj).depend $(OBJS)
>> + $(AR) $(ARFLAGS) $@ $(OBJS)
>> +
>> +clean:
>> + rm -f $(OBJS)
>> +
>> +distclean: clean
>> + rm -f $(LIB) core *.bak .depend
>> +
>> +#########################################################################
>> +
>> +# defines $(obj).depend target
>> +include $(SRCTREE)/rules.mk
>> +
>> +sinclude $(obj).depend
>> +
>> +#########################################################################
>> diff --git a/board/technologic/ts7800/ts7800.c
>> b/board/technologic/ts7800/ts7800.c
>> new file mode 100644
>> index 0000000..8d4ba73
>> --- /dev/null
>> +++ b/board/technologic/ts7800/ts7800.c
>> @@ -0,0 +1,36 @@
>> +/*
>> + * Copyright (C) 2010 Michael Spang<mspang at csclub.uwaterloo.ca>
>> + *
>> + * 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., 51 Franklin Street, Fifth Floor, Boston,
>> + * MA 02110-1301 USA
>> + */
>> +
>> +#include<common.h>
>> +
>> +DECLARE_GLOBAL_DATA_PTR;
>> +
>> +int board_init(void)
>> +{
>> + // Technologic's MBR uses machine type 526, however the mainline
>> + // machine type is 1652. Technologic's kernel sources will need
>> + // patching to boot from U-Boot.
>
> ... or the machine type can be changed to 526 in the U-boot boot script
> before starting the Technologic modified Linux.
Good to know, I've documented this in the README.
Michael
More information about the U-Boot
mailing list