From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Christophe PLAGNIOL-VILLARD Date: Sat, 2 May 2009 13:40:18 +0200 Subject: [U-Boot] [PATCH v4] Marvell Kirkwood family SOC support In-Reply-To: <1241024255-14548-1-git-send-email-prafulla@marvell.com> References: <1241024255-14548-1-git-send-email-prafulla@marvell.com> Message-ID: <20090502114018.GD25959@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > + > + if ((!enable) || (bank > BANK3)) > + return 0; > + result = 0xff000000 & readl(KW_REG_CPUCS_WIN_SZ(bank)); > + result += 0x01000000; > + return result; > +} > diff --git a/cpu/arm926ejs/kirkwood/kwcore.c b/cpu/arm926ejs/kirkwood/kwcore.c > new file mode 100644 > index 0000000..9eaaab6 > --- /dev/null > +++ b/cpu/arm926ejs/kirkwood/kwcore.c please cpu.c > @@ -0,0 +1,284 @@ > +/* > + * (C) Copyright 2009 > + * Marvell Semiconductor > + * Prafulla Wadaskar > + * > + * 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 > + */ > diff --git a/cpu/arm926ejs/start.S b/cpu/arm926ejs/start.S > index ed4932a..bdbb7e0 100644 > --- a/cpu/arm926ejs/start.S > +++ b/cpu/arm926ejs/start.S > @@ -139,7 +139,7 @@ reset: > * we do sys-critical inits only at reboot, > * not when booting from ram! > */ > -#ifndef CONFIG_SKIP_LOWLEVEL_INIT > +#if !defined (CONFIG_SKIP_LOWLEVEL_INIT) || defined (CONFIG_ARCH_LOWLEVEL_INIT) > bl cpu_init_crit > #endif > > @@ -201,7 +201,7 @@ _start_armboot: > * > ************************************************************************* > */ > -#ifndef CONFIG_SKIP_LOWLEVEL_INIT > +#if !defined (CONFIG_SKIP_LOWLEVEL_INIT) || defined (CONFIG_ARCH_LOWLEVEL_INIT) NACK if you skip the lowlevel init you also skip the arch lowlevel_init if it's permannent arch init please use arch_cpu_init Best regards, J.