summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2025-01-10 17:00:09 -0700
committerTom Rini <trini@konsulko.com>2025-01-22 15:58:03 -0600
commit6c6591c823e5a01b42ef52526656119e19fb756d (patch)
tree63e927e6c6634b84d2379dfce5f789cb069c7950
parent9b35dbc93fd40daadf137ee430641d62b6b4d4b0 (diff)
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>
-rw-r--r--drivers/core/ofnode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c
index c8161827d1c..98483c0f523 100644
--- a/drivers/core/ofnode.c
+++ b/drivers/core/ofnode.c
@@ -118,7 +118,7 @@ int oftree_new(oftree *treep)
return log_msg_ret("liv", ret);
tree = oftree_from_np(root);
} else {
- const int size = 1024;
+ const int size = 4096;
void *fdt;
ret = check_tree_count();