Lines Matching refs:scc_subsys
292 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()
375 scc_subsys.subsys_id = NUMAKER_SCC_SUBSYS_ID_PCC; in numaker_usbd_hw_shutdown()
376 scc_subsys.pcc.clk_modidx = config->clk_modidx; in numaker_usbd_hw_shutdown()
379 clock_control_off(config->clkctrl_dev, (clock_control_subsys_t)&scc_subsys); in numaker_usbd_hw_shutdown()