summaryrefslogtreecommitdiff
path: root/common/spl/spl.c
diff options
context:
space:
mode:
authorLadislav Michl <ladis@linux-mips.org>2016-07-12 20:28:13 +0200
committerTom Rini <trini@konsulko.com>2016-07-22 09:53:00 -0400
commitbf55cd4f3e3bc0ebf92c81bde1921f983e999451 (patch)
tree9d500618f6927061de9b642ca436df58b702f093 /common/spl/spl.c
parent6f4e7d3c75a81decc20de0218729e9770448ffc0 (diff)
downloadu-boot-imx-bf55cd4f3e3bc0ebf92c81bde1921f983e999451.zip
u-boot-imx-bf55cd4f3e3bc0ebf92c81bde1921f983e999451.tar.gz
u-boot-imx-bf55cd4f3e3bc0ebf92c81bde1921f983e999451.tar.bz2
spl: support loading from UBI volumes
Add support for loading from UBI volumes on the top of NAND and OneNAND. Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'common/spl/spl.c')
-rw-r--r--common/spl/spl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c
index 14320fe..e6a1d79 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -330,6 +330,11 @@ static int spl_load_image(u32 boot_device)
case BOOT_DEVICE_MMC2_2:
return spl_mmc_load_image(boot_device);
#endif
+#ifdef CONFIG_SPL_UBI
+ case BOOT_DEVICE_NAND:
+ case BOOT_DEVICE_ONENAND:
+ return spl_ubi_load_image(boot_device);
+#else
#ifdef CONFIG_SPL_NAND_SUPPORT
case BOOT_DEVICE_NAND:
return spl_nand_load_image();
@@ -338,6 +343,7 @@ static int spl_load_image(u32 boot_device)
case BOOT_DEVICE_ONENAND:
return spl_onenand_load_image();
#endif
+#endif
#ifdef CONFIG_SPL_NOR_SUPPORT
case BOOT_DEVICE_NOR:
return spl_nor_load_image();