Searched refs:fdt (Results 1 - 25 of 241) sorted by relevance

12345678910

/u-boot/arch/arm/include/asm/arch-meson/
H A Dmeson-vpu.h11 void meson_vpu_rsv_fb(void *fdt);
H A Dmem.h13 void meson_board_add_reserved_memory(void *fdt, u64 start, u64 size);
14 void meson_init_reserved_memory(void *fdt);
/u-boot/arch/arm/include/asm/arch-fsl-layerscape/
H A Dfdt.h9 void fdt_fixup_board_enet(void *fdt);
/u-boot/scripts/dtc/libfdt/
H A Dlibfdt.h10 #include "fdt.h"
111 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int checklen);
113 static inline void *fdt_offset_ptr_w(void *fdt, int offset, int checklen) argument
115 return (void *)(uintptr_t)fdt_offset_ptr(fdt, offset, checklen);
118 uint32_t fdt_next_tag(const void *fdt, int offset, int *nextoffset);
148 int fdt_next_node(const void *fdt, int offset, int *depth);
153 * @fdt: FDT blob
157 int fdt_first_subnode(const void *fdt, int offset);
165 * @fdt: FDT blob
170 int fdt_next_subnode(const void *fdt, in
350 fdt_get_max_phandle(const void *fdt) argument
659 fdt_get_property_w(void *fdt, int nodeoffset, const char *name, int *lenp) argument
717 fdt_getprop_namelen_w(void *fdt, int nodeoffset, const char *name, int namelen, int *lenp) argument
756 fdt_getprop_w(void *fdt, int nodeoffset, const char *name, int *lenp) argument
1254 fdt_setprop_inplace_u32(void *fdt, int nodeoffset, const char *name, uint32_t val) argument
1289 fdt_setprop_inplace_u64(void *fdt, int nodeoffset, const char *name, uint64_t val) argument
1301 fdt_setprop_inplace_cell(void *fdt, int nodeoffset, const char *name, uint32_t val) argument
1405 fdt_property_u32(void *fdt, const char *name, uint32_t val) argument
1410 fdt_property_u64(void *fdt, const char *name, uint64_t val) argument
1417 fdt_property_cell(void *fdt, const char *name, uint32_t val) argument
1615 fdt_setprop_u32(void *fdt, int nodeoffset, const char *name, uint32_t val) argument
1650 fdt_setprop_u64(void *fdt, int nodeoffset, const char *name, uint64_t val) argument
1662 fdt_setprop_cell(void *fdt, int nodeoffset, const char *name, uint32_t val) argument
1787 fdt_appendprop_u32(void *fdt, int nodeoffset, const char *name, uint32_t val) argument
1822 fdt_appendprop_u64(void *fdt, int nodeoffset, const char *name, uint64_t val) argument
1834 fdt_appendprop_cell(void *fdt, int nodeoffset, const char *name, uint32_t val) argument
[all...]
H A Dfdt_sw.c8 #include <fdt.h>
13 static int fdt_sw_probe_(void *fdt) argument
16 if (fdt_magic(fdt) == FDT_MAGIC)
18 else if (fdt_magic(fdt) != FDT_SW_MAGIC)
25 #define FDT_SW_PROBE(fdt) \
28 if (fdt_chk_basic() && (err = fdt_sw_probe_(fdt)) != 0) \
38 static int fdt_sw_probe_memrsv_(void *fdt) argument
40 int err = fdt_sw_probe_(fdt);
44 if (fdt_chk_extra() && fdt_off_dt_strings(fdt) != 0)
49 #define FDT_SW_PROBE_MEMRSV(fdt) \
64 fdt_sw_probe_struct_(void *fdt) argument
86 sw_flags(void *fdt) argument
97 fdt_grab_space_(void *fdt, size_t len) argument
116 void *fdt = buf; local
151 fdt_resize(void *fdt, void *buf, int bufsize) argument
190 fdt_add_reservemap_entry(void *fdt, uint64_t addr, uint64_t size) argument
210 fdt_finish_reservemap(void *fdt) argument
221 fdt_begin_node(void *fdt, const char *name) argument
238 fdt_end_node(void *fdt) argument
252 fdt_add_string_(void *fdt, const char *s) argument
270 fdt_del_last_string_(void *fdt, const char *s) argument
278 fdt_find_add_string_(void *fdt, const char *s, int *allocated) argument
295 fdt_property_placeholder(void *fdt, const char *name, int len, void **valp) argument
327 fdt_property(void *fdt, const char *name, const void *val, int len) argument
339 fdt_finish(void *fdt) argument
[all...]
H A Dfdt_rw.c8 #include <fdt.h>
13 static int fdt_blocks_misordered_(const void *fdt, argument
18 return (fdt_off_mem_rsvmap(fdt) < FDT_ALIGN(sizeof(struct fdt_header), 8))
19 || (fdt_off_dt_struct(fdt) <
20 (fdt_off_mem_rsvmap(fdt) + mem_rsv_size))
21 || (fdt_off_dt_strings(fdt) <
22 (fdt_off_dt_struct(fdt) + struct_size))
23 || (fdt_totalsize(fdt) <
24 (fdt_off_dt_strings(fdt) + fdt_size_dt_strings(fdt)));
27 fdt_rw_probe_(void *fdt) argument
51 fdt_data_size_(void *fdt) argument
56 fdt_splice_(void *fdt, void *splicepoint, int oldlen, int newlen) argument
71 fdt_splice_mem_rsv_(void *fdt, struct fdt_reserve_entry *p, int oldn, int newn) argument
84 fdt_splice_struct_(void *fdt, void *p, int oldlen, int newlen) argument
99 fdt_del_last_string_(void *fdt, const char *s) argument
106 fdt_splice_string_(void *fdt, int newlen) argument
128 fdt_find_add_string_(void *fdt, const char *s, int *allocated) argument
156 fdt_add_mem_rsv(void *fdt, uint64_t address, uint64_t size) argument
173 fdt_del_mem_rsv(void *fdt, int n) argument
185 fdt_resize_property_(void *fdt, int nodeoffset, const char *name, int len, struct fdt_property **prop) argument
203 fdt_add_property_(void *fdt, int nodeoffset, const char *name, int len, struct fdt_property **prop) argument
236 fdt_set_name(void *fdt, int nodeoffset, const char *name) argument
259 fdt_setprop_placeholder(void *fdt, int nodeoffset, const char *name, int len, void **prop_data) argument
277 fdt_setprop(void *fdt, int nodeoffset, const char *name, const void *val, int len) argument
292 fdt_appendprop(void *fdt, int nodeoffset, const char *name, const void *val, int len) argument
319 fdt_delprop(void *fdt, int nodeoffset, const char *name) argument
334 fdt_add_subnode_namelen(void *fdt, int parentoffset, const char *name, int namelen) argument
375 fdt_add_subnode(void *fdt, int parentoffset, const char *name) argument
380 fdt_del_node(void *fdt, int nodeoffset) argument
416 fdt_open_into(const void *fdt, void *buf, int bufsize) argument
480 fdt_pack(void *fdt) argument
[all...]
H A Dlibfdt_internal.h8 #include <fdt.h>
13 int fdt_ro_probe_(const void *fdt);
14 #define FDT_RO_PROBE(fdt) \
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);
29 static inline const void *fdt_offset_ptr_(const void *fdt, int offset) argument
31 return (const char *)fdt + fdt_off_dt_struct(fdt)
34 fdt_offset_ptr_w_(void *fdt, int offset) argument
39 fdt_mem_rsv_(const void *fdt, int n) argument
47 fdt_mem_rsv_w_(void *fdt, int n) argument
[all...]
H A Dfdt.c8 #include <fdt.h>
18 int32_t fdt_ro_probe_(const void *fdt) argument
20 uint32_t totalsize = fdt_totalsize(fdt);
22 if (fdt_magic(fdt) == FDT_MAGIC) {
25 if (fdt_version(fdt) < FDT_FIRST_SUPPORTED_VERSION)
27 if (fdt_last_comp_version(fdt) >
31 } else if (fdt_magic(fdt) == FDT_SW_MAGIC) {
33 if (fdt_size_dt_struct(fdt) == 0)
76 size_t fdt_header_size(const void *fdt) argument
78 return fdt_chk_version() ? fdt_header_size_(fdt_version(fdt))
82 fdt_check_header(const void *fdt) argument
132 fdt_offset_ptr(const void *fdt, int offset, unsigned int len) argument
154 fdt_next_tag(const void *fdt, int startoffset, int *nextoffset) argument
209 fdt_check_node_offset_(const void *fdt, int offset) argument
218 fdt_check_prop_offset_(const void *fdt, int offset) argument
227 fdt_next_node(const void *fdt, int offset, int *depth) argument
267 fdt_first_subnode(const void *fdt, int offset) argument
278 fdt_next_subnode(const void *fdt, int offset) argument
307 fdt_move(const void *fdt, void *buf, int bufsize) argument
[all...]
H A Dfdt_ro.c8 #include <fdt.h>
13 static int fdt_nodename_eq_(const void *fdt, int offset, argument
17 const char *p = fdt_get_name(fdt, offset, &olen);
34 const char *fdt_get_string(const void *fdt, int stroffset, int *lenp) argument
43 s = (const char *)fdt + fdt_off_dt_strings(fdt) + stroffset;
49 totalsize = fdt_ro_probe_(fdt);
55 absoffset = stroffset + fdt_off_dt_strings(fdt);
60 if (fdt_magic(fdt) == FDT_MAGIC) {
63 if (!fdt_chk_version() || fdt_version(fdt) >
100 fdt_string(const void *fdt, int stroffset) argument
105 fdt_string_eq_(const void *fdt, int stroffset, const char *s, int len) argument
114 fdt_find_max_phandle(const void *fdt, uint32_t *phandle) argument
142 fdt_generate_phandle(const void *fdt, uint32_t *phandle) argument
160 fdt_mem_rsv(const void *fdt, int n) argument
175 fdt_get_mem_rsv(const void *fdt, int n, uint64_t *address, uint64_t *size) argument
189 fdt_num_mem_rsv(const void *fdt) argument
201 nextprop_(const void *fdt, int offset) argument
225 fdt_subnode_offset_namelen(const void *fdt, int offset, const char *name, int namelen) argument
244 fdt_subnode_offset(const void *fdt, int parentoffset, const char *name) argument
250 fdt_path_offset_namelen(const void *fdt, const char *path, int namelen) argument
295 fdt_path_offset(const void *fdt, const char *path) argument
300 fdt_get_name(const void *fdt, int nodeoffset, int *len) argument
339 fdt_first_property_offset(const void *fdt, int nodeoffset) argument
349 fdt_next_property_offset(const void *fdt, int offset) argument
357 fdt_get_property_by_offset_(const void *fdt, int offset, int *lenp) argument
378 fdt_get_property_by_offset(const void *fdt, int offset, int *lenp) argument
394 fdt_get_property_namelen_(const void *fdt, int offset, const char *name, int namelen, int *lenp, int *poffset) argument
425 fdt_get_property_namelen(const void *fdt, int offset, const char *name, int namelen, int *lenp) argument
443 fdt_get_property(const void *fdt, int nodeoffset, const char *name, int *lenp) argument
451 fdt_getprop_namelen(const void *fdt, int nodeoffset, const char *name, int namelen, int *lenp) argument
469 fdt_getprop_by_offset(const void *fdt, int offset, const char **namep, int *lenp) argument
502 fdt_getprop(const void *fdt, int nodeoffset, const char *name, int *lenp) argument
508 fdt_get_phandle(const void *fdt, int nodeoffset) argument
525 fdt_get_alias_namelen(const void *fdt, const char *name, int namelen) argument
537 fdt_get_alias(const void *fdt, const char *name) argument
542 fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen) argument
594 fdt_supernode_atdepth_offset(const void *fdt, int nodeoffset, int supernodedepth, int *nodedepth) argument
632 fdt_node_depth(const void *fdt, int nodeoffset) argument
643 fdt_parent_offset(const void *fdt, int nodeoffset) argument
653 fdt_node_offset_by_prop_value(const void *fdt, int startoffset, const char *propname, const void *propval, int proplen) argument
680 fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle) argument
722 fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property) argument
747 fdt_stringlist_search(const void *fdt, int nodeoffset, const char *property, const char *string) argument
777 fdt_stringlist_get(const void *fdt, int nodeoffset, const char *property, int idx, int *lenp) argument
822 fdt_node_check_compatible(const void *fdt, int nodeoffset, const char *compatible) argument
835 fdt_node_offset_by_compatible(const void *fdt, int startoffset, const char *compatible) argument
861 fdt_check_full(const void *fdt, size_t bufsize) argument
941 fdt_check_full(const void __always_unused *fdt, size_t __always_unused bufsize) argument
[all...]
H A Dfdt_wip.c8 #include <fdt.h>
13 int fdt_setprop_inplace_namelen_partial(void *fdt, int nodeoffset, argument
21 propval = fdt_getprop_namelen_w(fdt, nodeoffset, name, namelen,
33 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name, argument
39 propval = fdt_getprop(fdt, nodeoffset, name, &proplen);
46 return fdt_setprop_inplace_namelen_partial(fdt, nodeoffset, name,
59 int fdt_nop_property(void *fdt, int nodeoffset, const char *name) argument
64 prop = fdt_get_property_w(fdt, nodeoffset, name, &len);
73 int fdt_node_end_offset_(void *fdt, int offset) argument
78 offset = fdt_next_node(fdt, offse
83 fdt_nop_node(void *fdt, int nodeoffset) argument
[all...]
/u-boot/board/freescale/common/
H A Dsgmii_riser.h16 void fsl_sgmii_riser_fdt_fixup(void *fdt);
/u-boot/board/starfive/visionfive2/
H A Dspl.c89 void spl_fdt_fixup_mars(void *fdt) argument
97 fdt_setprop(fdt, fdt_path_offset(fdt, "/"), "compatible", compat, sizeof(compat));
98 fdt_setprop_string(fdt, fdt_path_offset(fdt, "/"), "model",
102 offset = fdt_path_offset(fdt, "/soc/clock-controller@17000000");
103 phandle = fdt_get_phandle(fdt, offset);
104 offset = fdt_path_offset(fdt, "/soc/ethernet@16030000");
106 fdt_setprop_u32(fdt, offset, "assigned-clocks", phandle);
107 fdt_appendprop_u32(fdt, offse
132 spl_fdt_fixup_mars_cm(void *fdt) argument
156 spl_fdt_fixup_version_a(void *fdt) argument
203 spl_fdt_fixup_version_b(void *fdt) argument
[all...]
/u-boot/arch/arm/include/asm/
H A Dspin_table.h10 int spin_table_update_dt(void *fdt);
/u-boot/arch/arm/mach-omap2/am33xx/
H A Dfdt.c17 static void ft_hs_fixups(void *fdt, struct bd_info *bd) argument
21 if ((ft_hs_disable_rng(fdt, bd) == 0) &&
22 (ft_hs_fixup_dram(fdt, bd) == 0) &&
23 (ft_hs_add_tee(fdt, bd) == 0))
32 static void ft_hs_fixups(void *fdt, struct bd_info *bd) { } argument
40 void ft_cpu_setup(void *fdt, struct bd_info *bd) argument
42 ft_hs_fixups(fdt, bd);
/u-boot/include/
H A Dfdt_support.h17 * arch_fixup_fdt() - Write arch-specific information to fdt
19 * Defined in arch/$(ARCH)/lib/bootm-fdt.c
30 u32 fdt_getprop_u32_default_node(const void *fdt, int off, int cell,
32 u32 fdt_getprop_u32_default(const void *fdt, const char *path,
40 * @param fdt FDT address in memory
43 int fdt_root(void *fdt);
50 * @param fdt FDT address in memory
53 int fdt_chosen(void *fdt);
66 * @fdt: Pointer to FDT in memory
71 int fdt_initrd(void *fdt, ulon
78 do_fixup_by_path_string(void *fdt, const char *path, const char *prop, const char *status) argument
271 fdt_fixup_mtdparts(void *fdt, const struct node_info *node_info, int node_info_size) argument
356 fdt_status_okay(void *fdt, int nodeoffset) argument
360 fdt_status_disabled(void *fdt, int nodeoffset) argument
364 fdt_status_fail(void *fdt, int nodeoffset) argument
371 fdt_status_okay_by_alias(void *fdt, const char *alias) argument
375 fdt_status_disabled_by_alias(void *fdt, const char *alias) argument
379 fdt_status_fail_by_alias(void *fdt, const char *alias) argument
386 fdt_status_okay_by_compatible(void *fdt, const char *compat) argument
390 fdt_status_disabled_by_compatible(void *fdt, const char *compat) argument
395 fdt_status_fail_by_compatible(void *fdt, const char *compat) argument
[all...]
/u-boot/arch/arm/lib/
H A Dpsci-dt.c17 int fdt_psci(void *fdt) argument
25 nodeoff = fdt_path_offset(fdt, "/cpus");
32 for (tmp = fdt_first_subnode(fdt, nodeoff);
34 tmp = fdt_next_subnode(fdt, tmp)) {
38 prop = fdt_get_property(fdt, tmp, "device_type", &len);
51 fdt_setprop_string(fdt, tmp, "enable-method", "psci");
54 nodeoff = fdt_path_offset(fdt, "/psci");
58 nodeoff = fdt_path_offset(fdt, "/");
62 nodeoff = fdt_add_subnode(fdt, nodeoff, "psci");
75 tmp = fdt_setprop_string(fdt, nodeof
[all...]
/u-boot/test/overlay/
H A DMakefile12 obj-y += test-fdt-base.dtb.o
13 obj-y += test-fdt-overlay.dtb.o
14 obj-y += test-fdt-overlay-stacked.dtb.o
/u-boot/arch/arm/include/asm/arch-tegra/
H A Dboard.h38 void ft_mac_address_setup(void *fdt);
39 void ft_carveout_setup(void *fdt, const char *const *nodes,
/u-boot/arch/arm/mach-omap2/
H A Dfdt-common.c24 int ft_hs_disable_rng(void *fdt, struct bd_info *bd) argument
32 offs = fdt_path_offset(fdt, path);
37 ret = fdt_setprop_string(fdt, offs,
51 static int fdt_pack_reg(const void *fdt, void *buf, u64 address, u64 size) argument
53 int address_cells = fdt_address_cells(fdt, 0);
54 int size_cells = fdt_size_cells(fdt, 0);
72 int ft_hs_fixup_dram(void *fdt, struct bd_info *bd) argument
78 fdt32_t address_cells = cpu_to_fdt32(fdt_address_cells(fdt, 0));
79 fdt32_t size_cells = cpu_to_fdt32(fdt_size_cells(fdt, 0));
84 offs = fdt_path_offset(fdt, pat
125 ft_hs_fixup_dram(void *fdt, struct bd_info *bd) argument
128 ft_hs_add_tee(void *fdt, struct bd_info *bd) argument
[all...]
/u-boot/arch/riscv/include/asm/
H A Du-boot-riscv.h20 int riscv_board_reserved_mem_fixup(void *fdt);
/u-boot/arch/mips/mach-octeon/include/mach/
H A Docteon_fdt.h27 * @param fdt - pointer to working FDT, usually in gd->fdt_blob
57 int octeon_fdt_patch_rename(void *fdt, const char *fdt_key, const char *trim_name, bool rename,
58 void (*callback)(void *fdt, int offset, void *arg), void *cbarg);
63 * @param fdt - pointer to working FDT, usually in gd->fdt_blob
90 int octeon_fdt_patch(void *fdt, const char *fdt_key, const char *trim_name);
131 * @param[in] fdt pointer to device tree blob
145 int octeon_fdt_compat_vendor(const void *fdt, int nodeoffset, const char *vendor);
150 * @param fdt pointer to flat device tree
155 int octeon_fdt_get_soc_node(const void *fdt, int nodeoffset);
160 * @param[in] fdt Fla
[all...]
/u-boot/arch/arm/cpu/armv8/
H A Dcpu-dt.c13 __weak int psci_update_dt(void *fdt) argument
25 fdt_psci(fdt);
29 fdt_add_mem_rsv(fdt, (unsigned long)__secure_start,
H A Dspin_table.c11 int spin_table_update_dt(void *fdt) argument
20 cpus_offset = fdt_path_offset(fdt, "/cpus");
24 for (offset = fdt_first_subnode(fdt, cpus_offset);
26 offset = fdt_next_subnode(fdt, offset)) {
27 prop = fdt_getprop(fdt, offset, "device_type", NULL);
36 prop = fdt_getprop(fdt, offset, "enable-method", NULL);
41 for (offset = fdt_first_subnode(fdt, cpus_offset);
43 offset = fdt_next_subnode(fdt, offset)) {
44 prop = fdt_getprop(fdt, offset, "device_type", NULL);
48 ret = fdt_setprop_u64(fdt, offse
[all...]
/u-boot/board/freescale/t208xrdb/
H A Deth_t208xrdb.c34 void fdt_fixup_board_fman_ethernet(void *fdt) argument
45 mac_off = fdt_path_offset(fdt, mac_path[i]);
48 fdt_status_disabled(fdt, mac_off);
53 eth_ph = fdt_get_phandle(fdt, mac_off);
57 eth_off = fdt_node_offset_by_prop_value(fdt, -1, "fsl,fman-mac",
61 fdt_status_disabled(fdt, eth_off);
68 void fdt_fixup_board_phy(void *fdt) argument
78 offset = fdt_path_offset(fdt, phy_path);
84 ret = fdt_setprop(fdt, offset, "reg", &new_addr, sizeof(new_addr));
92 ret = fdt_set_name(fdt, offse
98 fdt_fixup_board_enet(void *fdt) argument
[all...]
/u-boot/board/freescale/lx2160a/
H A Deth_lx2160ardb.c41 static int fdt_get_dpmac_node(void *fdt, int dpmac_id) argument
47 dpmacs_offset = fdt_path_offset(fdt, "/soc/fsl-mc/dpmacs");
49 dpmacs_offset = fdt_path_offset(fdt, "/fsl-mc/dpmacs");
57 offset = fdt_subnode_offset(fdt, dpmacs_offset, dpmac_str);
60 offset = fdt_subnode_offset(fdt, dpmacs_offset, dpmac_str);
71 static int fdt_update_phy_addr(void *fdt, int dpmac_id, int phy_addr) argument
79 offset = fdt_get_dpmac_node(fdt, dpmac_id);
85 phyhandle = (u32 *)fdt_getprop(fdt, offset, "phy-handle", NULL);
91 offset = fdt_node_offset_by_phandle(fdt, fdt32_to_cpu(*phyhandle));
99 err = fdt_setprop(fdt, offse
109 fdt_delete_phy_handle(void *fdt, int dpmac_id) argument
127 fdt_fixup_board_phy_revc(void *fdt) argument
[all...]

Completed in 233 milliseconds

12345678910