summaryrefslogtreecommitdiff
path: root/common/spl/spl.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2012-08-27 12:50:59 +0200
committerTom Rini <trini@ti.com>2012-09-27 11:20:27 -0700
commit33d346464adb8dc206d1f9adf73bdfe2ed959502 (patch)
tree293d8f1a0fcd7c448b96aacd19261bcfbe21f006 /common/spl/spl.c
parent95a372b83685f99b6c947a6e0da55a6c474ab870 (diff)
downloadu-boot-imx-33d346464adb8dc206d1f9adf73bdfe2ed959502.zip
u-boot-imx-33d346464adb8dc206d1f9adf73bdfe2ed959502.tar.gz
u-boot-imx-33d346464adb8dc206d1f9adf73bdfe2ed959502.tar.bz2
SPL: Add NOR flash booting support
SPL NOR flash booting support is quite simple. Only copying of the images is needed. On MPC5xxx we need to make sure to only use the standard memcpy() implementation and not the MPC5xxx specific one. As the MPC5xxx version has some complexity which is not needed for this SPL booting. Signed-off-by: Stefan Roese <sr@denx.de> Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'common/spl/spl.c')
-rw-r--r--common/spl/spl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c
index 3b4fcba..3156401 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -142,6 +142,11 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
spl_nand_load_image();
break;
#endif
+#ifdef CONFIG_SPL_NOR_SUPPORT
+ case BOOT_DEVICE_NOR:
+ spl_nor_load_image();
+ break;
+#endif
#ifdef CONFIG_SPL_YMODEM_SUPPORT
case BOOT_DEVICE_UART:
spl_ymodem_load_image();