From: Haiying Wang Date: Wed, 4 May 2011 13:31:47 -0400 Subject: [U-Boot] [PATCH] powerpc/85xx: Add basic support for P1010RDB In-Reply-To: <1304529799-17702-1-git-send-email-poonam.aggrwal@freescale.com> References: <1304529799-17702-1-git-send-email-poonam.aggrwal@freescale.com> Message-ID: <1304530307.1946.5.camel@haiying-laptop> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, 2011-05-04 at 22:53 +0530, Poonam Aggrwal wrote: > +sinclude $(obj).depend > + > +######################################################################### > diff --git a/nand_spl/board/freescale/p1010rdb/nand_boot.c b/nand_spl/board/freescale/p1010rdb/nand_boot.c > new file mode 100644 > index 0000000..f0de279 > --- /dev/null > +++ b/nand_spl/board/freescale/p1010rdb/nand_boot.c > @@ -0,0 +1,119 @@ > +/* > + * Copyright 2011 Freescale Semiconductor, Inc. > + * > + * 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 > +#include > +#include > +#include > +#include > +#include > + > +#define udelay(x) {int i, j; for (i = 0; i < x; i++) for (j = 0; j < 10000; j++); } There were many comments on this udelay before, we should not use this define, but use the udelay() which u-boot provides.