summaryrefslogtreecommitdiff
path: root/include/fdt_support.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-10-23 18:58:49 -0600
committerSimon Glass <sjg@chromium.org>2014-11-21 04:43:17 +0100
commita9e8e29101adcb0bfa1c39baba5fce6b9848678d (patch)
treeecd51764dc3cf52f448b55212f2171775b9a91c7 /include/fdt_support.h
parent4ba98dc269d6a7731549669587784b3a5ae637f3 (diff)
fdt: Export the fdt_find_or_add_subnode() function
This function is useful for ensuring that a node exists. Export it so it can be used more widely. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Anatolij Gustschin <agust@denx.de> Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'include/fdt_support.h')
-rw-r--r--include/fdt_support.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h
index 2e0adf3284c..9ada2e49bda 100644
--- a/include/fdt_support.h
+++ b/include/fdt_support.h
@@ -64,6 +64,8 @@ static inline void fdt_fixup_crypto_node(void *blob, int sec_rev) {}
int fdt_pci_dma_ranges(void *blob, int phb_off, struct pci_controller *hose);
#endif
+int fdt_find_or_add_subnode(void *fdt, int parentoffset, const char *name);
+
/**
* Add board-specific data to the FDT before booting the OS.
*