blob: f5303bb0186bf12e7e4a0f32518939ab7a0a70fe [file] [log] [blame]
Simon Glass8b50d522017-05-18 20:08:55 -06001/*
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
13struct 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 */
22int of_live_build(const void *fdt_blob, struct device_node **rootp);
23
24#endif