Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/drivers/dai/nxp/sai/
Dsai.h257 struct sai_clock_data clk_data; member
325 static int clk_lookup_by_name(const struct sai_clock_data *clk_data, char *name) in clk_lookup_by_name() argument
329 for (i = 0; i < clk_data->clock_num; i++) { in clk_lookup_by_name()
330 if (!strcmp(name, clk_data->clock_names[i])) { in clk_lookup_by_name()
338 static int get_mclk_rate(const struct sai_clock_data *clk_data, in get_mclk_rate() argument
360 clk_idx = clk_lookup_by_name(clk_data, clk_name); in get_mclk_rate()
366 return clock_control_get_rate(clk_data->dev, in get_mclk_rate()
367 UINT_TO_POINTER(clk_data->clocks[clk_idx]), in get_mclk_rate()
Dsai.c63 ret = get_mclk_rate(&cfg->clk_data, bclk_source, &mclk_rate); in sai_mclk_config()
829 for (i = 0; i < cfg->clk_data.clock_num; i++) { in sai_init()
830 ret = clock_control_on(cfg->clk_data.dev, in sai_init()
831 UINT_TO_POINTER(cfg->clk_data.clocks[i])); in sai_init()
836 LOG_DBG("clock %s has been ungated", cfg->clk_data.clock_names[i]); in sai_init()
917 .clk_data = SAI_CLOCK_DATA_DECLARE(inst), \