/* clock: device structure for driver sub_system: pointer to struct litex_clk_clkout casted to clock_control_subsys with all clkout parameters  */
static int litex_clk_get_subsys_rate(const struct device *clock, clock_control_subsys_t sys, uint32_t *rate)
/* clock: device structure for driver sub_system: pointer to struct litex_clk_clkout casted to clock_control_subsys with all clkout parameters  */
static int litex_clk_get_subsys_rate(const struct device *clock, clock_control_subsys_t sys, uint32_t *rate)
{
	struct litex_clk_setup *setup = sys;
	struct litex_clk_clkout *lcko;
	lcko = &ldev->clkouts[setup->clkout_nr];
	*rate = litex_clk_calc_rate(lcko);
	return 0;
}