mirror of
https://xff.cz/git/u-boot/
synced 2025-10-22 10:31:56 +02:00
fdt: Don't call board_fdt_blob_setup() without OF_BOARD
At present this override function is called even when OF_BOARD is not enabled. This makes it impossible to disable this feature and in fact makes the OF_BOARD option useless. Reinstate its intended purpose, so that it is possible to switch between the appended devicetree and one provided by the board's custom function. A follower patch adds warnings for this scenario, but for now we don't have a Kconfig that definitively tells us that OF_BOARD should be used. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -1170,10 +1170,13 @@ int fdtdec_resetup(int *rescan);
|
||||
|
||||
/**
|
||||
* Board-specific FDT initialization. Returns the address to a device tree blob.
|
||||
* Called when CONFIG_OF_BOARD is defined, or if CONFIG_OF_SEPARATE is defined
|
||||
* and the board implements it.
|
||||
*
|
||||
* Called when CONFIG_OF_BOARD is defined.
|
||||
*
|
||||
* The existing devicetree is available at gd->fdt_blob
|
||||
*
|
||||
* @err internal error code if we fail to setup a DTB
|
||||
* @returns new devicetree blob pointer
|
||||
*/
|
||||
void *board_fdt_blob_setup(int *err);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user