plat/xilinx/zynqmp/pm_service/pm_api_clock.c
/**
 * pm_api_clk_get_pll_frac_data() - Get PLL fraction data
 * @pll     PLL id
 * @data    fraction data
 *
 * This function returns fraction data value.
 *
 * @return      Returns status, either success or error+reason
 */
Get PLL fraction data
@pll     PLL id
@data    fraction data

This function returns fraction data value.

@return      Returns status, either success or error+reason
Get PLL fraction data @pll PLL id @data fraction data This function returns fraction data value . @return Returns status either success or error + reason
enum pm_ret_status pm_api_clk_get_pll_frac_data(unsigned int pll,
						unsigned int *data)
{
	enum pm_ret_status ret = PM_RET_SUCCESS;
	unsigned int val, reg;
	if (!pm_clock_valid(pll))
		return PM_RET_ERROR_ARGS;
	if (pm_clock_type(pll) != CLK_TYPE_OUTPUT)
		return PM_RET_ERROR_NOTSUPPORTED;
	if (!ISPLL(pll))
		return PM_RET_ERROR_NOTSUPPORTED;
	reg = clocks[pll].control_reg + PLL_FRAC_OFFSET;
	ret = pm_mmio_read(reg, &val);
	*data = (val & PLL_FRAC_DATA_MASK);
	return ret;
}
enum pm_ret_status pm_api_clk_get_pll_frac_data ( unsigned int pll , unsigned int * data ) { enum pm_ret_status ret = PM_RET_SUCCESS ; unsigned int val , reg ; if ( ! pm_clock_valid ( pll ) ) return PM_RET_ERROR_ARGS ; if ( pm_clock_type ( pll ) != CLK_TYPE_OUTPUT ) return PM_RET_ERROR_NOTSUPPORTED ; if ( ! ISPLL ( pll ) ) return PM_RET_ERROR_NOTSUPPORTED ; reg = clocks [ pll ] . control_reg + PLL_FRAC_OFFSET ; ret = pm_mmio_read ( reg , & val ) ; * data = ( val & PLL_FRAC_DATA_MASK ) ; return ret ; }
pm_api_clk_get_pll_frac_data() - Get PLL fraction data
 @pll     PLL id
 @data    fraction data
pm_api_clk_get_pll_frac_data () - Get PLL fraction data @pll PLL id @data fraction data