mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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>
This commit is contained in:
parent
08df4a21c7
commit
f43b4356a7
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue