Commit 5abed9c546be4a96db1443cd3abd5f82dfbe5903

Authored by Prabhakar Kushwaha
Committed by York Sun
1 parent 6b3d588efe

driver/ifc: define nand_spl_load_image() for SPL

nand_spl_load_image() can also be used for non TPL framework.

Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>

Showing 1 changed file with 0 additions and 13 deletions Side-by-side Diff

drivers/mtd/nand/fsl_ifc_spl.c
... ... @@ -88,11 +88,7 @@
88 88 return __raw_readw((u16 *)marker) != 0xffff;
89 89 }
90 90  
91   -#ifdef CONFIG_TPL_BUILD
92 91 int nand_spl_load_image(uint32_t offs, unsigned int uboot_size, void *vdst)
93   -#else
94   -static int nand_load(uint32_t offs, unsigned int uboot_size, void *vdst)
95   -#endif
96 92 {
97 93 struct fsl_ifc *ifc = IFC_BASE_ADDR;
98 94 uchar *buf = (uchar *)CONFIG_SYS_NAND_BASE;
... ... @@ -216,15 +212,6 @@
216 212  
217 213 return 0;
218 214 }
219   -
220   -/*
221   - * Defines a static function nand_load_image() here, because non-static makes
222   - * the code too large for certain SPLs(minimal SPL, maximum size <= 4Kbytes)
223   - */
224   -#ifndef CONFIG_TPL_BUILD
225   -#define nand_spl_load_image(offs, uboot_size, vdst) \
226   - nand_load(offs, uboot_size, vdst)
227   -#endif
228 215  
229 216 /*
230 217 * Main entrypoint for NAND Boot. It's necessary that SDRAM is already