ofnode: Use 4K for a default tree-size

At some point it would be nice to have the ofnode API automatically
expand the tree as required, to accommodate new nodes. For now, expand
the default size so that UPL can be supported.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass 2025-01-10 17:00:09 -07:00 committed by Tom Rini
parent 9b35dbc93f
commit 6c6591c823

View File

@ -118,7 +118,7 @@ int oftree_new(oftree *treep)
return log_msg_ret("liv", ret); return log_msg_ret("liv", ret);
tree = oftree_from_np(root); tree = oftree_from_np(root);
} else { } else {
const int size = 1024; const int size = 4096;
void *fdt; void *fdt;
ret = check_tree_count(); ret = check_tree_count();