/Zephyr-Core-3.6.0/drivers/clock_control/ |
D | clock_control_numaker_scc.c | 29 struct numaker_scc_subsys *scc_subsys = (struct numaker_scc_subsys *)subsys; in numaker_scc_on() local 31 if (scc_subsys->subsys_id == NUMAKER_SCC_SUBSYS_ID_PCC) { in numaker_scc_on() 33 CLK_EnableModuleClock(scc_subsys->pcc.clk_modidx); in numaker_scc_on() 46 struct numaker_scc_subsys *scc_subsys = (struct numaker_scc_subsys *)subsys; in numaker_scc_off() local 48 if (scc_subsys->subsys_id == NUMAKER_SCC_SUBSYS_ID_PCC) { in numaker_scc_off() 50 CLK_DisableModuleClock(scc_subsys->pcc.clk_modidx); in numaker_scc_off() 83 struct numaker_scc_subsys *scc_subsys = (struct numaker_scc_subsys *)subsys; in numaker_scc_configure() local 85 if (scc_subsys->subsys_id == NUMAKER_SCC_SUBSYS_ID_PCC) { in numaker_scc_configure() 87 CLK_SetModuleClock(scc_subsys->pcc.clk_modidx, scc_subsys->pcc.clk_src, in numaker_scc_configure() 88 scc_subsys->pcc.clk_div); in numaker_scc_configure()
|
/Zephyr-Core-3.6.0/drivers/can/ |
D | can_numaker.c | 84 struct numaker_scc_subsys scc_subsys; in can_numaker_init_unlocked() local 87 memset(&scc_subsys, 0x00, sizeof(scc_subsys)); in can_numaker_init_unlocked() 88 scc_subsys.subsys_id = NUMAKER_SCC_SUBSYS_ID_PCC; in can_numaker_init_unlocked() 89 scc_subsys.pcc.clk_modidx = config->clk_modidx; in can_numaker_init_unlocked() 90 scc_subsys.pcc.clk_src = config->clk_src; in can_numaker_init_unlocked() 91 scc_subsys.pcc.clk_div = config->clk_div; in can_numaker_init_unlocked() 94 rc = clock_control_on(config->clk_dev, (clock_control_subsys_t) &scc_subsys); in can_numaker_init_unlocked() 99 rc = clock_control_configure(config->clk_dev, (clock_control_subsys_t)&scc_subsys, NULL); in can_numaker_init_unlocked()
|
/Zephyr-Core-3.6.0/drivers/spi/ |
D | spi_numaker.c | 283 struct numaker_scc_subsys scc_subsys; in spi_numaker_init() local 288 memset(&scc_subsys, 0x00, sizeof(scc_subsys)); in spi_numaker_init() 289 scc_subsys.subsys_id = NUMAKER_SCC_SUBSYS_ID_PCC; in spi_numaker_init() 290 scc_subsys.pcc.clk_modidx = dev_cfg->clk_modidx; in spi_numaker_init() 291 scc_subsys.pcc.clk_src = dev_cfg->clk_src; in spi_numaker_init() 292 scc_subsys.pcc.clk_div = dev_cfg->clk_div; in spi_numaker_init() 295 err = clock_control_on(dev_cfg->clk_dev, (clock_control_subsys_t)&scc_subsys); in spi_numaker_init() 300 err = clock_control_configure(dev_cfg->clk_dev, (clock_control_subsys_t)&scc_subsys, NULL); in spi_numaker_init()
|
/Zephyr-Core-3.6.0/drivers/adc/ |
D | adc_numaker.c | 307 struct numaker_scc_subsys scc_subsys; in adc_numaker_init() local 320 memset(&scc_subsys, 0x00, sizeof(scc_subsys)); in adc_numaker_init() 321 scc_subsys.subsys_id = NUMAKER_SCC_SUBSYS_ID_PCC; in adc_numaker_init() 322 scc_subsys.pcc.clk_modidx = cfg->clk_modidx; in adc_numaker_init() 323 scc_subsys.pcc.clk_src = cfg->clk_src; in adc_numaker_init() 324 scc_subsys.pcc.clk_div = cfg->clk_div; in adc_numaker_init() 327 err = clock_control_on(cfg->clk_dev, (clock_control_subsys_t)&scc_subsys); in adc_numaker_init() 332 err = clock_control_configure(cfg->clk_dev, (clock_control_subsys_t)&scc_subsys, NULL); in adc_numaker_init()
|
/Zephyr-Core-3.6.0/drivers/serial/ |
D | uart_numaker.c | 195 struct numaker_scc_subsys scc_subsys; in uart_numaker_init() local 197 memset(&scc_subsys, 0x00, sizeof(scc_subsys)); in uart_numaker_init() 198 scc_subsys.subsys_id = NUMAKER_SCC_SUBSYS_ID_PCC; in uart_numaker_init() 199 scc_subsys.pcc.clk_modidx = config->clk_modidx; in uart_numaker_init() 200 scc_subsys.pcc.clk_src = config->clk_src; in uart_numaker_init() 201 scc_subsys.pcc.clk_div = config->clk_div; in uart_numaker_init() 204 err = clock_control_on(config->clk_dev, (clock_control_subsys_t)&scc_subsys); in uart_numaker_init() 209 err = clock_control_configure(config->clk_dev, (clock_control_subsys_t)&scc_subsys, NULL); in uart_numaker_init()
|
/Zephyr-Core-3.6.0/drivers/gpio/ |
D | gpio_numaker.c | 58 struct numaker_scc_subsys scc_subsys; in gpio_numaker_configure() local 60 memset(&scc_subsys, 0x00, sizeof(scc_subsys)); in gpio_numaker_configure() 61 scc_subsys.subsys_id = NUMAKER_SCC_SUBSYS_ID_PCC; in gpio_numaker_configure() 62 scc_subsys.pcc.clk_modidx = config->clk_modidx; in gpio_numaker_configure() 65 err = clock_control_on(config->clk_dev, (clock_control_subsys_t)&scc_subsys); in gpio_numaker_configure()
|
/Zephyr-Core-3.6.0/drivers/pwm/ |
D | pwm_numaker.c | 468 struct numaker_scc_subsys scc_subsys; in pwm_numaker_init() local 479 memset(&scc_subsys, 0x00, sizeof(scc_subsys)); in pwm_numaker_init() 480 scc_subsys.subsys_id = NUMAKER_SCC_SUBSYS_ID_PCC; in pwm_numaker_init() 481 scc_subsys.pcc.clk_modidx = cfg->clk_modidx; in pwm_numaker_init() 482 scc_subsys.pcc.clk_src = cfg->clk_src; in pwm_numaker_init() 483 scc_subsys.pcc.clk_div = cfg->clk_div; in pwm_numaker_init() 486 err = clock_control_on(cfg->clk_dev, (clock_control_subsys_t)&scc_subsys); in pwm_numaker_init() 491 err = clock_control_configure(cfg->clk_dev, (clock_control_subsys_t)&scc_subsys, NULL); in pwm_numaker_init()
|
/Zephyr-Core-3.6.0/drivers/i2c/ |
D | i2c_numaker.c | 678 struct numaker_scc_subsys scc_subsys; in i2c_numaker_init() local 694 memset(&scc_subsys, 0x00, sizeof(scc_subsys)); in i2c_numaker_init() 695 scc_subsys.subsys_id = NUMAKER_SCC_SUBSYS_ID_PCC; in i2c_numaker_init() 696 scc_subsys.pcc.clk_modidx = config->clk_modidx; in i2c_numaker_init() 697 scc_subsys.pcc.clk_src = config->clk_src; in i2c_numaker_init() 698 scc_subsys.pcc.clk_div = config->clk_div; in i2c_numaker_init() 701 err = clock_control_on(config->clkctrl_dev, (clock_control_subsys_t) &scc_subsys); in i2c_numaker_init() 707 (clock_control_subsys_t) &scc_subsys, in i2c_numaker_init()
|
/Zephyr-Core-3.6.0/drivers/ethernet/ |
D | eth_numaker.c | 711 struct numaker_scc_subsys scc_subsys; in eth_numaker_init() local 721 memset(&scc_subsys, 0x00, sizeof(scc_subsys)); in eth_numaker_init() 722 scc_subsys.subsys_id = NUMAKER_SCC_SUBSYS_ID_PCC; in eth_numaker_init() 723 scc_subsys.pcc.clk_modidx = cfg->clk_modidx; in eth_numaker_init() 724 scc_subsys.pcc.clk_src = cfg->clk_src; in eth_numaker_init() 725 scc_subsys.pcc.clk_div = cfg->clk_div; in eth_numaker_init() 728 ret = clock_control_on(cfg->clk_dev, (clock_control_subsys_t)&scc_subsys); in eth_numaker_init()
|
/Zephyr-Core-3.6.0/drivers/usb/device/ |
D | usb_dc_numaker.c | 347 struct numaker_scc_subsys scc_subsys; in numaker_usbd_hw_setup() local 362 memset(&scc_subsys, 0x00, sizeof(scc_subsys)); in numaker_usbd_hw_setup() 363 scc_subsys.subsys_id = NUMAKER_SCC_SUBSYS_ID_PCC; in numaker_usbd_hw_setup() 364 scc_subsys.pcc.clk_modidx = config->clk_modidx; in numaker_usbd_hw_setup() 365 scc_subsys.pcc.clk_src = config->clk_src; in numaker_usbd_hw_setup() 366 scc_subsys.pcc.clk_div = config->clk_div; in numaker_usbd_hw_setup() 369 rc = clock_control_on(config->clkctrl_dev, (clock_control_subsys_t)&scc_subsys); in numaker_usbd_hw_setup() 374 rc = clock_control_configure(config->clkctrl_dev, (clock_control_subsys_t)&scc_subsys, in numaker_usbd_hw_setup() 415 struct numaker_scc_subsys scc_subsys; in numaker_usbd_hw_shutdown() local 429 memset(&scc_subsys, 0x00, sizeof(scc_subsys)); in numaker_usbd_hw_shutdown() [all …]
|