Lines Matching refs:scc_subsys
62 struct numaker_scc_subsys *scc_subsys = (struct numaker_scc_subsys *)subsys; in numaker_scc_on() local
64 if (scc_subsys->subsys_id == NUMAKER_SCC_SUBSYS_ID_PCC) { in numaker_scc_on()
67 __ASSERT_NO_MSG(scc_subsys->pcc.clk_modidx < ARRAY_SIZE(numaker_clkmodidx_tab)); in numaker_scc_on()
68 CLK_EnableModuleClock(numaker_clkmodidx_tab[scc_subsys->pcc.clk_modidx]); in numaker_scc_on()
70 CLK_EnableModuleClock(scc_subsys->pcc.clk_modidx); in numaker_scc_on()
84 struct numaker_scc_subsys *scc_subsys = (struct numaker_scc_subsys *)subsys; in numaker_scc_off() local
86 if (scc_subsys->subsys_id == NUMAKER_SCC_SUBSYS_ID_PCC) { in numaker_scc_off()
89 __ASSERT_NO_MSG(scc_subsys->pcc.clk_modidx < ARRAY_SIZE(numaker_clkmodidx_tab)); in numaker_scc_off()
90 CLK_DisableModuleClock(numaker_clkmodidx_tab[scc_subsys->pcc.clk_modidx]); in numaker_scc_off()
92 CLK_DisableModuleClock(scc_subsys->pcc.clk_modidx); in numaker_scc_off()
126 struct numaker_scc_subsys *scc_subsys = (struct numaker_scc_subsys *)subsys; in numaker_scc_configure() local
128 if (scc_subsys->subsys_id == NUMAKER_SCC_SUBSYS_ID_PCC) { in numaker_scc_configure()
131 __ASSERT_NO_MSG(scc_subsys->pcc.clk_modidx < ARRAY_SIZE(numaker_clkmodidx_tab)); in numaker_scc_configure()
132 CLK_SetModuleClock(numaker_clkmodidx_tab[scc_subsys->pcc.clk_modidx], in numaker_scc_configure()
133 scc_subsys->pcc.clk_src, in numaker_scc_configure()
134 scc_subsys->pcc.clk_div); in numaker_scc_configure()
136 CLK_SetModuleClock(scc_subsys->pcc.clk_modidx, scc_subsys->pcc.clk_src, in numaker_scc_configure()
137 scc_subsys->pcc.clk_div); in numaker_scc_configure()