diff options
author | Arnab Basu <arnab.basu@freescale.com> | 2014-09-08 23:19:59 +0400 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2014-09-25 19:36:19 +0400 |
commit | f43b4356a794be647011132f4f2dc970a29a9dd5 (patch) | |
tree | a5a2195993c3c9840e00bdc4891ebaca88585bd7 /common/fdt_support.c | |
parent | 08df4a21c7d580770cabd7ba62591da035d9a545 (diff) | |
download | u-boot-f43b4356a794be647011132f4f2dc970a29a9dd5.tar.xz |
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 'common/fdt_support.c')
-rw-r--r-- | common/fdt_support.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/fdt_support.c b/common/fdt_support.c index 7ec7d4fc59..3f641566b9 100644 --- a/common/fdt_support.c +++ b/common/fdt_support.c @@ -963,7 +963,7 @@ struct of_bus { }; /* Default translator (generic bus) */ -static void of_bus_default_count_cells(void *blob, int parentoffset, +void of_bus_default_count_cells(void *blob, int parentoffset, int *addrc, int *sizec) { const fdt32_t *prop; |