summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-05-07 06:12:00 +0000
committerTom Rini <trini@ti.com>2013-05-14 15:37:25 -0400
commit003efd7da48390d32956c24ab0d337ad452c83d2 (patch)
tree32a9eabb77ef680102bb1474f21493076585f70a /include
parente754da2aee394505b1d471e48398941a19bfb549 (diff)
downloadtalos-obmc-uboot-003efd7da48390d32956c24ab0d337ad452c83d2.tar.gz
talos-obmc-uboot-003efd7da48390d32956c24ab0d337ad452c83d2.zip
image: Export fit_conf_get_prop_node()
This function will be needed by signature checking code, so export it, and also add docs. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/image.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h
index 507ce4268f..6d7cd54a9c 100644
--- a/include/image.h
+++ b/include/image.h
@@ -631,6 +631,20 @@ int fit_conf_get_kernel_node(const void *fit, int noffset);
int fit_conf_get_ramdisk_node(const void *fit, int noffset);
int fit_conf_get_fdt_node(const void *fit, int noffset);
+/**
+ * fit_conf_get_prop_node() - Get node refered to by a configuration
+ * @fit: FIT to check
+ * @noffset: Offset of conf@xxx node to check
+ * @prop_name: Property to read from the conf node
+ *
+ * The conf@ nodes contain references to other nodes, using properties
+ * like 'kernel = "kernel@1"'. Given such a property name (e.g. "kernel"),
+ * return the offset of the node referred to (e.g. offset of node
+ * "/images/kernel@1".
+ */
+int fit_conf_get_prop_node(const void *fit, int noffset,
+ const char *prop_name);
+
void fit_conf_print(const void *fit, int noffset, const char *p);
int fit_check_ramdisk(const void *fit, int os_noffset,
OpenPOWER on IntegriCloud