diff options
author | Arnab Basu <arnab.basu@freescale.com> | 2014-09-08 12:19:59 -0700 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2014-09-25 08:36:19 -0700 |
commit | f43b4356a794be647011132f4f2dc970a29a9dd5 (patch) | |
tree | a5a2195993c3c9840e00bdc4891ebaca88585bd7 /include | |
parent | 08df4a21c7d580770cabd7ba62591da035d9a545 (diff) | |
download | u-boot-imx-f43b4356a794be647011132f4f2dc970a29a9dd5.zip u-boot-imx-f43b4356a794be647011132f4f2dc970a29a9dd5.tar.gz u-boot-imx-f43b4356a794be647011132f4f2dc970a29a9dd5.tar.bz2 |
fdt_support: Make of_bus_default_count_cells non static
of_bus_default_count_cells can be used to get the #address-cells
and #size-cells defined by the current node's parent node. This
is required when using of_read_number to read from FDT nodes that
can be 32 or 64 bytes depending on values defined by the parent.
Signed-off-by: Arnab Basu <arnab.basu@freescale.com>
CC: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/fdt_support.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h index 649fbd6..c3d1fbc 100644 --- a/include/fdt_support.h +++ b/include/fdt_support.h @@ -142,6 +142,9 @@ static inline u64 of_read_number(const fdt32_t *cell, int size) return r; } +void of_bus_default_count_cells(void *blob, int parentoffset, + int *addrc, int *sizec); + #endif /* ifdef CONFIG_OF_LIBFDT */ #ifdef USE_HOSTCC |