plat/xilinx/zynqmp/pm_service/pm_api_clock.c
/**
 * pm_api_clock_getstate - Get the clock state for given id
 * @clock_id	Id of the clock to be queried
 * @state	1/0 (Enabled/Disabled)
 *
 * This function is used by master to get the state of clock
 * including peripherals and PLL clocks.
 *
 * Return: Returns status, either success or error+reason.
 */
Get the clock state for given id
@clock_id    Id of the clock to be queried
@state       1/0 (Enabled/Disabled)

This function is used by master to get the state of clock
including peripherals and PLL clocks.

Returns status, either success or error+reason.
Get the clock state for given id @clock_id Id of the clock to be queried @state 1 / 0 ( Enabled / Disabled ) This function is used by master to get the state of clock including peripherals and PLL clocks . Returns status either success or error + reason .
enum pm_ret_status pm_api_clock_getstate(unsigned int clock_id,
					 unsigned int *state)
{
	enum pm_ret_status ret = PM_RET_SUCCESS;
	if (!pm_clock_valid(clock_id))
		return PM_RET_ERROR_ARGS;
	if (pm_clock_type(clock_id) != CLK_TYPE_OUTPUT)
		return PM_RET_ERROR_NOTSUPPORTED;
	if (ISPLL(clock_id))
		ret = pm_api_get_pll_state(clock_id, state);
	else
		ret = pm_api_get_clk_state(clock_id, state);
	return ret;
}
enum pm_ret_status pm_api_clock_getstate ( unsigned int clock_id , unsigned int * state ) { enum pm_ret_status ret = PM_RET_SUCCESS ; if ( ! pm_clock_valid ( clock_id ) ) return PM_RET_ERROR_ARGS ; if ( pm_clock_type ( clock_id ) != CLK_TYPE_OUTPUT ) return PM_RET_ERROR_NOTSUPPORTED ; if ( ISPLL ( clock_id ) ) ret = pm_api_get_pll_state ( clock_id , state ) ; else ret = pm_api_get_clk_state ( clock_id , state ) ; return ret ; }
pm_api_clock_getstate - Get the clock state for given id
 @clock_id    Id of the clock to be queried
 @state       1/0 (Enabled/Disabled)
pm_api_clock_getstate - Get the clock state for given id @clock_id Id of the clock to be queried @state 1 / 0 ( Enabled / Disabled )