Home
last modified time | relevance | path

Searched refs:scc_subsys (Results 1 – 13 of 13) sorted by relevance

/Zephyr-latest/drivers/clock_control/
Dclock_control_numaker_scc.c29 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-latest/drivers/watchdog/
Dwdt_wwdt_numaker.c251 struct numaker_scc_subsys scc_subsys; in wwdt_numaker_init() local
258 memset(&scc_subsys, 0x00, sizeof(scc_subsys)); in wwdt_numaker_init()
259 scc_subsys.subsys_id = NUMAKER_SCC_SUBSYS_ID_PCC; in wwdt_numaker_init()
260 scc_subsys.pcc.clk_modidx = cfg->clk_modidx; in wwdt_numaker_init()
261 scc_subsys.pcc.clk_src = cfg->clk_src; in wwdt_numaker_init()
262 scc_subsys.pcc.clk_div = cfg->clk_div; in wwdt_numaker_init()
265 err = clock_control_on(cfg->clk_dev, (clock_control_subsys_t)&scc_subsys); in wwdt_numaker_init()
271 err = clock_control_configure(cfg->clk_dev, (clock_control_subsys_t)&scc_subsys, NULL); in wwdt_numaker_init()
/Zephyr-latest/drivers/can/
Dcan_numaker.c84 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-latest/drivers/spi/
Dspi_numaker.c297 struct numaker_scc_subsys scc_subsys; in spi_numaker_init() local
302 memset(&scc_subsys, 0x00, sizeof(scc_subsys)); in spi_numaker_init()
303 scc_subsys.subsys_id = NUMAKER_SCC_SUBSYS_ID_PCC; in spi_numaker_init()
304 scc_subsys.pcc.clk_modidx = dev_cfg->clk_modidx; in spi_numaker_init()
305 scc_subsys.pcc.clk_src = dev_cfg->clk_src; in spi_numaker_init()
306 scc_subsys.pcc.clk_div = dev_cfg->clk_div; in spi_numaker_init()
309 err = clock_control_on(dev_cfg->clk_dev, (clock_control_subsys_t)&scc_subsys); in spi_numaker_init()
314 err = clock_control_configure(dev_cfg->clk_dev, (clock_control_subsys_t)&scc_subsys, NULL); in spi_numaker_init()
/Zephyr-latest/drivers/adc/
Dadc_numaker.c317 struct numaker_scc_subsys scc_subsys; in adc_numaker_init() local
330 memset(&scc_subsys, 0x00, sizeof(scc_subsys)); in adc_numaker_init()
331 scc_subsys.subsys_id = NUMAKER_SCC_SUBSYS_ID_PCC; in adc_numaker_init()
332 scc_subsys.pcc.clk_modidx = cfg->clk_modidx; in adc_numaker_init()
333 scc_subsys.pcc.clk_src = cfg->clk_src; in adc_numaker_init()
334 scc_subsys.pcc.clk_div = cfg->clk_div; in adc_numaker_init()
337 err = clock_control_on(cfg->clk_dev, (clock_control_subsys_t)&scc_subsys); in adc_numaker_init()
342 err = clock_control_configure(cfg->clk_dev, (clock_control_subsys_t)&scc_subsys, NULL); in adc_numaker_init()
/Zephyr-latest/drivers/serial/
Duart_numaker.c195 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-latest/drivers/gpio/
Dgpio_numaker.c253 struct numaker_scc_subsys scc_subsys; \
257 memset(&scc_subsys, 0x00, sizeof(scc_subsys)); \
258 scc_subsys.subsys_id = NUMAKER_SCC_SUBSYS_ID_PCC; \
259 scc_subsys.pcc.clk_modidx = config->clk_modidx; \
260 err = clock_control_on(config->clk_dev, (clock_control_subsys_t)&scc_subsys); \
/Zephyr-latest/drivers/pwm/
Dpwm_numaker.c468 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-latest/drivers/rtc/
Drtc_numaker.c381 struct numaker_scc_subsys scc_subsys; in rtc_numaker_init() local
386 memset(&scc_subsys, 0x00, sizeof(scc_subsys)); in rtc_numaker_init()
387 scc_subsys.subsys_id = NUMAKER_SCC_SUBSYS_ID_PCC; in rtc_numaker_init()
388 scc_subsys.pcc.clk_modidx = cfg->clk_modidx; in rtc_numaker_init()
393 err = clock_control_on(cfg->clk_dev, (clock_control_subsys_t)&scc_subsys); in rtc_numaker_init()
/Zephyr-latest/drivers/i2c/
Di2c_numaker.c678 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-latest/drivers/ethernet/
Deth_numaker.c711 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-latest/drivers/usb/udc/
Dudc_numaker.c292 struct numaker_scc_subsys scc_subsys; in numaker_usbd_hw_setup() local
307 memset(&scc_subsys, 0x00, sizeof(scc_subsys)); in numaker_usbd_hw_setup()
308 scc_subsys.subsys_id = NUMAKER_SCC_SUBSYS_ID_PCC; in numaker_usbd_hw_setup()
309 scc_subsys.pcc.clk_modidx = config->clk_modidx; in numaker_usbd_hw_setup()
310 scc_subsys.pcc.clk_src = config->clk_src; in numaker_usbd_hw_setup()
311 scc_subsys.pcc.clk_div = config->clk_div; in numaker_usbd_hw_setup()
314 err = clock_control_on(config->clkctrl_dev, (clock_control_subsys_t)&scc_subsys); in numaker_usbd_hw_setup()
319 err = clock_control_configure(config->clkctrl_dev, (clock_control_subsys_t)&scc_subsys, in numaker_usbd_hw_setup()
360 struct numaker_scc_subsys scc_subsys; in numaker_usbd_hw_shutdown() local
374 memset(&scc_subsys, 0x00, sizeof(scc_subsys)); in numaker_usbd_hw_shutdown()
[all …]
/Zephyr-latest/drivers/usb/device/
Dusb_dc_numaker.c347 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 …]