From 3b595da441cf38d1905684dea28767afeb732838 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Wed, 10 Jan 2018 11:34:37 +0100 Subject: fdtdec: allow board to provide fdt for CONFIG_OF_SEPARATE Similar to CONFIG_OF_BOARD, but in this case the fdt is still built by u-boot build. This allows the board to patch the fdt, etc. In the specific case of dragonboard 410c, we pass the u-boot generated fdt to the previous stage of bootloader (by embedding it in the u-boot.img that is loaded by lk/aboot), which patches the fdt and passes it back to u-boot. Signed-off-by: Rob Clark [trini: Update board_fdt_blob_setup #if check] Signed-off-by: Tom Rini --- include/fdtdec.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/fdtdec.h') diff --git a/include/fdtdec.h b/include/fdtdec.h index 0fb3e07212..4afb9ac501 100644 --- a/include/fdtdec.h +++ b/include/fdtdec.h @@ -990,7 +990,8 @@ int fdtdec_setup(void); /** * Board-specific FDT initialization. Returns the address to a device tree blob. - * Called when CONFIG_OF_BOARD is defined. + * Called when CONFIG_OF_BOARD is defined, or if CONFIG_OF_SEPARATE is defined + * and the board implements it. */ void *board_fdt_blob_setup(void); -- cgit v1.2.1