plat/xilinx/zynqmp/pm_service/pm_api_clock.c
/**
 * pm_api_clock_get_attributes() - PM call to request a clock's attributes
 * @clock_id	Clock ID
 * @attr	Clock attributes
 *
 * This function is used by master to get clock's attributes
 * (e.g. valid, clock type, etc).
 *
 * @return	Returns status, either success or error+reason
 */
PM call to request a clock's attributes
@clock_id    Clock ID
@attr        Clock attributes

This function is used by master to get clock's attributes
.

@return      Returns status, either success or error+reason
PM call to request a clock ' s attributes @clock_id Clock ID @attr Clock attributes This function is used by master to get clock ' s attributes . @return Returns status either success or error + reason
enum pm_ret_status pm_api_clock_get_attributes(unsigned int clock_id,
					       uint32_t *attr)
{
	if (clock_id >= CLK_MAX)
		return PM_RET_ERROR_ARGS;
	*attr = pm_clock_valid(clock_id);
	*attr |= (pm_clock_init_enable(clock_id) << CLK_INIT_ENABLE_SHIFT);
	*attr |= (pm_clock_type(clock_id) << CLK_TYPE_SHIFT);
	return PM_RET_SUCCESS;
}
enum pm_ret_status pm_api_clock_get_attributes ( unsigned int clock_id , uint32_t * attr ) { if ( clock_id >= CLK_MAX ) return PM_RET_ERROR_ARGS ; * attr = pm_clock_valid ( clock_id ) ; * attr |= ( pm_clock_init_enable ( clock_id ) << CLK_INIT_ENABLE_SHIFT ) ; * attr |= ( pm_clock_type ( clock_id ) << CLK_TYPE_SHIFT ) ; return PM_RET_SUCCESS ; }
pm_api_clock_get_attributes() - PM call to request a clock's attributes
 @clock_id    Clock ID
 @attr        Clock attributes
pm_api_clock_get_attributes () - PM call to request a clock ' s attributes @clock_id Clock ID @attr Clock attributes
/* Clock valid bit */ /* If clock needs to be enabled during init */ /* Clock type (Output/External) */