mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
SPL: Add struct spl_boot_device parameter into spl_parse_board_header()
Add parameter spl_boot_device to spl_parse_board_header(), which allows the implementations to see from which device we are booting and do boot-device-specific checks of the image header. Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
66f874855c
commit
2e0429bcc1
22 changed files with 95 additions and 60 deletions
|
@ -14,7 +14,8 @@ int sdp_init(int controller_index);
|
|||
#ifdef CONFIG_SPL_BUILD
|
||||
#include <spl.h>
|
||||
|
||||
int spl_sdp_handle(int controller_index, struct spl_image_info *spl_image);
|
||||
int spl_sdp_handle(int controller_index, struct spl_image_info *spl_image,
|
||||
struct spl_boot_device *bootdev);
|
||||
#else
|
||||
int sdp_handle(int controller_index);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue