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