Lines Matching refs:wdt_base
55 void __iomem *wdt_base; member
86 void __iomem *wdt_base = sunxi_wdt->wdt_base; in sunxi_wdt_restart() local
91 val = readl(wdt_base + regs->wdt_cfg); in sunxi_wdt_restart()
94 writel(val, wdt_base + regs->wdt_cfg); in sunxi_wdt_restart()
97 val = readl(wdt_base + regs->wdt_mode); in sunxi_wdt_restart()
100 writel(val, wdt_base + regs->wdt_mode); in sunxi_wdt_restart()
106 writel(WDT_CTRL_RELOAD, wdt_base + regs->wdt_ctrl); in sunxi_wdt_restart()
110 val = readl(wdt_base + regs->wdt_mode); in sunxi_wdt_restart()
112 writel(val, wdt_base + regs->wdt_mode); in sunxi_wdt_restart()
120 void __iomem *wdt_base = sunxi_wdt->wdt_base; in sunxi_wdt_ping() local
123 writel(WDT_CTRL_RELOAD, wdt_base + regs->wdt_ctrl); in sunxi_wdt_ping()
132 void __iomem *wdt_base = sunxi_wdt->wdt_base; in sunxi_wdt_set_timeout() local
141 reg = readl(wdt_base + regs->wdt_mode); in sunxi_wdt_set_timeout()
144 writel(reg, wdt_base + regs->wdt_mode); in sunxi_wdt_set_timeout()
154 void __iomem *wdt_base = sunxi_wdt->wdt_base; in sunxi_wdt_stop() local
157 writel(0, wdt_base + regs->wdt_mode); in sunxi_wdt_stop()
166 void __iomem *wdt_base = sunxi_wdt->wdt_base; in sunxi_wdt_start() local
176 reg = readl(wdt_base + regs->wdt_cfg); in sunxi_wdt_start()
179 writel(reg, wdt_base + regs->wdt_cfg); in sunxi_wdt_start()
182 reg = readl(wdt_base + regs->wdt_mode); in sunxi_wdt_start()
184 writel(reg, wdt_base + regs->wdt_mode); in sunxi_wdt_start()
244 sunxi_wdt->wdt_base = devm_platform_ioremap_resource(pdev, 0); in sunxi_wdt_probe()
245 if (IS_ERR(sunxi_wdt->wdt_base)) in sunxi_wdt_probe()
246 return PTR_ERR(sunxi_wdt->wdt_base); in sunxi_wdt_probe()