diff options
author | Tom Rini <trini@konsulko.com> | 2016-06-20 05:15:52 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-06-20 05:15:52 -0400 |
commit | 2313d48445e59f063ec9a3b4940fe8252737db76 (patch) | |
tree | de829dc59a4b4437ddf5f3f2bde8c56ffda17395 /common/spl/spl_nand.c | |
parent | 1a3619cf825fcef15ebe0fac6d65a9af1bc0588c (diff) | |
parent | 30780f948346436f9974fd6eae89aa2eb841b436 (diff) | |
download | u-boot-imx-2313d48445e59f063ec9a3b4940fe8252737db76.zip u-boot-imx-2313d48445e59f063ec9a3b4940fe8252737db76.tar.gz u-boot-imx-2313d48445e59f063ec9a3b4940fe8252737db76.tar.bz2 |
Merge git://git.denx.de/u-boot-nand-flash
Diffstat (limited to 'common/spl/spl_nand.c')
-rw-r--r-- | common/spl/spl_nand.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/spl/spl_nand.c b/common/spl/spl_nand.c index 7cf0d1b..0e35e0f 100644 --- a/common/spl/spl_nand.c +++ b/common/spl/spl_nand.c @@ -134,6 +134,13 @@ int spl_nand_load_image(void) #endif /* Load u-boot */ err = spl_nand_load_element(CONFIG_SYS_NAND_U_BOOT_OFFS, header); +#ifdef CONFIG_SYS_NAND_U_BOOT_OFFS_REDUND +#if CONFIG_SYS_NAND_U_BOOT_OFFS != CONFIG_SYS_NAND_U_BOOT_OFFS_REDUND + if (err) + err = spl_nand_load_element(CONFIG_SYS_NAND_U_BOOT_OFFS_REDUND, + header); +#endif +#endif nand_deselect(); return err; } |