/* Return a clock value for the specified clock.  */
unsigned int m2s_clock_get(enum m2s_clock clck)
/* Return a clock value for the specified clock.  */
unsigned int m2s_clock_get(enum m2s_clock clck)
{
	unsigned int val = 0;
	switch (clck)  {
	case CLCK_PCLK0:
		val = m2s_clock_pclk0;
		break;
	case CLCK_PCLK1:
		val = m2s_clock_pclk1;
		break;
	case CLCK_SYSREF:
		val = CONFIG_SYS_M2S_SYSREF;
		break;
	}
	return val;
}