aboutsummaryrefslogtreecommitdiff
path: root/include/fdtdec.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-08-12 16:00:50 -0400
committerTom Rini <trini@konsulko.com>2016-08-12 16:00:50 -0400
commitf4b0df1823921ad3bc39820466e9c5201cef6210 (patch)
treefa7ae4f3ac018bc010b7910da55ebb76e3639489 /include/fdtdec.h
parentab65006b08c5a2d022b1ce43581e555c82926cd4 (diff)
parentb647f55420310beb8f576e23f3b6a69745126f71 (diff)
downloadu-boot-f4b0df1823921ad3bc39820466e9c5201cef6210.zip
u-boot-f4b0df1823921ad3bc39820466e9c5201cef6210.tar.gz
u-boot-f4b0df1823921ad3bc39820466e9c5201cef6210.tar.bz2
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'include/fdtdec.h')
-rw-r--r--include/fdtdec.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/include/fdtdec.h b/include/fdtdec.h
index 70ea0bf..aeb6bab 100644
--- a/include/fdtdec.h
+++ b/include/fdtdec.h
@@ -297,11 +297,13 @@ int fdtdec_next_compatible_subnode(const void *blob, int node,
* @param na the number of cells used to represent an address
* @param ns the number of cells used to represent a size
* @param sizep a pointer to store the size into. Use NULL if not required
+ * @param translate Indicates whether to translate the returned value
+ * using the parent node's ranges property.
* @return address, if found, or FDT_ADDR_T_NONE if not
*/
fdt_addr_t fdtdec_get_addr_size_fixed(const void *blob, int node,
const char *prop_name, int index, int na, int ns,
- fdt_size_t *sizep);
+ fdt_size_t *sizep, bool translate);
/*
* Look up an address property in a node and return the parsed address, and
@@ -317,10 +319,13 @@ fdt_addr_t fdtdec_get_addr_size_fixed(const void *blob, int node,
* @param prop_name name of property to find
* @param index which address to retrieve from a list of addresses. Often 0.
* @param sizep a pointer to store the size into. Use NULL if not required
+ * @param translate Indicates whether to translate the returned value
+ * using the parent node's ranges property.
* @return address, if found, or FDT_ADDR_T_NONE if not
*/
fdt_addr_t fdtdec_get_addr_size_auto_parent(const void *blob, int parent,
- int node, const char *prop_name, int index, fdt_size_t *sizep);
+ int node, const char *prop_name, int index, fdt_size_t *sizep,
+ bool translate);
/*
* Look up an address property in a node and return the parsed address, and
@@ -340,10 +345,13 @@ fdt_addr_t fdtdec_get_addr_size_auto_parent(const void *blob, int parent,
* @param prop_name name of property to find
* @param index which address to retrieve from a list of addresses. Often 0.
* @param sizep a pointer to store the size into. Use NULL if not required
+ * @param translate Indicates whether to translate the returned value
+ * using the parent node's ranges property.
* @return address, if found, or FDT_ADDR_T_NONE if not
*/
fdt_addr_t fdtdec_get_addr_size_auto_noparent(const void *blob, int node,
- const char *prop_name, int index, fdt_size_t *sizep);
+ const char *prop_name, int index, fdt_size_t *sizep,
+ bool translate);
/*
* Look up an address property in a node and return the parsed address.