On Tue, Oct 24, 2023 at 06:38:43PM +0100, Caleb Connolly wrote:
> Add a new config option to allow u-boot to reuse the FDT provided by the
> previous stage bootloader when available.
> 
> On some boards the previous stage bootloader can populate
> platform-specific parts of the devicetree such as the memory node, this
> allows us to avoid hardcoding it in u-boot and instead determine it
> dynamically at runtime.
> 
> Signed-off-by: Caleb Connolly <caleb.conno...@linaro.org>
[snip]
> +/**
> + * get_prev_bl_fdt_addr - When u-boot is chainloaded, get the address
> + * of the FDT passed by the previous bootloader.
> + *
> + * Return: the address of the FDT passed by the previous bootloader
> + * or 0 if not found.
> + */
> +phys_addr_t get_prev_bl_fdt_addr(void);
> +#else
> +#define get_prev_bl_fdt_addr() 0LLU
>  #endif

Question in v1 aside, why do you need the dummy define here?

-- 
Tom

Attachment: signature.asc
Description: PGP signature

Reply via email to