blob: b2b9679ae84145682350d8dc3784de8840835259 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Simon Glass8b50d522017-05-18 20:08:55 -06002/*
3 * Copyright (c) 2017 Google, Inc
4 * Written by Simon Glass <sjg@chromium.org>
5 *
Simon Glass8b50d522017-05-18 20:08:55 -06006 * Support for a 'live' (as opposed to flat) device tree
7 */
8
9#ifndef _OF_LIVE_H
10#define _OF_LIVE_H
11
12struct 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
Heinrich Schuchardt185f8122022-01-19 18:05:50 +010019 * Return: 0 if OK, -ve on error
Simon Glass8b50d522017-05-18 20:08:55 -060020 */
21int of_live_build(const void *fdt_blob, struct device_node **rootp);
22
23#endif