summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2015-11-05 07:46:28 -0500
committerTom Rini <trini@konsulko.com>2015-11-05 07:46:28 -0500
commit28824407f341fa424535e18e164ea94b5e2cfa8a (patch)
treee6b0e14c4845444645b28ae3a104deb3f6a8a809 /include
parent8168ee38c26be586012743ded262145081d49d05 (diff)
parenta55f28624e97e1e43ac333c39713b8b9435fcbd3 (diff)
downloadu-boot-imx-28824407f341fa424535e18e164ea94b5e2cfa8a.zip
u-boot-imx-28824407f341fa424535e18e164ea94b5e2cfa8a.tar.gz
u-boot-imx-28824407f341fa424535e18e164ea94b5e2cfa8a.tar.bz2
Merge git://git.denx.de/u-boot-socfpga
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 9fcc7a1..0e36664 100644
--- a/include/fdtdec.h
+++ b/include/fdtdec.h
@@ -490,6 +490,19 @@ s32 fdtdec_get_int(const void *blob, int node, const char *prop_name,
s32 default_val);
/**
+ * Unsigned version of fdtdec_get_int. The property must have at least
+ * 4 bytes of data. The value of the first cell is returned.
+ *
+ * @param blob FDT blob
+ * @param node node to examine
+ * @param prop_name name of property to find
+ * @param default_val default value to return if the property is not found
+ * @return unsigned integer value, if found, or default_val if not
+ */
+unsigned int fdtdec_get_uint(const void *blob, int node, const char *prop_name,
+ unsigned int default_val);
+
+/**
* Get a variable-sized number from a property
*
* This reads a number from one or more cells.