gfdt_update_node()

Create an FDT node (ARM)

Synopsis:

#include <qvm/firmware.h>
int gfdt_update_node(int parent,
                     const char *nodename,
                     uint64_t unit)

Arguments:

parent
Where to add the node; the new node will be child of this parent node.
nodename
A pointer to the name of the property being set.
unit
The unit number of the new node.

Library:

Provided by qvm; no external library is required.

Description:

If the node isn't already present, this function creates an FDT node.

Returns:

Offset of the new FDT node, or a negative offset if the node already existed.