Lines Matching full:rtc_ck
173 struct clk *rtc_ck; member
318 if (clk_get_rate(rtc->rtc_ck) != 32768) in stm32_rtc_pinmux_lsco_available()
341 rtc->clk_lsco = clk_register_gate(dev, "rtc_lsco", __clk_get_name(rtc->rtc_ck), in stm32_rtc_pinmux_action_lsco()
415 * It takes around 2 rtc_ck clock cycles to enter in in stm32_rtc_enter_init_mode()
417 * slowest rtc_ck frequency may be 32kHz and highest should be in stm32_rtc_enter_init_mode()
447 * synchronised, it takes around 2 rtc_ck clock cycles in stm32_rtc_wait_sync()
765 * takes around 2 rtc_ck clock cycles in stm32_rtc_set_alarm()
978 rate = clk_get_rate(rtc->rtc_ck); in stm32_rtc_init()
985 dev_err(&pdev->dev, "rtc_ck rate is too high: %dHz\n", rate); in stm32_rtc_init()
1013 dev_warn(&pdev->dev, "rtc_ck is %s\n", in stm32_rtc_init()
1101 rtc->rtc_ck = devm_clk_get(&pdev->dev, NULL); in stm32_rtc_probe()
1107 rtc->rtc_ck = devm_clk_get(&pdev->dev, "rtc_ck"); in stm32_rtc_probe()
1109 if (IS_ERR(rtc->rtc_ck)) in stm32_rtc_probe()
1110 return dev_err_probe(&pdev->dev, PTR_ERR(rtc->rtc_ck), "no rtc_ck clock"); in stm32_rtc_probe()
1118 ret = clk_prepare_enable(rtc->rtc_ck); in stm32_rtc_probe()
1140 * rtc_ck parent clock has changed (so RTC prescalers need to be in stm32_rtc_probe()
1211 clk_disable_unprepare(rtc->rtc_ck); in stm32_rtc_probe()
1241 clk_disable_unprepare(rtc->rtc_ck); in stm32_rtc_remove()