plat/xilinx/zynqmp/pm_service/pm_api_clock.c
/**
 * pll_get_lockbit() -  Returns lockbit index for pll id
 * @pll_id: Id of the pll
 *
 * This function return the PLL_LOCKED bit index in
 * pll status register accosiated with given pll id.
 *
 * Return: Returns bit index
 */
Returns lockbit index for pll id
@pll_id: Id of the pll

This function return the PLL_LOCKED bit index in
pll status register accosiated with given pll id.

Returns bit index
Returns lockbit index for pll id @pll_id : Id of the pll This function return the PLL_LOCKED bit index in pll status register accosiated with given pll id . Returns bit index
static int pll_get_lockbit(unsigned int pll_id)
{
	switch (pll_id) {
	case CLK_APLL_INT:
	case CLK_IOPLL_INT:
		return 0;
	case CLK_DPLL_INT:
	case CLK_RPLL_INT:
		return 1;
	case CLK_VPLL_INT:
		return 2;
	default:
		return -1;
	}
}
static int pll_get_lockbit ( unsigned int pll_id ) { switch ( pll_id ) { case CLK_APLL_INT : case CLK_IOPLL_INT : return 0 ; case CLK_DPLL_INT : case CLK_RPLL_INT : return 1 ; case CLK_VPLL_INT : return 2 ; default : return -1 ; } }
pll_get_lockbit() -  Returns lockbit index for pll id
 @pll_id: Id of the pll
pll_get_lockbit () - Returns lockbit index for pll id @pll_id : Id of the pll