Lines Matching refs:blob
26 static int disable_fdt_node(void *blob, int nodeoffset) in disable_fdt_node() argument
32 rc = fdt_setprop(blob, nodeoffset, "status", status, in disable_fdt_node()
36 ret = fdt_increase_size(blob, 512); in disable_fdt_node()
46 static void update_fdt_with_owned_resources(void *blob) in update_fdt_with_owned_resources() argument
58 for (offset = fdt_next_node(blob, offset, &depth); offset > 0; in update_fdt_with_owned_resources()
59 offset = fdt_next_node(blob, offset, &depth)) { in update_fdt_with_owned_resources()
61 fdt_get_name(blob, offset, NULL), depth); in update_fdt_with_owned_resources()
63 if (!fdt_get_property(blob, offset, "power-domains", NULL)) { in update_fdt_with_owned_resources()
65 fdt_get_name(blob, offset, NULL)); in update_fdt_with_owned_resources()
69 if (!fdtdec_get_is_enabled(blob, offset)) { in update_fdt_with_owned_resources()
71 fdt_get_name(blob, offset, NULL)); in update_fdt_with_owned_resources()
77 rc = fdtdec_parse_phandle_with_args(blob, offset, in update_fdt_with_owned_resources()
85 fdt_get_name(blob, offset, NULL), rc); in update_fdt_with_owned_resources()
92 rc = disable_fdt_node(blob, offset); in update_fdt_with_owned_resources()
95 fdt_get_name(blob, offset, NULL), in update_fdt_with_owned_resources()
99 fdt_get_name(blob, offset, NULL), in update_fdt_with_owned_resources()
125 static int config_smmu_fdt_device_sid(void *blob, int device_offset, int sid) in config_smmu_fdt_device_sid() argument
127 const char *name = fdt_get_name(blob, device_offset, NULL); in config_smmu_fdt_device_sid()
134 prop = fdt_getprop(blob, device_offset, "fsl,sc_rsrc_id", &proplen); in config_smmu_fdt_device_sid()
152 ret = fdtdec_parse_phandle_with_args(blob, device_offset, in config_smmu_fdt_device_sid()
160 fdt_get_name(blob, device_offset, NULL), ret); in config_smmu_fdt_device_sid()
176 static int config_smmu_fdt(void *blob) in config_smmu_fdt() argument
183 offset = fdt_node_offset_by_compatible(blob, 0, "arm,mmu-500"); in config_smmu_fdt()
184 prop = fdt_getprop(blob, offset, "mmu-masters", &proplen); in config_smmu_fdt()
193 device_offset = fdt_node_offset_by_phandle(blob, in config_smmu_fdt()
200 ret = config_smmu_fdt_device_sid(blob, device_offset, in config_smmu_fdt()
212 while ((offset = fdt_next_node(blob, offset, NULL)) > 0) { in config_smmu_fdt()
213 name = fdt_get_name(blob, offset, NULL); in config_smmu_fdt()
214 prop = fdt_getprop(blob, offset, "iommus", &proplen); in config_smmu_fdt()
222 config_smmu_fdt_device_sid(blob, offset, sid); in config_smmu_fdt()
282 int ft_system_setup(void *blob, struct bd_info *bd) in ft_system_setup() argument
288 off = fdt_add_mem_rsv(blob, CONFIG_BOOTAUX_RESERVED_MEM_BASE, in ft_system_setup()
295 update_fdt_with_owned_resources(blob); in ft_system_setup()
298 ret = config_smmu_fdt(blob); in ft_system_setup()
303 return ft_add_optee_node(blob, bd); in ft_system_setup()