summaryrefslogtreecommitdiffstats
path: root/include/fdtdec.h
diff options
context:
space:
mode:
authorGabe Black <gabeblack@chromium.org>2012-10-25 16:31:04 +0000
committerGerald Van Baren <gvb@unssw.com>2012-11-12 23:14:57 -0500
commit79289c0b5ff4a8c7869d7ca629cddc660dd06095 (patch)
tree8904a22ba56463d5ed9b3aef3f15765eded700d4 /include/fdtdec.h
parent7cde397b21a347134a39c40e24355a0e438adae3 (diff)
downloadblackbird-obmc-uboot-79289c0b5ff4a8c7869d7ca629cddc660dd06095.tar.gz
blackbird-obmc-uboot-79289c0b5ff4a8c7869d7ca629cddc660dd06095.zip
fdt: Add function to read boolean property
Signed-off-by: Vincent Palatin <vpalatin@chromium.org> Commit-Ready: Vincent Palatin <vpalatin@chromium.org> Commit-Ready: Gabe Black <gabeblack@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/fdtdec.h')
-rw-r--r--include/fdtdec.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/fdtdec.h b/include/fdtdec.h
index f8a4e94186..a37cf54a93 100644
--- a/include/fdtdec.h
+++ b/include/fdtdec.h
@@ -399,6 +399,16 @@ int fdtdec_get_config_int(const void *blob, const char *prop_name,
int default_val);
/**
+ * Look in the FDT for a config item with the given name
+ * and return whether it exists.
+ *
+ * @param blob FDT blob
+ * @param prop_name property name to look up
+ * @return 1, if it exists, or 0 if not
+ */
+int fdtdec_get_config_bool(const void *blob, const char *prop_name);
+
+/**
* Look in the FDT for a config item with the given name and return its value
* as a string.
*
OpenPOWER on IntegriCloud