lib/sw_apps/zynqmp_pmufw/src/pm_pll.c
static s32 PmPllInit(PmNode* const node)
{
	PmPll* pll = (PmPll*)node->derived;
	u32 ctrl = XPfw_Read32(pll->addr + PM_PLL_CTRL_OFFSET);
	s32 status = XST_SUCCESS;

	if (0U == (ctrl & PM_PLL_CTRL_RESET_MASK)) {
		node->currState = PM_PLL_STATE_LOCKED;
		if (NULL != node->parent) {
			status = PmPowerRequestParent(node);
		}
	} else {
		node->currState = PM_PLL_STATE_RESET;
	}

	return status;
}
/**
 * PmPllInit() - Initialize the PLL
 * @node	PLL node
 *
 * @note	This function does not affect the PLL configuration in hardware.
 */
Initialize the PLL
@node        PLL node

@note        This function does not affect the PLL configuration in hardware.
Initialize the PLL @node PLL node @note This function does not affect the PLL configuration in hardware .
static s32 PmPllInit(PmNode* const node)
{
	PmPll* pll = (PmPll*)node->derived;
	u32 ctrl = XPfw_Read32(pll->addr + PM_PLL_CTRL_OFFSET);
	s32 status = XST_SUCCESS;
	if (0U == (ctrl & PM_PLL_CTRL_RESET_MASK)) {
		node->currState = PM_PLL_STATE_LOCKED;
		if (NULL != node->parent) {
			status = PmPowerRequestParent(node);
		}
	} else {
		node->currState = PM_PLL_STATE_RESET;
	}
	return status;
}
static s32 PmPllInit ( PmNode * const node ) { PmPll * pll = ( PmPll * ) node -> derived ; u32 ctrl = XPfw_Read32 ( pll -> addr + PM_PLL_CTRL_OFFSET ) ; s32 status = XST_SUCCESS ; if ( 0U == ( ctrl & PM_PLL_CTRL_RESET_MASK ) ) { node -> currState = PM_PLL_STATE_LOCKED ; if ( NULL != node -> parent ) { status = PmPowerRequestParent ( node ) ; } } else { node -> currState = PM_PLL_STATE_RESET ; } return status ; }
PmPllInit() - Initialize the PLL
 @node        PLL node
PmPllInit () - Initialize the PLL @node PLL node