Lines Matching refs:wdt_base
80 static void __iomem *wdt_base; variable
88 writel(RESET_COUNT, WDTIM_CTRL(wdt_base)); in pnx4008_wdt_start()
90 while (readl(WDTIM_COUNTER(wdt_base))) in pnx4008_wdt_start()
93 writel(M_RES2 | STOP_COUNT0 | RESET_COUNT0, WDTIM_MCTRL(wdt_base)); in pnx4008_wdt_start()
95 writel(MATCH_OUTPUT_HIGH, WDTIM_EMR(wdt_base)); in pnx4008_wdt_start()
97 writel(MATCH_INT, WDTIM_INT(wdt_base)); in pnx4008_wdt_start()
99 writel(0xFFFF, WDTIM_PULSE(wdt_base)); in pnx4008_wdt_start()
100 writel(wdd->timeout * WDOG_COUNTER_RATE, WDTIM_MATCH0(wdt_base)); in pnx4008_wdt_start()
102 writel(COUNT_ENAB | DEBUG_EN, WDTIM_CTRL(wdt_base)); in pnx4008_wdt_start()
112 writel(0, WDTIM_CTRL(wdt_base)); /*stop counter */ in pnx4008_wdt_stop()
145 writel(EXT_MATCH0, WDTIM_EMR(wdt_base)); in pnx4008_restart_handler()
147 writel(M_RES1, WDTIM_MCTRL(wdt_base)); in pnx4008_restart_handler()
150 writel(13000, WDTIM_PULSE(wdt_base)); in pnx4008_restart_handler()
151 writel(M_RES2 | RESFRC1 | RESFRC2, WDTIM_MCTRL(wdt_base)); in pnx4008_restart_handler()
189 wdt_base = devm_platform_ioremap_resource(pdev, 0); in pnx4008_wdt_probe()
190 if (IS_ERR(wdt_base)) in pnx4008_wdt_probe()
191 return PTR_ERR(wdt_base); in pnx4008_wdt_probe()
197 pnx4008_wdd.bootstatus = (readl(WDTIM_RES(wdt_base)) & WDOG_RESET) ? in pnx4008_wdt_probe()
203 if (readl(WDTIM_CTRL(wdt_base)) & COUNT_ENAB) in pnx4008_wdt_probe()