Lines Matching refs:dtb
194 int fdt_add_reserved_memory(void *dtb, const char *node_name, in fdt_add_reserved_memory() argument
197 int offs = fdt_path_offset(dtb, "/reserved-memory"); in fdt_add_reserved_memory()
201 offs = fdt_add_subnode(dtb, 0, "reserved-memory"); in fdt_add_reserved_memory()
204 fdt_setprop_u32(dtb, offs, "#address-cells", 2); in fdt_add_reserved_memory()
205 fdt_setprop_u32(dtb, offs, "#size-cells", 1); in fdt_add_reserved_memory()
206 fdt_setprop(dtb, offs, "ranges", NULL, 0); in fdt_add_reserved_memory()
212 offs = fdt_add_subnode(dtb, offs, node_name); in fdt_add_reserved_memory()
213 fdt_setprop(dtb, offs, "no-map", NULL, 0); in fdt_add_reserved_memory()
214 fdt_setprop(dtb, offs, "reg", addresses, 12); in fdt_add_reserved_memory()
230 static int fdt_add_cpu(void *dtb, int parent, u_register_t mpidr) in fdt_add_cpu() argument
242 cpu_offs = fdt_add_subnode(dtb, parent, snode_name); in fdt_add_cpu()
249 err = fdt_setprop_string(dtb, cpu_offs, "compatible", "arm,armv8"); in fdt_add_cpu()
256 err = fdt_setprop_u64(dtb, cpu_offs, "reg", reg_prop); in fdt_add_cpu()
263 err = fdt_setprop_string(dtb, cpu_offs, "device_type", "cpu"); in fdt_add_cpu()
270 err = fdt_setprop_string(dtb, cpu_offs, "enable-method", "psci"); in fdt_add_cpu()
317 int fdt_add_cpus_node(void *dtb, unsigned int afflv0, in fdt_add_cpus_node() argument
326 if (fdt_path_offset(dtb, "/cpus") >= 0) { in fdt_add_cpus_node()
330 offs = fdt_add_subnode(dtb, 0, "cpus"); in fdt_add_cpus_node()
336 err = fdt_setprop_u32(dtb, offs, "#address-cells", 2); in fdt_add_cpus_node()
343 err = fdt_setprop_u32(dtb, offs, "#size-cells", 0); in fdt_add_cpus_node()
366 err = fdt_add_cpu(dtb, offs, mpidr); in fdt_add_cpus_node()
400 int fdt_adjust_gic_redist(void *dtb, unsigned int nr_cores, in fdt_adjust_gic_redist() argument
403 int offset = fdt_node_offset_by_compatible(dtb, 0, "arm,gic-v3"); in fdt_adjust_gic_redist()
414 parent = fdt_parent_offset(dtb, offset); in fdt_adjust_gic_redist()
418 ac = fdt_address_cells(dtb, parent); in fdt_adjust_gic_redist()
419 sc = fdt_size_cells(dtb, parent); in fdt_adjust_gic_redist()
438 return fdt_setprop_inplace_namelen_partial(dtb, offset, "reg", 3, in fdt_adjust_gic_redist()