Lines Matching refs:clk
47 static enum smartbond_clock smartbond_source_clock(enum smartbond_clock clk);
208 enum smartbond_clock clk = (enum smartbond_clock)(sub_system); in smartbond_clock_control_on() local
213 switch (clk) { in smartbond_clock_control_on()
232 pll_requests = 1 << (clk - SMARTBOND_CLK_PLL96M); in smartbond_clock_control_on()
260 enum smartbond_clock clk = (enum smartbond_clock)(sub_system); in smartbond_clock_control_off() local
265 switch (clk) { in smartbond_clock_control_off()
303 pll_requests &= ~(1 << (clk - SMARTBOND_CLK_PLL96M)); in smartbond_clock_control_off()
327 static enum smartbond_clock smartbond_source_clock(enum smartbond_clock clk) in smartbond_source_clock() argument
342 if (clk == SMARTBOND_CLK_SYS_CLK) { in smartbond_source_clock()
343 clk = sys_clk_src[CRG_TOP->CLK_CTRL_REG & in smartbond_source_clock()
347 if (clk == SMARTBOND_CLK_LP_CLK) { in smartbond_source_clock()
348 clk = lp_clk_src[(CRG_TOP->CLK_CTRL_REG & in smartbond_source_clock()
352 return clk; in smartbond_source_clock()
355 static int smartbond_clock_get_rate(enum smartbond_clock clk, uint32_t *rate) in smartbond_clock_get_rate() argument
357 clk = smartbond_source_clock(clk); in smartbond_clock_get_rate()
358 switch (clk) { in smartbond_clock_get_rate()
418 enum smartbond_clock clk = smartbond_dt_ord_to_clock(clock_id); in smartbond_clock_control_on_by_ord() local
420 smartbond_clock_control_on(dev, (clock_control_subsys_rate_t)clk); in smartbond_clock_control_on_by_ord()
426 enum smartbond_clock clk = smartbond_dt_ord_to_clock(clock_id); in smartbond_clock_control_off_by_ord() local
428 smartbond_clock_control_off(dev, (clock_control_subsys_rate_t)clk); in smartbond_clock_control_off_by_ord()