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:

committed by
Gerald Van Baren

parent
d1c6314887
commit
bb682001f1
@@ -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 */
|
||||
|
Reference in New Issue
Block a user