This source file includes following definitions.
- early_init_devtree
1
2
3
4
5
6
7
8
9
10
11
12
13 #include <linux/init.h>
14 #include <linux/types.h>
15 #include <linux/memblock.h>
16 #include <linux/of.h>
17 #include <linux/of_fdt.h>
18 #include <linux/io.h>
19
20 #include <asm/sections.h>
21
22 void __init early_init_devtree(void *params)
23 {
24 __be32 *dtb = (u32 *)__dtb_start;
25 #if defined(CONFIG_NIOS2_DTB_AT_PHYS_ADDR)
26 if (be32_to_cpup((__be32 *)CONFIG_NIOS2_DTB_PHYS_ADDR) ==
27 OF_DT_HEADER) {
28 params = (void *)CONFIG_NIOS2_DTB_PHYS_ADDR;
29 early_init_dt_scan(params);
30 return;
31 }
32 #endif
33 if (be32_to_cpu((__be32) *dtb) == OF_DT_HEADER)
34 params = (void *)__dtb_start;
35
36 early_init_dt_scan(params);
37 }