From: Haiying Wang Date: Wed, 4 May 2011 13:58:29 -0400 Subject: [U-Boot] [PATCH] powerpc/85xx: Add basic support for P1010RDB In-Reply-To: <6D6BCCB6-0B15-46FA-943C-590EEDD02D7B@kernel.crashing.org> References: <1304529799-17702-1-git-send-email-poonam.aggrwal@freescale.com> <1304530307.1946.5.camel@haiying-laptop> <6D6BCCB6-0B15-46FA-943C-590EEDD02D7B@kernel.crashing.org> Message-ID: <1304531909.1946.8.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 12:34 -0500, Kumar Gala wrote: > >> + > >> +#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. > > > > Is there a udelay that is defined for the nand_spl build? The problem is doing proper time based delay in nand_spl would require a lot more code. > No special udelay defined for nand_spl. I only saw the comments on not to define a extra udelay like that. I understood the reason but that was one of the reasons for TPL support. Haiying