.
common/board\_f.c
1 static int reserve_fdt(void)
2 {
3 #ifndef CONFIG_OF_EMBED
4 /*
5 * If the device tree is sitting immediately above our image then we
6 * must relocate it. If it is embedded in the data section, then it
7 * will be relocated with other data.
8 */
9 if (gd->fdt_blob) {
10 gd->fdt_size = ALIGN(fdt_totalsize(gd->fdt_blob) + 0x1000, 32);
11
12 gd->start_addr_sp -= gd->fdt_size;
13 gd->new_fdt = map_sysmem(gd->start_addr_sp, gd->fdt_size);
14 debug("Reserving %lu Bytes for FDT at: %08lx\n",
15 gd->fdt_size, gd->start_addr_sp);
16 }
17 #endif
18
19 return 0;
20 }
- 3번 줄의
CONFIG_OF_EMBED
이 정의되어 있어reserve_fdt
는 아무런 역할을 수행하지 않고 종료합니다.
.
.
.