]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sandbox: spl: Lower priority of standard loader
authorSimon Glass <sjg@chromium.org>
Sat, 18 May 2019 17:59:45 +0000 (11:59 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 10 Jul 2019 22:52:58 +0000 (16:52 -0600)
We normally want to load U-Boot from SPL, but if a board wants to do
something else, it is currently not possible since the standard loader
has the top priority. Lower it to allow other SPL_LOAD_IMAGE_METHOD()
declarations to override it.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/spl.c

index 2ca4cd6e35ece6d439e501ffed26881768caa35d..106a78ac1c1b02706519717fe66d30994e8e7fbf 100644 (file)
@@ -44,7 +44,7 @@ static int spl_board_load_image(struct spl_image_info *spl_image,
 
        return 0;
 }
-SPL_LOAD_IMAGE_METHOD("sandbox", 0, BOOT_DEVICE_BOARD, spl_board_load_image);
+SPL_LOAD_IMAGE_METHOD("sandbox", 9, BOOT_DEVICE_BOARD, spl_board_load_image);
 
 void spl_board_init(void)
 {