Home
last modified time | relevance | path

Searched refs:wdt_clk (Results 1 – 5 of 5) sorted by relevance

/Linux-v4.19/drivers/watchdog/
Dath79_wdt.c69 static struct clk *wdt_clk; variable
265 wdt_clk = devm_clk_get(&pdev->dev, "wdt"); in ath79_wdt_probe()
266 if (IS_ERR(wdt_clk)) in ath79_wdt_probe()
267 return PTR_ERR(wdt_clk); in ath79_wdt_probe()
269 err = clk_prepare_enable(wdt_clk); in ath79_wdt_probe()
273 wdt_freq = clk_get_rate(wdt_clk); in ath79_wdt_probe()
300 clk_disable_unprepare(wdt_clk); in ath79_wdt_probe()
307 clk_disable_unprepare(wdt_clk); in ath79_wdt_remove()
Dpnx4008_wdt.c85 static struct clk *wdt_clk; variable
198 wdt_clk = devm_clk_get(&pdev->dev, NULL); in pnx4008_wdt_probe()
199 if (IS_ERR(wdt_clk)) in pnx4008_wdt_probe()
200 return PTR_ERR(wdt_clk); in pnx4008_wdt_probe()
202 ret = clk_prepare_enable(wdt_clk); in pnx4008_wdt_probe()
225 clk_disable_unprepare(wdt_clk); in pnx4008_wdt_probe()
233 clk_disable_unprepare(wdt_clk); in pnx4008_wdt_remove()
Dimgpdc_wdt.c87 struct clk *wdt_clk; member
119 unsigned long clk_rate = clk_get_rate(wdt->wdt_clk); in __pdc_wdt_set_timeout()
204 pdc_wdt->wdt_clk = devm_clk_get(&pdev->dev, "wdt"); in pdc_wdt_probe()
205 if (IS_ERR(pdc_wdt->wdt_clk)) { in pdc_wdt_probe()
207 return PTR_ERR(pdc_wdt->wdt_clk); in pdc_wdt_probe()
216 ret = clk_prepare_enable(pdc_wdt->wdt_clk); in pdc_wdt_probe()
223 clk_rate = clk_get_rate(pdc_wdt->wdt_clk); in pdc_wdt_probe()
295 clk_disable_unprepare(pdc_wdt->wdt_clk); in pdc_wdt_probe()
314 clk_disable_unprepare(pdc_wdt->wdt_clk); in pdc_wdt_remove()
Dlpc18xx_wdt.c57 struct clk *wdt_clk; member
225 lpc18xx_wdt->wdt_clk = devm_clk_get(dev, "wdtclk"); in lpc18xx_wdt_probe()
226 if (IS_ERR(lpc18xx_wdt->wdt_clk)) { in lpc18xx_wdt_probe()
228 return PTR_ERR(lpc18xx_wdt->wdt_clk); in lpc18xx_wdt_probe()
237 ret = clk_prepare_enable(lpc18xx_wdt->wdt_clk); in lpc18xx_wdt_probe()
244 lpc18xx_wdt->clk_rate = clk_get_rate(lpc18xx_wdt->wdt_clk); in lpc18xx_wdt_probe()
286 clk_disable_unprepare(lpc18xx_wdt->wdt_clk); in lpc18xx_wdt_probe()
307 clk_disable_unprepare(lpc18xx_wdt->wdt_clk); in lpc18xx_wdt_remove()
/Linux-v4.19/Documentation/devicetree/bindings/watchdog/
Darm,sp805.txt30 clocks = <&wdt_clk>, <&apb_pclk>;