plat/xilinx/zynqmp/pm_service/pm_api_clock.c
/**
 * pm_api_clock_disable - Disable the clock for given id
 * @clock_id	Id of the clock to be disable
 *
 * This function is used by master to disable the clock
 * including peripherals and PLL clocks.
 *
 * Return: Returns status, either success or error+reason.
 */
Disable the clock for given id
@clock_id    Id of the clock to be disable

This function is used by master to disable the clock
including peripherals and PLL clocks.

Returns status, either success or error+reason.
Disable the clock for given id @clock_id Id of the clock to be disable This function is used by master to disable the clock including peripherals and PLL clocks . Returns status either success or error + reason .
enum pm_ret_status pm_api_clock_disable(unsigned int clock_id)
{
	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_pll_bypass_and_reset(clock_id,
						  CLK_PLL_RESET_ASSERT);
	else
		ret = pm_api_clk_enable_disable(clock_id, 0);
	return ret;
}
enum pm_ret_status pm_api_clock_disable ( unsigned int clock_id ) { 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_pll_bypass_and_reset ( clock_id , CLK_PLL_RESET_ASSERT ) ; else ret = pm_api_clk_enable_disable ( clock_id , 0 ) ; return ret ; }
pm_api_clock_disable - Disable the clock for given id
 @clock_id    Id of the clock to be disable
pm_api_clock_disable - Disable the clock for given id @clock_id Id of the clock to be disable