diff options
author | Enric Balletbo i Serra <eballetbo@iseebcn.com> | 2013-02-07 23:14:48 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-03-11 11:05:49 -0400 |
commit | 6000992e265f507a18b0dcbcf2a89179822b42c4 (patch) | |
tree | d82925cbd37b98c2bc1e7d6f6cb035391eea3476 /common/spl/spl.c | |
parent | f99613782a41dbf1b91c19684fe9556ed02ec6d1 (diff) | |
download | u-boot-imx-6000992e265f507a18b0dcbcf2a89179822b42c4.zip u-boot-imx-6000992e265f507a18b0dcbcf2a89179822b42c4.tar.gz u-boot-imx-6000992e265f507a18b0dcbcf2a89179822b42c4.tar.bz2 |
SPL: ONENAND: Support SPL to boot u-boot from OneNAND.
This patch will allow use SPL to boot an u-boot from the OneNAND.
Tested with IGEPv2 board with a OneNAND from Numonyx
Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
[trini: Add <spl.h> hunk to fix warning]
Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'common/spl/spl.c')
-rw-r--r-- | common/spl/spl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c index 6a5a136..6715e0d 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -197,6 +197,11 @@ void board_init_r(gd_t *dummy1, ulong dummy2) spl_nand_load_image(); break; #endif +#ifdef CONFIG_SPL_ONENAND_SUPPORT + case BOOT_DEVICE_ONENAND: + spl_onenand_load_image(); + break; +#endif #ifdef CONFIG_SPL_NOR_SUPPORT case BOOT_DEVICE_NOR: spl_nor_load_image(); |