fdt: Rename a few functions in fdt_support
These two functions have an of_ prefix which conflicts with naming used in of_addr. Rename them: fdt_read_number fdt_support_bus_default_count_cells Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -79,13 +79,13 @@ remove_psci_node:
|
||||
puts("couldn't find /cpus node\n");
|
||||
return;
|
||||
}
|
||||
of_bus_default_count_cells(blob, off, &addr_cells, NULL);
|
||||
fdt_support_default_count_cells(blob, off, &addr_cells, NULL);
|
||||
|
||||
off = fdt_node_offset_by_prop_value(blob, -1, "device_type", "cpu", 4);
|
||||
while (off != -FDT_ERR_NOTFOUND) {
|
||||
reg = (fdt32_t *)fdt_getprop(blob, off, "reg", 0);
|
||||
if (reg) {
|
||||
core_id = of_read_number(reg, addr_cells);
|
||||
core_id = fdt_read_number(reg, addr_cells);
|
||||
if (core_id == 0 || (is_core_online(core_id))) {
|
||||
val = spin_tbl_addr;
|
||||
val += id_to_core(core_id) *
|
||||
|
||||
@@ -60,9 +60,9 @@ int dram_init(void)
|
||||
|
||||
gd->ram_size = 0;
|
||||
for (i = 0; i < len; i++) {
|
||||
ram_banks[i].start = of_read_number(prop, na);
|
||||
ram_banks[i].start = fdt_read_number(prop, na);
|
||||
prop += na;
|
||||
ram_banks[i].size = of_read_number(prop, ns);
|
||||
ram_banks[i].size = fdt_read_number(prop, ns);
|
||||
prop += ns;
|
||||
gd->ram_size += ram_banks[i].size;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user