/* Get IO clock, returns IO clock in kHz  */
static uint32_t mxs_get_ioclk(enum mxs_ioclock io)
/* Get IO clock, returns IO clock in kHz  */
static uint32_t mxs_get_ioclk(enum mxs_ioclock io)
{
	struct mxs_clkctrl_regs *clkctrl_regs =
		(struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE;
	uint8_t ret;
	int io_reg;
	if ((io < MXC_IOCLK0) || (io > MXC_IOCLK1))
		return 0;
	io_reg = CLKCTRL_FRAC0_IO0 - io;
	ret = readb(&clkctrl_regs->hw_clkctrl_frac0[io_reg]) &
		CLKCTRL_FRAC_FRAC_MASK;
	return (PLL_FREQ_KHZ * PLL_FREQ_COEF) / ret;
}