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 <common.h> > +#include <mpc85xx.h> > +#include <asm/io.h> > +#include <ns16550.h> > +#include <nand.h> > +#include <asm/mmu.h> > +#include <asm/immap_85xx.h> > +#include <asm/fsl_ddr_sdram.h> > +#include <asm/fsl_law.h> > + > +#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.
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot