Home
last modified time | relevance | path

Searched refs:gwdt (Results 1 – 2 of 2) sorted by relevance

/drivers/watchdog/
Dftwdt010_wdt.c52 struct ftwdt010_wdt *gwdt = to_ftwdt010_wdt(wdd); in ftwdt010_wdt_start() local
55 writel(wdd->timeout * WDT_CLOCK, gwdt->base + FTWDT010_WDLOAD); in ftwdt010_wdt_start()
56 writel(WDRESTART_MAGIC, gwdt->base + FTWDT010_WDRESTART); in ftwdt010_wdt_start()
59 writel(enable, gwdt->base + FTWDT010_WDCR); in ftwdt010_wdt_start()
60 if (gwdt->has_irq) in ftwdt010_wdt_start()
63 writel(enable, gwdt->base + FTWDT010_WDCR); in ftwdt010_wdt_start()
70 struct ftwdt010_wdt *gwdt = to_ftwdt010_wdt(wdd); in ftwdt010_wdt_stop() local
72 writel(0, gwdt->base + FTWDT010_WDCR); in ftwdt010_wdt_stop()
79 struct ftwdt010_wdt *gwdt = to_ftwdt010_wdt(wdd); in ftwdt010_wdt_ping() local
81 writel(WDRESTART_MAGIC, gwdt->base + FTWDT010_WDRESTART); in ftwdt010_wdt_ping()
[all …]
Dsbsa_gwdt.c121 struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd); in sbsa_gwdt_set_timeout() local
127 writel(gwdt->clk * timeout, in sbsa_gwdt_set_timeout()
128 gwdt->control_base + SBSA_GWDT_WOR); in sbsa_gwdt_set_timeout()
135 writel(gwdt->clk / 2 * timeout, in sbsa_gwdt_set_timeout()
136 gwdt->control_base + SBSA_GWDT_WOR); in sbsa_gwdt_set_timeout()
143 struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd); in sbsa_gwdt_get_timeleft() local
152 !(readl(gwdt->control_base + SBSA_GWDT_WCS) & SBSA_GWDT_WCS_WS0)) in sbsa_gwdt_get_timeleft()
153 timeleft += readl(gwdt->control_base + SBSA_GWDT_WOR); in sbsa_gwdt_get_timeleft()
155 timeleft += lo_hi_readq(gwdt->control_base + SBSA_GWDT_WCV) - in sbsa_gwdt_get_timeleft()
158 do_div(timeleft, gwdt->clk); in sbsa_gwdt_get_timeleft()
[all …]