summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGerald Van Baren <gvb@unssw.com>2012-11-12 23:13:54 -0500
committerGerald Van Baren <gvb@unssw.com>2012-11-12 23:13:54 -0500
commit7cde397b21a347134a39c40e24355a0e438adae3 (patch)
treef5f8872b0d4789e80128331139198d4e80f42479 /include
parent5921f6a2924827548caf55b28a6827b9d856e37f (diff)
downloadtalos-obmc-uboot-7cde397b21a347134a39c40e24355a0e438adae3.tar.gz
talos-obmc-uboot-7cde397b21a347134a39c40e24355a0e438adae3.zip
fdt: Export fdtdec_lookup() and fix the name
The name of this function is not consistent, so fix it, and export the function for external use. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/fdtdec.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/fdtdec.h b/include/fdtdec.h
index e70714b2f2..f8a4e94186 100644
--- a/include/fdtdec.h
+++ b/include/fdtdec.h
@@ -110,6 +110,19 @@ int fdtdec_next_alias(const void *blob, const char *name,
enum fdt_compat_id id, int *upto);
/**
+ * Find the compatible ID for a given node.
+ *
+ * Generally each node has at least one compatible string attached to it.
+ * This function looks through our list of known compatible strings and
+ * returns the corresponding ID which matches the compatible string.
+ *
+ * @param blob FDT blob to use
+ * @param node Node containing compatible string to find
+ * @return compatible ID, or COMPAT_UNKNOWN if we cannot find a match
+ */
+enum fdt_compat_id fdtdec_lookup(const void *blob, int node);
+
+/**
* Find the next compatible node for a peripheral.
*
* Do the first call with node = 0. This function will return a pointer to
OpenPOWER on IntegriCloud