summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEnrico Jorns <ejo@pengutronix.de>2018-07-31 12:44:27 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2018-08-08 09:21:48 +0200
commit529643163c5ad8f2220355b7d961a5dc714da5a9 (patch)
tree0ddfd2679b0dd6275a8047963d7cb6e8d5d9b65b
parent4ae6397dc15d2025fd5fa890fda58e141bc46f1b (diff)
downloadbarebox-529643163c5ad8f2220355b7d961a5dc714da5a9.tar.gz
bootm: allow booting SoCFPGA prebootloader image
A prebootloader image might also contain a fully working barebox and allows to be booted second stage. Thus we add a handler here to give it a try. Signed-off-by: Enrico Jorns <ejo@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/lib32/bootm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/lib32/bootm.c b/arch/arm/lib32/bootm.c
index 63713ac..4cf570e 100644
--- a/arch/arm/lib32/bootm.c
+++ b/arch/arm/lib32/bootm.c
@@ -434,6 +434,12 @@ static struct image_handler barebox_handler = {
.filetype = filetype_arm_barebox,
};
+static struct image_handler socfpga_xload_handler = {
+ .name = "SoCFPGA prebootloader image",
+ .bootm = do_bootm_linux,
+ .filetype = filetype_socfpga_xload,
+};
+
#include <aimage.h>
static int aimage_load_resource(int fd, struct resource *r, void* buf, int ps)
@@ -628,6 +634,7 @@ static int armlinux_register_image_handler(void)
globalvar_add_simple_bool("bootm.boot_atag", &bootm_boot_atag);
register_image_handler(&barebox_handler);
+ register_image_handler(&socfpga_xload_handler);
register_image_handler(&uimage_handler);
register_image_handler(&rawimage_handler);
register_image_handler(&zimage_handler);