mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
spl: make image arg or fdt blob address reconfigurable
At present fdt blob or argument address being passed to kernel is fixed at compile time using macro CONFIG_SYS_SPL_ARGS_ADDR. FDT blob from different media like nand, nor flash are copied to the address pointed by the macro. The problem is, it makes args/fdt blob compulsory to copy which is not required in cases like for NOR Flash. This patch removes this limitation. Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
This commit is contained in:
@@ -27,6 +27,7 @@ struct spl_image_info {
|
||||
ulong entry_point;
|
||||
u32 size;
|
||||
u32 flags;
|
||||
void *arg;
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -106,10 +107,8 @@ int spl_board_ubi_load_image(u32 boot_device);
|
||||
* This jumps into a Linux kernel using the information in @spl_image.
|
||||
*
|
||||
* @spl_image: Image description to set up
|
||||
* @arg: Argument to pass to Linux (typically a device tree pointer)
|
||||
*/
|
||||
void __noreturn jump_to_image_linux(struct spl_image_info *spl_image,
|
||||
void *arg);
|
||||
void __noreturn jump_to_image_linux(struct spl_image_info *spl_image);
|
||||
|
||||
/**
|
||||
* spl_start_uboot() - Check if SPL should start the kernel or U-Boot
|
||||
|
Reference in New Issue
Block a user