Searched refs:wdt_base (Results 1 – 6 of 6) sorted by relevance
/drivers/watchdog/ |
D | sunxi_wdt.c | 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() 95 writel(val, wdt_base + regs->wdt_cfg); in sunxi_wdt_restart() 98 val = readl(wdt_base + regs->wdt_mode); in sunxi_wdt_restart() 102 writel(val, wdt_base + regs->wdt_mode); in sunxi_wdt_restart() 108 writel(WDT_CTRL_RELOAD, wdt_base + regs->wdt_ctrl); in sunxi_wdt_restart() 112 val = readl(wdt_base + regs->wdt_mode); in sunxi_wdt_restart() 115 writel(val, wdt_base + regs->wdt_mode); in sunxi_wdt_restart() 123 void __iomem *wdt_base = sunxi_wdt->wdt_base; in sunxi_wdt_ping() local [all …]
|
D | pnx4008_wdt.c | 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() [all …]
|
D | mtk_wdt.c | 69 void __iomem *wdt_base; member 122 tmp = readl(data->wdt_base + WDT_SWSYSRST); in toprgu_reset_update() 128 writel(tmp, data->wdt_base + WDT_SWSYSRST); in toprgu_reset_update() 188 void __iomem *wdt_base; in mtk_wdt_restart() local 190 wdt_base = mtk_wdt->wdt_base; in mtk_wdt_restart() 193 writel(WDT_SWRST_KEY, wdt_base + WDT_SWRST); in mtk_wdt_restart() 203 void __iomem *wdt_base = mtk_wdt->wdt_base; in mtk_wdt_ping() local 205 iowrite32(WDT_RST_RELOAD, wdt_base + WDT_RST); in mtk_wdt_ping() 214 void __iomem *wdt_base = mtk_wdt->wdt_base; in mtk_wdt_set_timeout() local 231 iowrite32(reg, wdt_base + WDT_LENGTH); in mtk_wdt_set_timeout() [all …]
|
D | meson_wdt.c | 57 void __iomem *wdt_base; member 70 writel(tc_reboot, meson_wdt->wdt_base + MESON_WDT_TC); in meson_wdt_restart() 81 writel(0, meson_wdt->wdt_base + MESON_WDT_RESET); in meson_wdt_ping() 92 reg = readl(meson_wdt->wdt_base + MESON_WDT_TC); in meson_wdt_change_timeout() 95 writel(reg, meson_wdt->wdt_base + MESON_WDT_TC); in meson_wdt_change_timeout() 114 reg = readl(meson_wdt->wdt_base + MESON_WDT_TC); in meson_wdt_stop() 116 writel(reg, meson_wdt->wdt_base + MESON_WDT_TC); in meson_wdt_stop() 129 reg = readl(meson_wdt->wdt_base + MESON_WDT_TC); in meson_wdt_start() 131 writel(reg, meson_wdt->wdt_base + MESON_WDT_TC); in meson_wdt_start() 171 meson_wdt->wdt_base = devm_platform_ioremap_resource(pdev, 0); in meson_wdt_probe() [all …]
|
D | ath79_wdt.c | 69 static void __iomem *wdt_base; variable 73 iowrite32(val, wdt_base + reg); in ath79_wdt_wr() 78 return ioread32(wdt_base + reg); in ath79_wdt_rr() 253 if (wdt_base) in ath79_wdt_probe() 256 wdt_base = devm_platform_ioremap_resource(pdev, 0); in ath79_wdt_probe() 257 if (IS_ERR(wdt_base)) in ath79_wdt_probe() 258 return PTR_ERR(wdt_base); in ath79_wdt_probe()
|
D | s3c2410_wdt.c | 498 void __iomem *wdt_base = wdt->reg_base; in s3c2410wdt_restart() local 501 writel(0, wdt_base + S3C2410_WTCON); in s3c2410wdt_restart() 504 writel(0x80, wdt_base + S3C2410_WTCNT); in s3c2410wdt_restart() 505 writel(0x80, wdt_base + S3C2410_WTDAT); in s3c2410wdt_restart() 510 wdt_base + S3C2410_WTCON); in s3c2410wdt_restart()
|