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>
This commit is contained in:
Sean Anderson 2023-10-14 16:48:02 -04:00 committed by Tom Rini
parent 6c5d0d9398
commit 6ba8ecaa96
6 changed files with 137 additions and 5 deletions

View file

@ -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 */
/**