diff options
| author | Andre Przywara <[email protected]> | 2021-07-12 11:06:49 +0100 |
|---|---|---|
| committer | Andre Przywara <[email protected]> | 2022-04-04 23:24:17 +0100 |
| commit | 59073573227ce7aeae3957744146cdf23849c8b9 (patch) | |
| tree | 5a71abc6fdbc4f861344877b75e850ec93cad61d /include | |
| parent | 35b786c1ba97ea2548ea1418352e02f7b9dfbc8b (diff) | |
spl: mmc: extend spl_mmc_boot_mode() to take mmc argument
Platforms can overwrite the weak definition of spl_mmc_boot_mode() to
determine where to load U-Boot proper from.
For most of them this is a trivial decision based on Kconfig variables,
but it might be desirable the probe the actual device to answer this
question.
Pass the pointer to the mmc struct to that function, so implementations
can make use of that.
Compile-tested for all users changed.
Signed-off-by: Andre Przywara <[email protected]>
Reviewed-by: Stefano Babic <[email protected]>
Reviewed-by: Ley Foon Tan <[email protected]> (for SoCFPGA)
Acked-by: Lokesh Vutla <[email protected]> (for OMAP and K3)
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/spl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/spl.h b/include/spl.h index 8ceb3c0f095..6134aba8571 100644 --- a/include/spl.h +++ b/include/spl.h @@ -14,6 +14,7 @@ #include <asm/global_data.h> #include <asm/spl.h> #include <handoff.h> +#include <mmc.h> struct blk_desc; struct image_header; @@ -375,7 +376,7 @@ u32 spl_boot_device(void); * Note: It is important to use the boot_device parameter instead of e.g. * spl_boot_device() as U-Boot is not always loaded from the same device as SPL. */ -u32 spl_mmc_boot_mode(const u32 boot_device); +u32 spl_mmc_boot_mode(struct mmc *mmc, const u32 boot_device); /** * spl_mmc_boot_partition() - MMC partition to load U-Boot from. |
