Lines Matching refs:config
37 const struct clock_control_nrf_auxpll_config *config = dev->config; in clock_control_nrf_auxpll_on() local
43 nrf_auxpll_task_trigger(config->auxpll, NRF_AUXPLL_TASK_START); in clock_control_nrf_auxpll_on()
46 locked = nrf_auxpll_mode_locked_check(config->auxpll); in clock_control_nrf_auxpll_on()
58 const struct clock_control_nrf_auxpll_config *config = dev->config; in clock_control_nrf_auxpll_off() local
62 nrf_auxpll_task_trigger(config->auxpll, NRF_AUXPLL_TASK_STOP); in clock_control_nrf_auxpll_off()
64 while (nrf_auxpll_running_check(config->auxpll)) { in clock_control_nrf_auxpll_off()
73 const struct clock_control_nrf_auxpll_config *config = dev->config; in clock_control_nrf_auxpll_get_rate() local
78 ratio = nrf_auxpll_static_ratio_get(config->auxpll); in clock_control_nrf_auxpll_get_rate()
80 *rate = (ratio * config->ref_clk_hz + in clock_control_nrf_auxpll_get_rate()
81 (config->ref_clk_hz * (uint64_t)config->frequency) / in clock_control_nrf_auxpll_get_rate()
83 config->out_div; in clock_control_nrf_auxpll_get_rate()
91 const struct clock_control_nrf_auxpll_config *config = dev->config; in clock_control_nrf_auxpll_get_status() local
95 if (nrf_auxpll_mode_locked_check(config->auxpll)) { in clock_control_nrf_auxpll_get_status()
111 const struct clock_control_nrf_auxpll_config *config = dev->config; in clock_control_nrf_auxpll_init() local
113 nrf_auxpll_ctrl_frequency_set(config->auxpll, config->frequency); in clock_control_nrf_auxpll_init()
115 nrf_auxpll_lock(config->auxpll); in clock_control_nrf_auxpll_init()
116 nrf_auxpll_trim_ctune_set(config->auxpll, sys_read8(config->ficr_ctune)); in clock_control_nrf_auxpll_init()
117 nrf_auxpll_config_set(config->auxpll, &config->cfg); in clock_control_nrf_auxpll_init()
118 nrf_auxpll_ctrl_outsel_set(config->auxpll, config->out_div); in clock_control_nrf_auxpll_init()
119 nrf_auxpll_unlock(config->auxpll); in clock_control_nrf_auxpll_init()
121 nrf_auxpll_ctrl_mode_set(config->auxpll, NRF_AUXPLL_CTRL_MODE_LOCKED); in clock_control_nrf_auxpll_init()
127 static const struct clock_control_nrf_auxpll_config config##n = { \
144 DEVICE_DT_INST_DEFINE(n, clock_control_nrf_auxpll_init, NULL, NULL, &config##n, \