/* Returns the base address of an SOC or PCI node  */
u64 fdt_get_base_address(const void *fdt, int node)
/* Returns the base address of an SOC or PCI node  */
u64 fdt_get_base_address(const void *fdt, int node)
{
	int size;
	const fdt32_t *prop;
	prop = fdt_getprop(fdt, node, "reg", &size);
	return prop ? fdt_translate_address(fdt, node, prop) : OF_BAD_ADDR;
}