From: Scott Wood Date: Mon, 13 Jan 2014 19:09:35 -0600 Subject: [U-Boot] [PATCH v6 1/2] powerpc:mpc85xx: Add ifc nand boot support for TPL/SPL In-Reply-To: <52D38777.4090800@freescale.com> References: <1389065844-5391-1-git-send-email-Po.Liu@freescale.com> <1389319859-18547-1-git-send-email-Po.Liu@freescale.com> <52D38777.4090800@freescale.com> Message-ID: <1389661775.24905.98.camel@snotra.buserror.net> 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, 2014-01-13 at 11:58 +0530, Prabhakar Kushwaha wrote: > On 1/10/2014 7:40 AM, Po Liu wrote: > > diff --git a/drivers/mtd/nand/fsl_ifc_spl.c b/drivers/mtd/nand/fsl_ifc_spl.c > > index 9de327b..6b43496 100644 > > --- a/drivers/mtd/nand/fsl_ifc_spl.c > > +++ b/drivers/mtd/nand/fsl_ifc_spl.c > > @@ -88,7 +88,11 @@ static inline int bad_block(uchar *marker, int port_size) > > return __raw_readw((u16 *)marker) != 0xffff; > > } > > > > -static void nand_load(unsigned int offs, int uboot_size, uchar *dst) > > +#ifdef CONFIG_TPL_BUILD > > +int nand_spl_load_image(uint32_t offs, unsigned int uboot_size, void *vdst) > > +#else > > +static int nand_load(uint32_t offs, unsigned int uboot_size, void *vdst) > > +#endif > > nand_load definition is > static void nand_load(unsigned int offs, int uboot_size, uchar *dst); Not anymore... > have you checked the compilation warning for non TPL framework? Are you seeing a warning? -Scott