gfdt_get_clock()
Get the phandle for the clock node in the FDT (ARM)
Synopsis:
#include <qvm/firmware.h>uint32_t gfdt_get_clock(int node,
uint32_t freq)Arguments:
- node
- The FDT offset where the clock node is stored or will be added.
- freq
- The clock frequency, in Hertz.
Description:
This function gets the phandle for the clock node at the offset specified by node in the FDT. If a clock node doesn't already exist at this offset, the function generates one here. 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 clock node; otherwise an errno value.
Page updated:
