U-Boot: add a 'physical' arg to fdt_get_device_reg()

If false, try to use the virtual-reg property first.
This commit is contained in:
François Revol
2016-02-26 22:58:17 +01:00
parent 73ef47f70a
commit 14cfccd011
2 changed files with 13 additions and 4 deletions
@@ -16,7 +16,7 @@ void dump_fdt(const void *fdt);
status_t fdt_get_cell_count(const void* fdt, int node,
int32 &addressCells, int32 &sizeCells);
phys_addr_t fdt_get_device_reg(const void* fdt, int node);
phys_addr_t fdt_get_device_reg(const void* fdt, int node, bool physical=true);
phys_addr_t fdt_get_device_reg_byname(const void* fdt, const char* name);
phys_addr_t fdt_get_device_reg_byalias(const void* fdt, const char* alias);