Lines Matching refs:fdt

24 int ft_hs_disable_rng(void *fdt, struct bd_info *bd)  in ft_hs_disable_rng()  argument
32 offs = fdt_path_offset(fdt, path); in ft_hs_disable_rng()
37 ret = fdt_setprop_string(fdt, offs, in ft_hs_disable_rng()
51 static int fdt_pack_reg(const void *fdt, void *buf, u64 address, u64 size) in fdt_pack_reg() argument
53 int address_cells = fdt_address_cells(fdt, 0); in fdt_pack_reg()
54 int size_cells = fdt_size_cells(fdt, 0); in fdt_pack_reg()
72 int ft_hs_fixup_dram(void *fdt, struct bd_info *bd) in ft_hs_fixup_dram() argument
78 fdt32_t address_cells = cpu_to_fdt32(fdt_address_cells(fdt, 0)); in ft_hs_fixup_dram()
79 fdt32_t size_cells = cpu_to_fdt32(fdt_size_cells(fdt, 0)); in ft_hs_fixup_dram()
84 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_dram()
86 fdt_del_node(fdt, offs); in ft_hs_fixup_dram()
90 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_dram()
95 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_dram()
96 offs = fdt_add_subnode(fdt, offs, subpath); in ft_hs_fixup_dram()
102 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_dram()
104 fdt_setprop(fdt, offs, "#address-cells", &address_cells, sizeof(address_cells)); in ft_hs_fixup_dram()
105 fdt_setprop(fdt, offs, "#size-cells", &size_cells, sizeof(size_cells)); in ft_hs_fixup_dram()
106 fdt_setprop(fdt, offs, "ranges", NULL, 0); in ft_hs_fixup_dram()
110 offs = fdt_add_subnode(fdt, offs, subpath); in ft_hs_fixup_dram()
116 fdt_setprop_string(fdt, offs, "compatible", "ti,secure-memory"); in ft_hs_fixup_dram()
117 fdt_setprop_string(fdt, offs, "status", "okay"); in ft_hs_fixup_dram()
118 fdt_setprop(fdt, offs, "no-map", NULL, 0); in ft_hs_fixup_dram()
119 len = fdt_pack_reg(fdt, temp, sec_mem_start, sec_mem_size); in ft_hs_fixup_dram()
120 fdt_setprop(fdt, offs, "reg", temp, len); in ft_hs_fixup_dram()
125 int ft_hs_fixup_dram(void *fdt, struct bd_info *bd) { return 0; } in ft_hs_fixup_dram() argument
128 int ft_hs_add_tee(void *fdt, struct bd_info *bd) in ft_hs_add_tee() argument
138 offs = fdt_path_offset(fdt, path); in ft_hs_add_tee()
141 offs = fdt_path_offset(fdt, path); in ft_hs_add_tee()
148 offs = fdt_add_subnode(fdt, offs, subpath); in ft_hs_add_tee()
156 offs = fdt_add_subnode(fdt, offs, subpath); in ft_hs_add_tee()
162 fdt_setprop_string(fdt, offs, "compatible", "linaro,optee-tz"); in ft_hs_add_tee()
163 fdt_setprop_string(fdt, offs, "method", "smc"); in ft_hs_add_tee()