/* Update the "rate" property of the registered LCDC clock  */
static void kinetis_lcdc_update_clock_rate(void)
/* Update the "rate" property of the registered LCDC clock  */
static void kinetis_lcdc_update_clock_rate(void)
{
	clk_lcdc.rate = clock_val[CLOCK_MCGOUTCLK] /
		(((KINETIS_SIM->clkdiv3 &
			KINETIS_SIM_CLKDIV3_LCDCDIV_MSK) >>
		KINETIS_SIM_CLKDIV3_LCDCDIV_BITS) + 1) *
		(((KINETIS_SIM->clkdiv3 &
			KINETIS_SIM_CLKDIV3_LCDCFRAC_MSK) >>
		KINETIS_SIM_CLKDIV3_LCDCFRAC_BITS) + 1);
}