aboutsummaryrefslogtreecommitdiff
path: root/include/spl.h
diff options
context:
space:
mode:
authorSean Anderson <seanga2@gmail.com>2023-10-14 16:48:02 -0400
committerTom Rini <trini@konsulko.com>2023-10-17 20:50:52 -0400
commit6ba8ecaa96cc4ede483a353b18c19715b27ba19a (patch)
tree3b45a725d78f6f8fc331cdcac3897b81105737d6 /include/spl.h
parent6c5d0d9398cdfa2af7bbe1b98f0d46295e71fb62 (diff)
downloadu-boot-6ba8ecaa96cc4ede483a353b18c19715b27ba19a.zip
u-boot-6ba8ecaa96cc4ede483a353b18c19715b27ba19a.tar.gz
u-boot-6ba8ecaa96cc4ede483a353b18c19715b27ba19a.tar.bz2
test: spl: Add a test for the MMC load method
Add a test for the MMC load method. This shows the general shape of tests to come: The main test function calls do_spl_test_load with an appropriate callback to write the image to the medium. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/spl.h')
-rw-r--r--include/spl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h
index 03a4a83..ad1543a 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -673,6 +673,10 @@ static inline const char *spl_loader_name(const struct spl_image_loader *loader)
}
#endif
+#define SPL_LOAD_IMAGE_GET(_priority, _boot_device, _method) \
+ ll_entry_get(struct spl_image_loader, \
+ _boot_device ## _priority ## _method, spl_image_loader)
+
/* SPL FAT image functions */
/**