Home
last modified time | relevance | path

Searched refs:clk_data (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/drivers/dai/nxp/sai/
Dsai.h263 struct sai_clock_data clk_data; member
331 static int clk_lookup_by_name(const struct sai_clock_data *clk_data, char *name) in clk_lookup_by_name() argument
335 for (i = 0; i < clk_data->clock_num; i++) { in clk_lookup_by_name()
336 if (!strcmp(name, clk_data->clock_names[i])) { in clk_lookup_by_name()
344 static int get_mclk_rate(const struct sai_clock_data *clk_data, in get_mclk_rate() argument
366 clk_idx = clk_lookup_by_name(clk_data, clk_name); in get_mclk_rate()
372 return clock_control_get_rate(clk_data->dev, in get_mclk_rate()
373 UINT_TO_POINTER(clk_data->clocks[clk_idx]), in get_mclk_rate()
Dsai.c65 ret = get_mclk_rate(&cfg->clk_data, bclk_source, &mclk_rate); in sai_mclk_config()
838 for (i = 0; i < cfg->clk_data.clock_num; i++) { in sai_clks_enable_disable()
839 clk_id = UINT_TO_POINTER(cfg->clk_data.clocks[i]); in sai_clks_enable_disable()
842 ret = clock_control_on(cfg->clk_data.dev, clk_id); in sai_clks_enable_disable()
844 ret = clock_control_off(cfg->clk_data.dev, clk_id); in sai_clks_enable_disable()
849 cfg->clk_data.clocks[i], ret); in sai_clks_enable_disable()
974 .clk_data = SAI_CLOCK_DATA_DECLARE(inst), \