mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
fdt: introduce fdt_verify_alias_address() and fdt_get_base_address()
Introduce two functions, fdt_verify_alias_address() and fdt_get_base_address(), which can be used to verify the physical address of a device in a device tree. fdt_get_base_address() returns the base address of an SOC or PCI node. fdt_verify_alias_address() prints a message if the address of a node specified by an alias does not match the given physical address. Signed-off-by: Timur Tabi <timur@freescale.com>
This commit is contained in:
parent
d1c6314887
commit
bb682001f1
2 changed files with 71 additions and 0 deletions
|
@ -90,5 +90,9 @@ int fdt_node_offset_by_compat_reg(void *blob, const char *compat,
|
|||
int fdt_alloc_phandle(void *blob);
|
||||
int fdt_add_edid(void *blob, const char *compat, unsigned char *buf);
|
||||
|
||||
int fdt_verify_alias_address(void *fdt, int anode, const char *alias,
|
||||
u64 addr);
|
||||
u64 fdt_get_base_address(void *fdt, int node);
|
||||
|
||||
#endif /* ifdef CONFIG_OF_LIBFDT */
|
||||
#endif /* ifndef __FDT_SUPPORT_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue