aboutsummaryrefslogtreecommitdiff
path: root/include/spl.h
diff options
context:
space:
mode:
authorVikas Manocha2017-04-07 15:38:13 -0700
committerTom Rini2017-05-08 11:38:40 -0400
commit5bf5250e9d1555aa388a810213fd85106a60388e (patch)
tree87360d32104ad5604bf1088629803cde53e93c24 /include/spl.h
parentdc07961f5eb505bbf1d2cdfccf337b9e757ec41e (diff)
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>
Diffstat (limited to 'include/spl.h')
-rw-r--r--include/spl.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/spl.h b/include/spl.h
index 2e5b885c8d6..d1638e9d7cb 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -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