Lines Matching refs:blob

31 int fdt_fixup_phy_connection(void *blob, int offset, phy_interface_t phyc)  in fdt_fixup_phy_connection()  argument
33 return fdt_setprop_string(blob, offset, "phy-connection-type", in fdt_fixup_phy_connection()
38 void ft_fixup_cpu(void *blob) in ft_fixup_cpu() argument
49 off = fdt_path_offset(blob, "/cpus"); in ft_fixup_cpu()
55 fdt_support_default_count_cells(blob, off, &addr_cells, NULL); in ft_fixup_cpu()
57 off = fdt_node_offset_by_prop_value(blob, off_prev, "device_type", in ft_fixup_cpu()
60 reg = (fdt32_t *)fdt_getprop(blob, off, "reg", 0); in ft_fixup_cpu()
64 fdt_del_node(blob, off); in ft_fixup_cpu()
69 off = fdt_node_offset_by_prop_value(blob, off_prev, in ft_fixup_cpu()
82 node = fdt_path_offset(blob, "/psci"); in ft_fixup_cpu()
86 node = fdt_node_offset_by_compatible(blob, -1, "arm,psci"); in ft_fixup_cpu()
90 node = fdt_node_offset_by_compatible(blob, -1, "arm,psci-0.2"); in ft_fixup_cpu()
94 node = fdt_node_offset_by_compatible(blob, -1, "arm,psci-1.0"); in ft_fixup_cpu()
100 fdt_del_node(blob, node); in ft_fixup_cpu()
105 off = fdt_path_offset(blob, "/cpus"); in ft_fixup_cpu()
110 fdt_support_default_count_cells(blob, off, &addr_cells, NULL); in ft_fixup_cpu()
112 off = fdt_node_offset_by_prop_value(blob, -1, "device_type", "cpu", 4); in ft_fixup_cpu()
114 reg = (fdt32_t *)fdt_getprop(blob, off, "reg", 0); in ft_fixup_cpu()
122 fdt_setprop_string(blob, off, "enable-method", in ft_fixup_cpu()
124 fdt_setprop(blob, off, "cpu-release-addr", in ft_fixup_cpu()
132 off = fdt_node_offset_by_prop_value(blob, off, "device_type", in ft_fixup_cpu()
136 fdt_add_mem_rsv(blob, (uintptr_t)&secondary_boot_code, in ft_fixup_cpu()
146 void fsl_fdt_disable_usb(void *blob) in fsl_fdt_disable_usb() argument
155 off = fdt_node_offset_by_compatible(blob, -1, "snps,dwc3"); in fsl_fdt_disable_usb()
157 fdt_status_disabled(blob, off); in fsl_fdt_disable_usb()
158 off = fdt_node_offset_by_compatible(blob, off, in fsl_fdt_disable_usb()
165 static void fdt_fixup_gic(void *blob) in fdt_fixup_gic() argument
184 offset = fdt_subnode_offset(blob, 0, "interrupt-controller@1400000"); in fdt_fixup_gic()
213 err = fdt_setprop(blob, offset, "reg", reg, sizeof(reg)); in fdt_fixup_gic()
226 static int _fdt_fixup_msi_node(void *blob, const char *name, in _fdt_fixup_msi_node() argument
233 offset = fdt_path_offset(blob, name); in _fdt_fixup_msi_node()
261 err = fdt_setprop(blob, offset, "interrupts", tmp, len); in _fdt_fixup_msi_node()
269 p = (char *)fdt_getprop(blob, offset, "reg", &len); in _fdt_fixup_msi_node()
283 err = fdt_setprop(blob, offset, "reg", tmp, len); in _fdt_fixup_msi_node()
292 err = fdt_setprop_string(blob, offset, "compatible", in _fdt_fixup_msi_node()
295 err = fdt_setprop_string(blob, offset, "compatible", in _fdt_fixup_msi_node()
306 static int _fdt_fixup_pci_msi(void *blob, const char *name, int rev) in _fdt_fixup_pci_msi() argument
313 offset = fdt_path_offset(blob, name); in _fdt_fixup_pci_msi()
320 p = (char *)fdt_getprop(blob, offset, "interrupt-map", &len); in _fdt_fixup_pci_msi()
340 err = fdt_setprop(blob, offset, "interrupt-map", tmp, sizeof(tmp)); in _fdt_fixup_pci_msi()
351 static void fdt_fixup_msi(void *blob) in fdt_fixup_msi() argument
363 _fdt_fixup_msi_node(blob, "/soc/msi-controller1@1571000", in fdt_fixup_msi()
365 _fdt_fixup_msi_node(blob, "/soc/msi-controller2@1572000", in fdt_fixup_msi()
367 _fdt_fixup_msi_node(blob, "/soc/msi-controller3@1573000", in fdt_fixup_msi()
370 _fdt_fixup_pci_msi(blob, "/soc/pcie@3400000", rev); in fdt_fixup_msi()
371 _fdt_fixup_pci_msi(blob, "/soc/pcie@3500000", rev); in fdt_fixup_msi()
372 _fdt_fixup_pci_msi(blob, "/soc/pcie@3600000", rev); in fdt_fixup_msi()
378 void fdt_fixup_remove_jr(void *blob) in fdt_fixup_remove_jr() argument
381 int crypto_node = fdt_path_offset(blob, "crypto"); in fdt_fixup_remove_jr()
386 fdt_support_default_count_cells(blob, crypto_node, &addr_cells, NULL); in fdt_fixup_remove_jr()
388 jr_node = fdt_node_offset_by_compatible(blob, crypto_node, in fdt_fixup_remove_jr()
392 reg = (fdt32_t *)fdt_getprop(blob, jr_node, "reg", &len); in fdt_fixup_remove_jr()
395 fdt_del_node(blob, jr_node); in fdt_fixup_remove_jr()
398 jr_node = fdt_node_offset_by_compatible(blob, jr_node, in fdt_fixup_remove_jr()
404 void ft_cpu_setup(void *blob, bd_t *bd) in ft_cpu_setup() argument
411 fdt_fixup_crypto_node(blob, 0); in ft_cpu_setup()
417 fdt_fixup_remove_jr(blob); in ft_cpu_setup()
418 fdt_fixup_kaslr(blob); in ft_cpu_setup()
422 fdt_fixup_crypto_node(blob, sec_in32(&sec->secvid_ms)); in ft_cpu_setup()
427 ft_fixup_cpu(blob); in ft_cpu_setup()
431 do_fixup_by_compat_u32(blob, "fsl,ns16550", in ft_cpu_setup()
435 do_fixup_by_path_u32(blob, "/sysclk", "clock-frequency", in ft_cpu_setup()
439 ft_pci_setup(blob, bd); in ft_cpu_setup()
443 fdt_fixup_esdhc(blob, bd); in ft_cpu_setup()
447 fdt_fixup_bportals(blob); in ft_cpu_setup()
448 fdt_fixup_qportals(blob); in ft_cpu_setup()
449 do_fixup_by_compat_u32(blob, "fsl,qman", in ft_cpu_setup()
454 fdt_fixup_fman_firmware(blob); in ft_cpu_setup()
457 fsl_fdt_disable_usb(blob); in ft_cpu_setup()
460 fdt_fixup_gic(blob); in ft_cpu_setup()
463 fdt_fixup_msi(blob); in ft_cpu_setup()