From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 18 Jun 2012 10:59:33 -0700 Subject: [U-Boot] [PATCH 01/11] snowball: Add support for ux500 based snowball board In-Reply-To: <1340037344-2497-2-git-send-email-mathieu.poirier@linaro.org> References: <1340037344-2497-1-git-send-email-mathieu.poirier@linaro.org> <1340037344-2497-2-git-send-email-mathieu.poirier@linaro.org> Message-ID: <20120618175933.GC22301@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Jun 18, 2012 at 10:35:34AM -0600, mathieu.poirier at linaro.org wrote: [snip] > diff --git a/include/configs/snowball.h b/include/configs/snowball.h > new file mode 100644 > index 0000000..845db29 > --- /dev/null > +++ b/include/configs/snowball.h > @@ -0,0 +1,274 @@ > +/* > + * Copyright (C) ST-Ericsson SA 2009 > + * > + * 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 > + */ > + > +#ifndef __CONFIG_H > +#define __CONFIG_H > + > +/* > + * #define DEBUG 1 > + */ > + > +#define CONFIG_SKIP_LOWLEVEL_INIT 1 > +#define CONFIG_SNOWBALL 1 > +#define CONFIG_SYS_ICACHE_OFF 1 > +#define CONFIG_SYS_DCACHE_OFF 1 Whitespace and just do '#define CONFIG_FOO' not '#define CONFIG_FOO 1'. [snip] > +#ifdef CONFIG_BOOT_SRAM > +#define CONFIG_ENV_SIZE (32*1024) > +#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 64*1024) > +#else > +#define CONFIG_ENV_SIZE (128*1024) > +#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 256*1024) > +#endif I assume you build a U-Boot for an initial loader and then a fuller U-Boot that runs in DRAM? This is what SPL is for and I hope you will convert at some point :) [snip] > +/* > + * Stack sizes > + * > + * The stack sizes are set up in start.S using the settings below > + */ > + > +#ifdef CONFIG_USE_IRQ > +#define CONFIG_STACKSIZE_IRQ (4*1024) /* IRQ stack */ > +#define CONFIG_STACKSIZE_FIQ (4*1024) /* FIQ stack */ > +#endif I don't believe CONFIG_USE_IRQ was set, so these shouldn't be here. -- Tom