diff options
author | Tom Rini <trini@konsulko.com> | 2016-06-20 09:15:52 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-06-20 09:15:52 (GMT) |
commit | 2313d48445e59f063ec9a3b4940fe8252737db76 (patch) | |
tree | de829dc59a4b4437ddf5f3f2bde8c56ffda17395 /common | |
parent | 1a3619cf825fcef15ebe0fac6d65a9af1bc0588c (diff) | |
parent | 30780f948346436f9974fd6eae89aa2eb841b436 (diff) | |
download | u-boot-2313d48445e59f063ec9a3b4940fe8252737db76.tar.xz |
Merge git://git.denx.de/u-boot-nand-flash
Diffstat (limited to 'common')
-rw-r--r-- | common/fb_nand.c | 2 | ||||
-rw-r--r-- | common/spl/spl_nand.c | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/common/fb_nand.c b/common/fb_nand.c index e55ea38..ae34f48 100644 --- a/common/fb_nand.c +++ b/common/fb_nand.c @@ -34,7 +34,7 @@ __weak int board_fastboot_write_partition_setup(char *name) } static int fb_nand_lookup(const char *partname, char *response, - struct mtd_info **nand, + struct mtd_info **mtd, struct part_info **part) { struct mtd_device *dev; 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; } |