]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
8b50d526 SG |
2 | /* |
3 | * Copyright (c) 2017 Google, Inc | |
4 | * Written by Simon Glass <[email protected]> | |
5 | * | |
8b50d526 SG |
6 | * Support for a 'live' (as opposed to flat) device tree |
7 | */ | |
8 | ||
9 | #ifndef _OF_LIVE_H | |
10 | #define _OF_LIVE_H | |
11 | ||
12 | struct device_node; | |
13 | ||
14 | /** | |
15 | * of_live_build() - build a live (hierarchical) tree from a flat DT | |
16 | * | |
17 | * @fdt_blob: Input tree to convert | |
18 | * @rootp: Returns live tree that was created | |
19 | * @return 0 if OK, -ve on error | |
20 | */ | |
21 | int of_live_build(const void *fdt_blob, struct device_node **rootp); | |
22 | ||
23 | #endif |