summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/armv7/omap-common/spl.c
diff options
context:
space:
mode:
authorMatt Porter <mporter@ti.com>2012-01-31 12:03:57 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-03-26 23:09:25 +0200
commit24de357a30dbabf8e0eb5acb43397851b0bc53fb (patch)
treef530b6ead4dbc66adb6af50936757e35289dcdb0 /arch/arm/cpu/armv7/omap-common/spl.c
parent71e6840279e3da7f5c0c1f8002bb9943bd90aec6 (diff)
downloadblackbird-obmc-uboot-24de357a30dbabf8e0eb5acb43397851b0bc53fb.tar.gz
blackbird-obmc-uboot-24de357a30dbabf8e0eb5acb43397851b0bc53fb.zip
SPL: Add YMODEM over UART load support
Adds support for loading U-Boot from UART using YMODEM protocol. If YMODEM support is enabled in SPL and the romcode indicates that SPL loaded via UART then SPL will wait for start of a YMODEM transfer via the console port. Signed-off-by: Matt Porter <mporter@ti.com> Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'arch/arm/cpu/armv7/omap-common/spl.c')
-rw-r--r--arch/arm/cpu/armv7/omap-common/spl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/omap-common/spl.c b/arch/arm/cpu/armv7/omap-common/spl.c
index 3a2d957731..99bb382750 100644
--- a/arch/arm/cpu/armv7/omap-common/spl.c
+++ b/arch/arm/cpu/armv7/omap-common/spl.c
@@ -133,6 +133,11 @@ void board_init_r(gd_t *id, ulong dummy)
spl_nand_load_image();
break;
#endif
+#ifdef CONFIG_SPL_YMODEM_SUPPORT
+ case BOOT_DEVICE_UART:
+ spl_ymodem_load_image();
+ break;
+#endif
default:
printf("SPL: Un-supported Boot Device - %d!!!\n", boot_device);
hang();
OpenPOWER on IntegriCloud