From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Date: Sun, 01 Nov 2009 17:07:31 -0600 Subject: [U-Boot] [PATCH-ARM 3/3] Add Support for the SBC2440-II Board In-Reply-To: <4AEDDBFB.70703@fearnside-systems.co.uk> References: <4AEDDBFB.70703@fearnside-systems.co.uk> Message-ID: <4AEE14B3.9030302@windriver.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de kevin.morfitt at fearnside-systems.co.uk wrote: > This patch adds support for the Embest SBC2440-II Board. > > Tested on an Embest SBC2440-II Board with local u-boot patches as I don't have > any s3c2400 or s3c2410 boards but need this patch applying before I can submit > patches for the SBC2440-II Board. Also, ran MAKEALL for all ARM9 targets and no > new warnings or errors were found. Please change this commit to describe the new board in general terms. Add a link to the product if it is long lived. The testing results are more appropriate for the intro patch. 0 of n that git send-email creates. > > Signed-off-by: Kevin Morfitt > --- > MAINTAINERS | 4 + > MAKEALL | 1 + > Makefile | 3 + > board/embest/sbc2440ii/Makefile | 55 +++++++ > board/embest/sbc2440ii/config.mk | 25 +++ > board/embest/sbc2440ii/lowlevel_init.S | 219 +++++++++++++++++++++++++++ > board/embest/sbc2440ii/sbc2440ii.c | 122 +++++++++++++++ > cpu/arm920t/s3c24x0/timer.c | 1 + > include/configs/sbc2440ii.h | 254 ++++++++++++++++++++++++++++++++ > 9 files changed, 684 insertions(+), 0 deletions(-) > create mode 100644 board/embest/sbc2440ii/Makefile > create mode 100644 board/embest/sbc2440ii/config.mk > create mode 100644 board/embest/sbc2440ii/lowlevel_init.S > create mode 100644 board/embest/sbc2440ii/sbc2440ii.c > create mode 100644 include/configs/sbc2440ii.h > > diff --git a/MAINTAINERS b/MAINTAINERS > index d70a9d2..65f8dfe 100644 > --- a/MAINTAINERS > new file mode 100644 > index 0000000..95f49f8 > --- /dev/null > +++ b/board/embest/sbc2440ii/lowlevel_init.S > @@ -0,0 +1,219 @@ > +/* > + * Memory Setup stuff - taken from blob memsetup.S > + * > + * Copyright (C) 1999 2000 2001 Erik Mouw (J.A.K.Mouw at its.tudelft.nl) and > + * Jan-Derk Bakker (J.D.Bakker at its.tudelft.nl) > + * > + * Modified for the Samsung SMDK2410 by > + * (C) Copyright 2002 > + * David Mueller, ELSOFT AG, > + * > + * Modified for the friendly-arm SBC-2410X by > + * (C) Copyright 2005 > + * JinHua Luo, GuangDong Linux Center, > + * > + * Modified for the Embest SBC2440-II by > + * (C) Copyright 2009 > + * Kevin Morfitt, Fearnside Systems Ltd, > + * > + * 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 > +#include > + > +/* > + * Taken from linux/arch/arm/boot/compressed/head-s3c2410.S > + * > + * Copyright (C) 2002 Samsung Electronics SW.LEE > + */ This copyright should go with the others > + > +#define BWSCON 0x48000000 > + > +#define DW8 (0x0) > +#define DW16 (0x1) > +#define DW32 (0x2) > +#define WAIT (0x1 << 2) > +#define UBLB (0x1 << 3) > + > diff --git a/board/embest/sbc2440ii/sbc2440ii.c b/board/embest/sbc2440ii/sbc2440ii.c > new file mode 100644 > index 0000000..7c793e9 > --- /dev/null > +++ b/board/embest/sbc2440ii/sbc2440ii.c > @@ -0,0 +1,122 @@ > +/* > + * (C) Copyright 2002 > + * Sysgo Real-Time Solutions, GmbH > + * Marius Groeger > + * > + * (C) Copyright 2002 > + * David Mueller, ELSOFT AG, > + * > + * (C) Copyright 2005 > + * JinHua Luo, GuangDong Linux Center, > + * > + * Modified for the Embest SBC2440-II by > + * (C) Copyright 2009 > + * Kevin Morfitt, Fearnside Systems Ltd, > + * > + * 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 > +#include > +#include > +#include > + > +DECLARE_GLOBAL_DATA_PTR; > + > +/* > + * Miscellaneous platform dependent initialisations spelling, initializations > + */ > + > +static inline void pll_settle_delay(unsigned long loops) > +{ > + __asm__ volatile ("1:\n" Only minor changes. Tom