Home
last modified time | relevance | path

Searched refs:clkid (Results 1 – 22 of 22) sorted by relevance

/Zephyr-latest/drivers/pinctrl/
Dpinctrl_gd32_afio.c68 uint16_t clkid = DT_CLOCKS_CELL(AFIO_NODE, id); in afio_init() local
72 (clock_control_subsys_t)&clkid); in afio_init()
123 uint16_t clkid; in configure_pin() local
128 clkid = gd32_port_clkids[port_idx]; in configure_pin()
142 (clock_control_subsys_t)&clkid); in configure_pin()
Dpinctrl_gd32_af.c81 uint16_t clkid; in pinctrl_configure_pin() local
86 clkid = gd32_port_clkids[port_idx]; in pinctrl_configure_pin()
92 (clock_control_subsys_t)&clkid); in pinctrl_configure_pin()
/Zephyr-latest/drivers/watchdog/
Dwdt_dw.c43 clock_control_subsys_t clkid; member
182 ret = clock_control_get_rate(dev_config->clk_dev, dev_config->clkid,
261 IF_ENABLED(DT_PHA_HAS_CELL(DT_DRV_INST(inst), clocks, clkid), \
264 .clkid = (clock_control_subsys_t)DT_INST_CLOCKS_CELL(inst, clkid), \
274 (COND_CODE_1(DT_PHA_HAS_CELL(DT_DRV_INST(inst), clocks, clkid), \
Dwdt_wwdgt_gd32.c27 uint16_t clkid; member
60 (clock_control_subsys_t)&config->clkid, in gd32_wwdgt_calc_ticks()
207 (clock_control_subsys_t)&config->clkid); in gd32_wwdgt_init()
215 .clkid = DT_INST_CLOCKS_CELL(0, id),
/Zephyr-latest/drivers/pwm/
Dpwm_gd32.c43 uint16_t clkid; member
158 (clock_control_subsys_t)&config->clkid); in pwm_gd32_init()
170 (clock_control_subsys_t)&config->clkid, in pwm_gd32_init()
196 .clkid = DT_CLOCKS_CELL(DT_INST_PARENT(i), id), \
/Zephyr-latest/drivers/dac/
Ddac_gd32.c38 uint16_t clkid; member
164 (clock_control_subsys_t)&cfg->clkid); in dac_gd32_init()
177 .clkid = DT_INST_CLOCKS_CELL(0, id),
/Zephyr-latest/drivers/clock_control/
Dclock_control_rpi_pico.c225 enum rpi_pico_clkid clkid = (enum rpi_pico_clkid)sys; in rpi_pico_frequency_count() local
229 switch (clkid) { in rpi_pico_frequency_count()
542 enum rpi_pico_clkid clkid = (enum rpi_pico_clkid)sys; in clock_control_rpi_pico_on() local
544 if (rpi_pico_is_valid_clock_index(clkid) < 0) { in clock_control_rpi_pico_on()
548 switch (clkid) { in clock_control_rpi_pico_on()
556 hw_set_bits(&config->clocks_regs->clk[clkid].ctrl, CTRL_ENABLE_BITS); in clock_control_rpi_pico_on()
565 enum rpi_pico_clkid clkid = (enum rpi_pico_clkid)sys; in clock_control_rpi_pico_off() local
567 if (rpi_pico_is_valid_clock_index(clkid) < 0) { in clock_control_rpi_pico_off()
571 switch (clkid) { in clock_control_rpi_pico_off()
579 hw_clear_bits(&config->clocks_regs->clk[clkid].ctrl, CTRL_ENABLE_BITS); in clock_control_rpi_pico_off()
[all …]
/Zephyr-latest/drivers/sdhc/
Dsdhc_cdns.c37 clock_control_subsys_t clkid; member
158 sdhc_config->clkid, &data->params.clk_rate); in sdhc_cdns_init()
252 .clkid = (clock_control_subsys_t)0, \
257 .clkid = (clock_control_subsys_t)DT_INST_CLOCKS_CELL(inst, clkid), \
/Zephyr-latest/drivers/counter/
Dcounter_dw_timer.c54 clock_control_subsys_t clkid; member
331 timer_config->clkid, &data->freq); in counter_dw_timer_init()
367 .clkid = (clock_control_subsys_t)DT_INST_CLOCKS_CELL(inst, clkid), \
Dcounter_gd32_timer.c44 uint16_t clkid; member
434 (clock_control_subsys_t)&cfg->clkid); in counter_gd32_timer_init()
436 (clock_control_subsys_t)&cfg->clkid, &pclk); in counter_gd32_timer_init()
519 .clkid = DT_INST_CLOCKS_CELL(n, id), \
/Zephyr-latest/drivers/serial/
Duart_lpc11u6x.h136 uint32_t clkid; member
175 uint32_t clkid; member
Duart_lpc11u6x.c89 clock_control_get_rate(clk_drv, (clock_control_subsys_t) cfg->clkid, in lpc11u6x_uart0_config_baudrate()
355 clock_control_on(cfg->clock_dev, (clock_control_subsys_t) cfg->clkid); in lpc11u6x_uart0_init()
393 .clkid = DT_PHA_BY_IDX(DT_NODELABEL(uart0), clocks, 0, clkid),
498 clock_control_get_rate(clk_drv, (clock_control_subsys_t) cfg->clkid, in lpc11u6x_uartx_config_baud()
789 clock_control_on(cfg->clock_dev, (clock_control_subsys_t) cfg->clkid); in lpc11u6x_uartx_init()
864 .clkid = DT_PHA_BY_IDX(DT_NODELABEL(uart##idx), clocks, 0, clkid), \
Dusart_gd32.c26 uint16_t clkid; member
89 (clock_control_subsys_t)&cfg->clkid); in usart_gd32_init()
335 .clkid = DT_INST_CLOCKS_CELL(n, id), \
Duart_ns16550.c1939 0, clocks, clkid), \
/Zephyr-latest/drivers/i2c/
Di2c_lpc11u6x.c23 clock_control_get_rate(clk_dev, (clock_control_subsys_t) cfg->clkid, in lpc11u6x_i2c_set_bus_speed()
323 clock_control_on(cfg->clock_dev, (clock_control_subsys_t) cfg->clkid); in lpc11u6x_i2c_init()
365 .clkid = DT_INST_PHA_BY_IDX(idx, clocks, 0, clkid), \
Di2c_lpc11u6x.h74 uint32_t clkid; member
Di2c_gd32.c39 uint16_t clkid; member
504 (clock_control_subsys_t)&cfg->clkid, in i2c_gd32_configure()
671 (clock_control_subsys_t)&cfg->clkid); in i2c_gd32_init()
706 .clkid = DT_INST_CLOCKS_CELL(inst, id), \
/Zephyr-latest/drivers/gpio/
Dgpio_gd32.c48 uint16_t clkid; member
352 (clock_control_subsys_t)&config->clkid); in gpio_gd32_init()
367 .clkid = DT_INST_CLOCKS_CELL(n, id), \
Dgpio_lpc11u6x.c504 .clock_subsys = (clock_control_subsys_t) DT_INST_PHA(0, clocks, clkid),
/Zephyr-latest/drivers/adc/
Dadc_gd32.c136 uint16_t clkid; member
386 (clock_control_subsys_t)&cfg->clkid); in adc_gd32_init()
493 .clkid = DT_INST_CLOCKS_CELL(n, id), \
/Zephyr-latest/drivers/spi/
Dspi_gd32.c61 uint16_t clkid; member
177 (clock_control_subsys_t)&cfg->clkid, in spi_gd32_configure()
594 (clock_control_subsys_t)&cfg->clkid); in spi_gd32_init()
680 .clkid = DT_INST_CLOCKS_CELL(idx, id), \
/Zephyr-latest/drivers/dma/
Ddma_gd32.c64 uint16_t clkid; member
605 (clock_control_subsys_t)&cfg->clkid); in dma_gd32_init()
679 .clkid = DT_INST_CLOCKS_CELL(inst, id), \