diff options
author | Timur Tabi <timur@freescale.com> | 2011-05-03 13:24:07 -0500 |
---|---|---|
committer | Gerald Van Baren <gvb@unssw.com> | 2011-07-14 21:43:36 -0400 |
commit | bb682001f16504c2885a4ce5f82bff79df7a83c9 (patch) | |
tree | 20138fc22710710eb3762a550be1873db689b498 /include | |
parent | d1c6314887c4d6712f7bd9ba7428b6517e7732e0 (diff) | |
download | u-boot-imx-bb682001f16504c2885a4ce5f82bff79df7a83c9.zip u-boot-imx-bb682001f16504c2885a4ce5f82bff79df7a83c9.tar.gz u-boot-imx-bb682001f16504c2885a4ce5f82bff79df7a83c9.tar.bz2 |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/fdt_support.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h index ce6817b..cefc990 100644 --- a/include/fdt_support.h +++ b/include/fdt_support.h @@ -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 */ |