Home
last modified time | relevance | path

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

/arch/arm/boot/compressed/
Datags_to_fdt.c12 static int node_offset(void *fdt, const char *node_path) in node_offset() argument
14 int offset = fdt_path_offset(fdt, node_path); in node_offset()
16 offset = fdt_add_subnode(fdt, 0, node_path); in node_offset()
20 static int setprop(void *fdt, const char *node_path, const char *property, in setprop() argument
23 int offset = node_offset(fdt, node_path); in setprop()
26 return fdt_setprop(fdt, offset, property, val_array, size); in setprop()
29 static int setprop_string(void *fdt, const char *node_path, in setprop_string() argument
32 int offset = node_offset(fdt, node_path); in setprop_string()
35 return fdt_setprop_string(fdt, offset, property, string); in setprop_string()
38 static int setprop_cell(void *fdt, const char *node_path, in setprop_cell() argument
[all …]
D.gitignore15 fdt.c
16 fdt.h
DMakefile77 libfdt := fdt_rw.c fdt_ro.c fdt_wip.c fdt.c
78 libfdt_hdrs := fdt.h libfdt.h libfdt_internal.h
/arch/powerpc/boot/
Dlibfdt-wrapper.c54 static void *fdt; variable
61 int size = fdt_totalsize(fdt); in expand_buf()
68 rc = fdt_open_into(fdt, buf, size); in expand_buf()
73 fdt = buf; in expand_buf()
78 return offset_devp(fdt_path_offset(fdt, path)); in fdt_wrapper_finddevice()
87 p = fdt_getprop(fdt, devp_offset(devp), name, &len); in fdt_wrapper_getprop()
99 rc = fdt_setprop(fdt, devp_offset(devp), name, buf, len); in fdt_wrapper_setprop()
102 rc = fdt_setprop(fdt, devp_offset(devp), name, buf, len); in fdt_wrapper_setprop()
110 return fdt_del_node(fdt, devp_offset(devp)); in fdt_wrapper_del_node()
115 return offset_devp(fdt_parent_offset(fdt, devp_offset(devp))); in fdt_wrapper_get_parent()
[all …]
D.gitignore35 fdt.c
36 fdt.h
DMakefile70 libfdt := fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c
71 libfdtheader := fdt.h libfdt.h libfdt_internal.h
/arch/mips/generic/
Dinit.c27 static __initdata const void *fdt; variable
43 fdt = (void *)fw_arg1; in prom_init()
46 match = mips_machine_is_compatible(check_mach, fdt); in prom_init()
76 fdt = mach->fdt; in prom_init()
79 BUG_ON(!fdt); in prom_init()
84 return (void *)fdt; in plat_get_fdt()
90 fdt = mach->fixup_fdt(fdt, mach_match_data); in plat_mem_setup()
93 __dt_setup_arch((void *)fdt); in plat_mem_setup()
/arch/arm64/kernel/
Dkaslr.c27 static __init u64 get_kaslr_seed(void *fdt) in get_kaslr_seed() argument
33 node = fdt_path_offset(fdt, "/chosen"); in get_kaslr_seed()
37 prop = fdt_getprop_w(fdt, node, "kaslr-seed", &len); in get_kaslr_seed()
46 static __init const u8 *kaslr_get_cmdline(void *fdt) in kaslr_get_cmdline() argument
54 node = fdt_path_offset(fdt, "/chosen"); in kaslr_get_cmdline()
58 prop = fdt_getprop(fdt, node, "bootargs", NULL); in kaslr_get_cmdline()
80 void *fdt; in kaslr_early_init() local
98 fdt = __fixmap_remap_fdt(dt_phys, &size, PAGE_KERNEL); in kaslr_early_init()
99 if (!fdt) in kaslr_early_init()
105 seed = get_kaslr_seed(fdt); in kaslr_early_init()
[all …]
/arch/mips/mti-malta/
Dmalta-dtshim.c51 static void __init append_memory(void *fdt, int root_off) in append_memory() argument
62 mem_off = fdt_path_offset(fdt, "/memory"); in append_memory()
110 mem_off = fdt_add_subnode(fdt, root_off, "memory"); in append_memory()
114 err = fdt_setprop_string(fdt, mem_off, "device_type", "memory"); in append_memory()
119 err = fdt_setprop(fdt, mem_off, "reg", mem_array, in append_memory()
125 err = fdt_setprop(fdt, mem_off, "linux,usable-memory", mem_array, in append_memory()
131 void __init *malta_dt_shim(void *fdt) in malta_dt_shim() argument
136 if (fdt_check_header(fdt)) in malta_dt_shim()
139 err = fdt_open_into(fdt, fdt_buf, sizeof(fdt_buf)); in malta_dt_shim()
153 return fdt; in malta_dt_shim()
Dmalta-setup.c260 void *fdt = __dtb_start; in plat_mem_setup() local
262 fdt = malta_dt_shim(fdt); in plat_mem_setup()
263 __dt_setup_arch(fdt); in plat_mem_setup()
/arch/mips/include/asm/mach-malta/
Dmalta-dtshim.h18 extern void __init *malta_dt_shim(void *fdt);
22 static inline void *malta_dt_shim(void *fdt) in malta_dt_shim() argument
24 return fdt; in malta_dt_shim()
/arch/mips/include/asm/
Dmachine.h19 const void *fdt; member
21 const void *(*fixup_fdt)(const void *fdt, const void *match_data);
48 mips_machine_is_compatible(const struct mips_machine *mach, const void *fdt) in mips_machine_is_compatible() argument
56 if (fdt_node_check_compatible(fdt, 0, match->compatible) == 0) in mips_machine_is_compatible()
/arch/openrisc/kernel/
Dsetup.c211 void __init or32_early_setup(void *fdt) in or32_early_setup() argument
213 if (fdt) in or32_early_setup()
214 pr_info("FDT at %p\n", fdt); in or32_early_setup()
216 fdt = __dtb_start; in or32_early_setup()
217 pr_info("Compiled-in FDT at %p\n", fdt); in or32_early_setup()
219 early_init_devtree(fdt); in or32_early_setup()
/arch/h8300/kernel/
Dsetup.c62 void __init h8300_fdt_init(void *fdt, char *bootargs) in h8300_fdt_init() argument
64 if (!fdt) in h8300_fdt_init()
65 fdt = __dtb_start; in h8300_fdt_init()
69 early_init_dt_scan(fdt); in h8300_fdt_init()
/arch/microblaze/kernel/
Dsetup.c100 unsigned int fdt, unsigned int msr, unsigned int tlb0, in machine_early_init() argument
149 if (fdt) in machine_early_init()
150 pr_info("FDT at 0x%08x\n", fdt); in machine_early_init()
/arch/microblaze/include/asm/
Dsetup.h39 unsigned int fdt, unsigned int msr, unsigned int tlb0,
/arch/c6x/kernel/
Dsetup.c273 void *fdt = _fdt_start; in machine_init() local
290 if (dtb && dtb != fdt) in machine_init()
291 fdt = dtb; in machine_init()
294 early_init_dt_scan(fdt); in machine_init()
/arch/mips/cavium-octeon/
Dsetup.c1103 const void *fdt; in device_tree_init() local
1108 fdt = &__appended_dtb; in device_tree_init()
1114 fdt = phys_to_virt(octeon_bootinfo->fdt_addr); in device_tree_init()
1115 if (fdt_check_header(fdt)) in device_tree_init()
1120 fdt = &__dtb_octeon_68xx_begin; in device_tree_init()
1123 fdt = &__dtb_octeon_3xxx_begin; in device_tree_init()
1127 initial_boot_params = (void *)fdt; in device_tree_init()
/arch/arm/boot/dts/
Dkirkwood-mplcec4.dts178 label = "fdt";
/arch/arm/mach-s3c64xx/
DKconfig317 Select this if a fdt blob is available for your S3C64XX SoC based
/arch/arm/mach-s3c24xx/
DKconfig402 Select this if a fdt blob is available for the S3C2416 SoC based board.