Make SPL add the devicetree of U-Boot proper to the transfer list from the DDR loader and pass the list on to U-Boot proper in registers. U-Boot proper then takes its devicetree from the transfer list and applies the DRAM description overlay to it. As whenever its devicetree comes from the bloblist, it also sets $fdt_addr to that devicetree.
Also make U-Boot proper require the transfer list. Without it, U-Boot would use a DRAM size that may be wrong and would not reserve the memory that the DRAM controller uses. U-Boot proper started as BL33 by the platform BL2 instead of SPL then needs a BL2 that passes a transfer list with a devicetree too. Signed-off-by: David Lechner <[email protected]> --- configs/mt8189.config | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/mt8189.config b/configs/mt8189.config index 356673af059..06683b10945 100644 --- a/configs/mt8189.config +++ b/configs/mt8189.config @@ -14,6 +14,7 @@ CONFIG_FIT=y CONFIG_BOOTSTD_FULL=y # CONFIG_BOARD_INIT is not set CONFIG_BLOBLIST=y +CONFIG_BLOBLIST_PASSAGE_MANDATORY=y CONFIG_CMD_CLK=y CONFIG_CMD_GPIO=y CONFIG_CMD_GPT=y @@ -99,3 +100,5 @@ CONFIG_SPL_LOAD_FIT=y CONFIG_SPL_ATF=y CONFIG_SPL_ATF_NO_PLATFORM_PARAM=y CONFIG_SPL_BLOBLIST_ALLOC=y +CONFIG_SPL_BLOBLIST_PASS_REGS=y +CONFIG_SPL_BLOBLIST_FDT=y -- 2.53.0
