Home
last modified time | relevance | path

Searched refs:fdt (Results 1 – 25 of 299) sorted by relevance

12345678910>>...12

/u-boot/scripts/dtc/libfdt/
A Dlibfdt.h205 #define fdt_magic(fdt) (fdt_get_header(fdt, magic)) argument
206 #define fdt_totalsize(fdt) (fdt_get_header(fdt, totalsize)) argument
207 #define fdt_off_dt_struct(fdt) (fdt_get_header(fdt, off_dt_struct)) argument
208 #define fdt_off_dt_strings(fdt) (fdt_get_header(fdt, off_dt_strings)) argument
209 #define fdt_off_mem_rsvmap(fdt) (fdt_get_header(fdt, off_mem_rsvmap)) argument
210 #define fdt_version(fdt) (fdt_get_header(fdt, version)) argument
211 #define fdt_last_comp_version(fdt) (fdt_get_header(fdt, last_comp_version)) argument
212 #define fdt_boot_cpuid_phys(fdt) (fdt_get_header(fdt, boot_cpuid_phys)) argument
213 #define fdt_size_dt_strings(fdt) (fdt_get_header(fdt, size_dt_strings)) argument
214 #define fdt_size_dt_struct(fdt) (fdt_get_header(fdt, size_dt_struct)) argument
[all …]
A Dfdt_sw.c74 if (fdt_off_dt_strings(fdt) != fdt_totalsize(fdt)) in fdt_sw_probe_struct_()
102 spaceleft = fdt_totalsize(fdt) - fdt_off_dt_struct(fdt) in fdt_grab_space_()
116 void *fdt = buf; in fdt_create_with_flags() local
140 fdt_set_off_dt_struct(fdt, fdt_off_mem_rsvmap(fdt)); in fdt_create_with_flags()
161 headsize = fdt_off_dt_struct(fdt) + fdt_size_dt_struct(fdt); in fdt_resize()
170 oldtail = (char *)fdt + fdt_totalsize(fdt) - tailsize; in fdt_resize()
217 fdt_set_off_dt_strings(fdt, fdt_totalsize(fdt)); in fdt_finish_reservemap()
254 char *strtab = (char *)fdt + fdt_totalsize(fdt); in fdt_add_string_()
260 struct_top = fdt_off_dt_struct(fdt) + fdt_size_dt_struct(fdt); in fdt_add_string_()
280 char *strtab = (char *)fdt + fdt_totalsize(fdt); in fdt_find_add_string_()
[all …]
A Dfdt_rw.c24 (fdt_off_dt_strings(fdt) + fdt_size_dt_strings(fdt))); in fdt_blocks_misordered_()
53 return fdt_off_dt_strings(fdt) + fdt_size_dt_strings(fdt); in fdt_data_size_()
59 char *end = (char *)fdt + fdt_data_size_(fdt); in fdt_splice_()
79 fdt_set_off_dt_struct(fdt, fdt_off_dt_struct(fdt) + delta); in fdt_splice_mem_rsv_()
80 fdt_set_off_dt_strings(fdt, fdt_off_dt_strings(fdt) + delta); in fdt_splice_mem_rsv_()
93 fdt_set_size_dt_struct(fdt, fdt_size_dt_struct(fdt) + delta); in fdt_splice_struct_()
109 + fdt_off_dt_strings(fdt) + fdt_size_dt_strings(fdt); in fdt_splice_string_()
130 char *strtab = (char *)fdt + fdt_off_dt_strings(fdt); in fdt_find_add_string_()
163 re = fdt_mem_rsv_w_(fdt, fdt_num_mem_rsv(fdt)); in fdt_add_mem_rsv()
488 fdt_packblocks_(fdt, fdt, mem_rsv_size, fdt_size_dt_struct(fdt)); in fdt_pack()
[all …]
A Dfdt.c22 if (fdt_magic(fdt) == FDT_MAGIC) { in fdt_ro_probe_()
27 if (fdt_last_comp_version(fdt) > in fdt_ro_probe_()
93 if (fdt_version(fdt) < fdt_last_comp_version(fdt)) in fdt_check_header()
96 hdrsize = fdt_header_size(fdt); in fdt_check_header()
105 fdt_off_mem_rsvmap(fdt))) in fdt_check_header()
113 fdt_off_dt_struct(fdt))) in fdt_check_header()
117 fdt_off_dt_struct(fdt), in fdt_check_header()
118 fdt_size_dt_struct(fdt))) in fdt_check_header()
124 fdt_off_dt_strings(fdt), in fdt_check_header()
312 FDT_RO_PROBE(fdt); in fdt_move()
[all …]
A Dfdt_ro.c43 s = (const char *)fdt + fdt_off_dt_strings(fdt) + stroffset; in fdt_get_string()
172 return fdt_mem_rsv_(fdt, n); in fdt_mem_rsv()
179 FDT_RO_PROBE(fdt); in fdt_get_mem_rsv()
180 re = fdt_mem_rsv(fdt, n); in fdt_get_mem_rsv()
230 FDT_RO_PROBE(fdt); in fdt_subnode_offset_namelen()
256 FDT_RO_PROBE(fdt); in fdt_path_offset_namelen()
548 FDT_RO_PROBE(fdt); in fdt_get_path()
600 FDT_RO_PROBE(fdt); in fdt_supernode_atdepth_offset()
661 FDT_RO_PROBE(fdt); in fdt_node_offset_by_prop_value()
687 FDT_RO_PROBE(fdt); in fdt_node_offset_by_phandle()
[all …]
A Dlibfdt_internal.h13 int fdt_ro_probe_(const void *fdt);
14 #define FDT_RO_PROBE(fdt) \ argument
18 totalsize_ = fdt_ro_probe_(fdt); \
24 int fdt_check_node_offset_(const void *fdt, int offset);
25 int fdt_check_prop_offset_(const void *fdt, int offset);
27 int fdt_node_end_offset_(void *fdt, int nodeoffset);
31 return (const char *)fdt + fdt_off_dt_struct(fdt) + offset; in fdt_offset_ptr_()
34 static inline void *fdt_offset_ptr_w_(void *fdt, int offset) in fdt_offset_ptr_w_() argument
36 return (void *)(uintptr_t)fdt_offset_ptr_(fdt, offset); in fdt_offset_ptr_w_()
43 ((const char *)fdt + fdt_off_mem_rsvmap(fdt)); in fdt_mem_rsv_()
[all …]
A Dfdt_wip.c13 int fdt_setprop_inplace_namelen_partial(void *fdt, int nodeoffset, in fdt_setprop_inplace_namelen_partial() argument
21 propval = fdt_getprop_namelen_w(fdt, nodeoffset, name, namelen, in fdt_setprop_inplace_namelen_partial()
39 propval = fdt_getprop(fdt, nodeoffset, name, &proplen); in fdt_setprop_inplace()
46 return fdt_setprop_inplace_namelen_partial(fdt, nodeoffset, name, in fdt_setprop_inplace()
59 int fdt_nop_property(void *fdt, int nodeoffset, const char *name) in fdt_nop_property() argument
64 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); in fdt_nop_property()
73 int fdt_node_end_offset_(void *fdt, int offset) in fdt_node_end_offset_() argument
78 offset = fdt_next_node(fdt, offset, &depth); in fdt_node_end_offset_()
83 int fdt_nop_node(void *fdt, int nodeoffset) in fdt_nop_node() argument
87 endoffset = fdt_node_end_offset_(fdt, nodeoffset); in fdt_nop_node()
[all …]
A Dfdt_overlay.c75 ret = fdt_path_offset(fdt, path); in overlay_get_target()
123 val = fdt_getprop(fdt, node, name, &len); in overlay_phandle_add_offset()
392 phandle = fdt_get_phandle(fdt, symbol_off); in overlay_fixup_one_phandle()
656 FDT_RO_PROBE(fdt); in get_path_len()
789 ret = get_path_len(fdt, target); in overlay_symbol_update()
834 FDT_RO_PROBE(fdt); in fdt_overlay_apply()
837 ret = fdt_find_max_phandle(fdt, &delta); in fdt_overlay_apply()
849 ret = overlay_fixup_phandles(fdt, fdto); in fdt_overlay_apply()
853 ret = overlay_merge(fdt, fdto); in fdt_overlay_apply()
857 ret = overlay_symbol_update(fdt, fdto); in fdt_overlay_apply()
[all …]
/u-boot/arch/arm/mach-omap2/
A Dfdt-common.c32 offs = fdt_path_offset(fdt, path); in ft_hs_disable_rng()
37 ret = fdt_setprop_string(fdt, offs, in ft_hs_disable_rng()
54 int size_cells = fdt_size_cells(fdt, 0); in fdt_pack_reg()
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()
102 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_dram()
120 fdt_setprop(fdt, offs, "reg", temp, len); in ft_hs_fixup_dram()
138 offs = fdt_path_offset(fdt, path); in ft_hs_add_tee()
[all …]
/u-boot/include/
A Dfdt_support.h42 int fdt_root(void *fdt);
52 int fdt_chosen(void *fdt);
73 void do_fixup_by_prop(void *fdt,
77 void do_fixup_by_prop_u32(void *fdt,
80 void do_fixup_by_compat(void *fdt, const char *compat,
121 void fdt_fixup_ethernet(void *fdt);
124 void fdt_fixup_qe_firmware(void *fdt);
220 int fdt_increase_size(void *fdt, int add_len);
229 static inline void fdt_fixup_mtdparts(void *fdt, in fdt_fixup_mtdparts() argument
296 int fdt_set_node_status(void *fdt, int nodeoffset,
[all …]
/u-boot/lib/
A Dfdtdec_test.c78 CHECK(fdt_end_node(fdt)); in make_fdt()
90 CHECK(fdt_end_node(fdt)); in make_fdt()
91 CHECK(fdt_finish(fdt)); in make_fdt()
92 CHECK(fdt_pack(fdt)); in make_fdt()
99 os_write(fd, fdt, size); in make_fdt()
248 CHECK(fdt_finish(fdt)); in make_fdt_carveout()
249 CHECK(fdt_pack(fdt)); in make_fdt_carveout()
251 CHECK(fdt_open_into(fdt, fdt, FDT_SIZE)); in make_fdt_carveout()
275 void *fdt; in check_carveout() local
278 if (!fdt) { in check_carveout()
[all …]
/u-boot/test/overlay/
A Dcmd_ut_overlay.c28 static void *fdt; variable
38 node_off = fdt_path_offset(fdt, path); in ut_fdt_getprop_u32_by_index()
42 val = fdt_getprop(fdt, node_off, name, &len); in ut_fdt_getprop_u32_by_index()
63 node_off = fdt_path_offset(fdt, path); in fdt_getprop_str()
125 off = fdt_path_offset(fdt, "/new-node"); in fdt_overlay_add_node_by_path()
157 local_phandle = fdt_get_phandle(fdt, off); in fdt_overlay_local_phandle()
184 off = fdt_path_offset(fdt, "/test-node"); in fdt_overlay_local_phandles()
187 test_phandle = fdt_get_phandle(fdt, off); in fdt_overlay_local_phandles()
233 fdt = malloc(FDT_COPY_SIZE); in do_ut_overlay()
234 if (!fdt) in do_ut_overlay()
[all …]
/u-boot/arch/arm/mach-omap2/omap5/
A Dfdt.c45 ret = fdt_increase_size(fdt, 512); in ft_hs_fixup_crossbar()
54 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_crossbar()
78 fdt_delprop(fdt, offs, "ti,irqs-skip"); in ft_hs_fixup_crossbar()
109 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_sram()
120 fdt_delprop(fdt, offs, "reg"); in ft_hs_fixup_sram()
139 (ft_hs_disable_rng(fdt, bd) == 0) && in ft_hs_fixups()
140 (ft_hs_fixup_sram(fdt, bd) == 0) && in ft_hs_fixups()
141 (ft_hs_fixup_dram(fdt, bd) == 0) && in ft_hs_fixups()
142 (ft_hs_add_tee(fdt, bd) == 0)) in ft_hs_fixups()
312 ft_hs_fixups(fdt, bd); in ft_cpu_setup()
[all …]
/u-boot/arch/arm/lib/
A Dpsci-dt.c17 int fdt_psci(void *fdt) in fdt_psci() argument
25 nodeoff = fdt_path_offset(fdt, "/cpus"); in fdt_psci()
32 for (tmp = fdt_first_subnode(fdt, nodeoff); in fdt_psci()
34 tmp = fdt_next_subnode(fdt, tmp)) { in fdt_psci()
54 nodeoff = fdt_path_offset(fdt, "/psci"); in fdt_psci()
58 nodeoff = fdt_path_offset(fdt, "/"); in fdt_psci()
62 nodeoff = fdt_add_subnode(fdt, nodeoff, "psci"); in fdt_psci()
75 tmp = fdt_setprop_string(fdt, nodeoff, in fdt_psci()
82 tmp = fdt_appendprop_string(fdt, nodeoff, in fdt_psci()
93 tmp = fdt_appendprop_string(fdt, nodeoff, in fdt_psci()
[all …]
/u-boot/board/Marvell/octeontx/
A Dboard-fdt.c55 const void *fdt = gd->fdt_blob; in fdt_parse_phy_info() local
113 (fdt, phandle); in fdt_parse_phy_info()
115 (fdt, phy_offset); in fdt_parse_phy_info()
117 (fdt, phy_offset); in fdt_parse_phy_info()
158 const void *fdt = gd->fdt_blob; in fdt_get_bdk_node() local
160 if (!fdt) { in fdt_get_bdk_node()
165 ret = fdt_check_header(fdt); in fdt_get_bdk_node()
182 const void *fdt = gd->fdt_blob; in fdt_get_board_serial() local
198 const void *fdt = gd->fdt_blob; in fdt_get_board_revision() local
214 const void *fdt = gd->fdt_blob; in fdt_get_board_model() local
[all …]
/u-boot/tools/
A Dfit_image.c204 fdt_end_node(fdt); in add_crc_node()
245 add_crc_node(fdt); in fit_write_images()
246 fdt_end_node(fdt); in fit_write_images()
290 fdt_end_node(fdt); in fit_write_images()
352 fdt_end_node(fdt); in fit_write_configs()
445 void *fdt; in fit_extract_data() local
507 fdt_pack(fdt); in fit_extract_data()
576 if (!fdt) { in fit_import_data()
625 fdt_pack(fdt); in fit_import_data()
644 free(fdt); in fit_import_data()
[all …]
/u-boot/doc/uImage.FIT/
A Doverlay-fdt-boot.txt71 fdt = "fdt-1";
75 fdt = "fdt-2";
79 fdt = "fdt-3";
83 fdt = "fdt-4";
87 fdt = "fdt-5";
164 fdt = "fdt-1", "fdt-2";
168 fdt = "fdt-1", "fdt-3";
172 fdt = "fdt-1", "fdt-2", "fdt-4";
176 fdt = "fdt-1", "fdt-3", "fdt-4";
180 fdt = "fdt-1", "fdt-3", "fdt-5";
[all …]
/u-boot/arch/arm/cpu/armv8/
A Dspin_table.c11 int spin_table_update_dt(void *fdt) in spin_table_update_dt() argument
20 cpus_offset = fdt_path_offset(fdt, "/cpus"); in spin_table_update_dt()
24 for (offset = fdt_first_subnode(fdt, cpus_offset); in spin_table_update_dt()
26 offset = fdt_next_subnode(fdt, offset)) { in spin_table_update_dt()
27 prop = fdt_getprop(fdt, offset, "device_type", NULL); in spin_table_update_dt()
36 prop = fdt_getprop(fdt, offset, "enable-method", NULL); in spin_table_update_dt()
41 for (offset = fdt_first_subnode(fdt, cpus_offset); in spin_table_update_dt()
43 offset = fdt_next_subnode(fdt, offset)) { in spin_table_update_dt()
44 prop = fdt_getprop(fdt, offset, "device_type", NULL); in spin_table_update_dt()
48 ret = fdt_setprop_u64(fdt, offset, "cpu-release-addr", in spin_table_update_dt()
[all …]
/u-boot/board/dhelectronics/dh_stm32mp1/
A Du-boot-dhcom.its19 fdt-1 {
27 fdt-2 {
35 fdt-3 {
51 fdt = "fdt-1";
58 fdt = "fdt-1";
65 fdt = "fdt-2";
72 fdt = "fdt-2";
79 fdt = "fdt-3";
86 fdt = "fdt-3";
89 /* Add 587-100..587-400 with fdt-2..fdt-4 here */
/u-boot/test/optee/
A Dcmd_ut_optee.c27 static void *fdt; variable
35 offs = fdt_path_offset(fdt, "/firmware/optee"); in optee_fdt_firmware()
42 prop = fdt_getprop(fdt, offs, "compatible", &len); in optee_fdt_firmware()
45 prop = fdt_getprop(fdt, offs, "method", &len); in optee_fdt_firmware()
57 offs = fdt_path_offset(fdt, "/firmware/optee"); in optee_fdt_protected_memory()
68 subnode = fdt_first_subnode(fdt, offs); in optee_fdt_protected_memory()
86 subnode = fdt_next_subnode(fdt, subnode); in optee_fdt_protected_memory()
114 fdt = malloc(FDT_COPY_SIZE); in do_ut_optee()
115 if (!fdt) in do_ut_optee()
136 ut_assertok(optee_copy_fdt_nodes(fdt_optee, fdt)); in do_ut_optee()
[all …]
/u-boot/board/freescale/common/
A Dsgmii_riser.c32 void fsl_sgmii_riser_fdt_fixup(void *fdt) in fsl_sgmii_riser_fdt_fixup() argument
40 node = fdt_path_offset(fdt, "/aliases"); in fsl_sgmii_riser_fdt_fixup()
64 mdio_node = fdt_node_offset_by_compatible(fdt, -1, in fsl_sgmii_riser_fdt_fixup()
72 fdt_increase_size(fdt, 32); in fsl_sgmii_riser_fdt_fixup()
73 ph = fdt_create_phandle(fdt, phy_node); in fsl_sgmii_riser_fdt_fixup()
79 path = fdt_getprop(fdt, node, enet, NULL); in fsl_sgmii_riser_fdt_fixup()
85 enet_node = fdt_path_offset(fdt, path); in fsl_sgmii_riser_fdt_fixup()
113 phy_node = fdt_node_offset_by_phandle(fdt, in fsl_sgmii_riser_fdt_fixup()
119 fdt_setprop_cell(fdt, phy_node, "reg", in fsl_sgmii_riser_fdt_fixup()
122 fdt_setprop(fdt, enet_node, "phy-handle", &ph, in fsl_sgmii_riser_fdt_fixup()
[all …]
/u-boot/drivers/pci/
A Dpcie_layerscape_fixup_common.c32 int lx2_board_fix_fdt(void *fdt) in lx2_board_fix_fdt() argument
87 fdt_delprop(fdt, off, "apio-wins"); in lx2_board_fix_fdt()
88 fdt_delprop(fdt, off, "ppio-wins"); in lx2_board_fix_fdt()
89 off = fdt_node_offset_by_compatible(fdt, off, in lx2_board_fix_fdt()
97 fdt_setprop_string(fdt, off, "compatible", in lx2_board_fix_fdt()
99 prop = fdt_getprop(fdt, off, "apio-wins", NULL); in lx2_board_fix_fdt()
103 off = fdt_node_offset_by_compatible(fdt, off, in lx2_board_fix_fdt()
112 fdt_delprop(fdt, off, "apio-wins"); in lx2_board_fix_fdt()
114 off = fdt_node_offset_by_compatible(fdt, off, in lx2_board_fix_fdt()
121 int pcie_board_fix_fdt(void *fdt) in pcie_board_fix_fdt() argument
[all …]
/u-boot/board/armltd/vexpress/
A Dvexpress_tc2.c39 int ft_board_setup(void *fdt, struct bd_info *bd) in ft_board_setup() argument
52 offset = fdt_path_offset(fdt, "/cpus"); in ft_board_setup()
59 for (tmp = fdt_first_subnode(fdt, offset); tmp >= 0; in ft_board_setup()
60 tmp = fdt_next_subnode(fdt, tmp)) in ft_board_setup()
61 fdt_delprop(fdt, tmp, "cci-control-port"); in ft_board_setup()
64 offset = fdt_node_offset_by_prop_value(fdt, offset, "compatible", in ft_board_setup()
67 prop = fdt_get_property(fdt, offset, "interface-type", in ft_board_setup()
76 fdt_setprop_string(fdt, offset, "status", "disabled"); in ft_board_setup()
78 offset = fdt_node_offset_by_prop_value(fdt, offset, "compatible", in ft_board_setup()
/u-boot/arch/arm/mach-omap2/am33xx/
A Dfdt.c17 static void ft_hs_fixups(void *fdt, struct bd_info *bd) in ft_hs_fixups() argument
21 if ((ft_hs_disable_rng(fdt, bd) == 0) && in ft_hs_fixups()
22 (ft_hs_fixup_dram(fdt, bd) == 0) && in ft_hs_fixups()
23 (ft_hs_add_tee(fdt, bd) == 0)) in ft_hs_fixups()
32 static void ft_hs_fixups(void *fdt, struct bd_info *bd) { } in ft_hs_fixups() argument
40 void ft_cpu_setup(void *fdt, struct bd_info *bd) in ft_cpu_setup() argument
42 ft_hs_fixups(fdt, bd); in ft_cpu_setup()
/u-boot/common/
A Dfdt_region.c45 int base = fdt_off_dt_struct(fdt); in fdt_find_regions()
202 target += fdt_off_dt_struct(fdt); in region_list_contains_offset()
238 int base = fdt_off_dt_struct(fdt); in fdt_add_alias_regions()
354 int fdt_first_region(const void *fdt, in fdt_first_region() argument
364 info->fdt = fdt; in fdt_first_region()
451 int fdt_next_region(const void *fdt, in fdt_next_region() argument
458 int base = fdt_off_dt_struct(fdt); in fdt_next_region()
468 fdt_off_dt_struct(fdt) - in fdt_next_region()
469 fdt_off_mem_rsvmap(fdt))) in fdt_next_region()
660 if (fdt_off_dt_strings(fdt) < in fdt_next_region()
[all …]

Completed in 34 milliseconds

12345678910>>...12