Lines Matching refs:dtb
206 void *dtb = (void *)rpi4_get_dtb_address(); in rpi4_prepare_dtb() local
211 if (fdt_check_header(dtb) != 0) in rpi4_prepare_dtb()
214 ret = fdt_open_into(dtb, dtb, 0x100000); in rpi4_prepare_dtb()
216 ERROR("Invalid Device Tree at %p: error %d\n", dtb, ret); in rpi4_prepare_dtb()
220 if (dt_add_psci_node(dtb)) { in rpi4_prepare_dtb()
225 if (dt_add_psci_cpu_enable_methods(dtb)) { in rpi4_prepare_dtb()
231 if (fdt_add_reserved_memory(dtb, "atf@0", 0, 0x80000)) in rpi4_prepare_dtb()
234 offs = fdt_node_offset_by_compatible(dtb, 0, "arm,gic-400"); in rpi4_prepare_dtb()
238 fdt_setprop(dtb, offs, "interrupts", gic_int_prop, 12); in rpi4_prepare_dtb()
240 offs = fdt_path_offset(dtb, "/chosen"); in rpi4_prepare_dtb()
241 fdt_setprop_string(dtb, offs, "stdout-path", "serial0"); in rpi4_prepare_dtb()
243 ret = fdt_pack(dtb); in rpi4_prepare_dtb()
245 ERROR("Failed to pack Device Tree at %p: error %d\n", dtb, ret); in rpi4_prepare_dtb()
247 clean_dcache_range((uintptr_t)dtb, fdt_blob_size(dtb)); in rpi4_prepare_dtb()