gfdt_get_clock()
Generate a clock node in the FDT (ARM)
Synopsis:
#include <qvm/firmware.h>int gfdt_get_clock(int node,
unsigned freq)Arguments:
- node
- The FDT node offset to which the clock is being added.
- freq
- The clock frequency, in hertz.
Description:
If one doesn't already exist, this function creates a clock node for an FDT. The freq argument sets the clock frequency the guest will see; for example, to set the clock frequency to 32.768 KHz, set freq to 32768.
Returns:
If successful, a phandle for the node; otherwise errno is set.
Page updated:
