Searched refs:wdt_base (Results 1 – 7 of 7) 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() 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 [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 | sirfsoc_wdt.c | 49 void __iomem *wdt_base; in sirfsoc_wdt_gettimeleft() local 52 wdt_base = sirfsoc_wdt_base(wdd); in sirfsoc_wdt_gettimeleft() 53 counter = readl(wdt_base + SIRFSOC_TIMER_COUNTER_LO); in sirfsoc_wdt_gettimeleft() 54 match = readl(wdt_base + in sirfsoc_wdt_gettimeleft() 65 void __iomem *wdt_base; in sirfsoc_wdt_updatetimeout() local 68 wdt_base = sirfsoc_wdt_base(wdd); in sirfsoc_wdt_updatetimeout() 71 writel(1, wdt_base + SIRFSOC_TIMER_LATCH); in sirfsoc_wdt_updatetimeout() 74 counter = readl(wdt_base + SIRFSOC_TIMER_LATCHED_LO); in sirfsoc_wdt_updatetimeout() 78 writel(counter, wdt_base + in sirfsoc_wdt_updatetimeout() 86 void __iomem *wdt_base = sirfsoc_wdt_base(wdd); in sirfsoc_wdt_enable() local [all …]
|
D | mtk_wdt.c | 62 void __iomem *wdt_base; member 89 tmp = readl(data->wdt_base + WDT_SWSYSRST); in toprgu_reset_update() 95 writel(tmp, data->wdt_base + WDT_SWSYSRST); in toprgu_reset_update() 155 void __iomem *wdt_base; in mtk_wdt_restart() local 157 wdt_base = mtk_wdt->wdt_base; in mtk_wdt_restart() 160 writel(WDT_SWRST_KEY, wdt_base + WDT_SWRST); in mtk_wdt_restart() 170 void __iomem *wdt_base = mtk_wdt->wdt_base; in mtk_wdt_ping() local 172 iowrite32(WDT_RST_RELOAD, wdt_base + WDT_RST); in mtk_wdt_ping() 181 void __iomem *wdt_base = mtk_wdt->wdt_base; in mtk_wdt_set_timeout() local 191 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() 172 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 | 354 void __iomem *wdt_base = wdt->reg_base; in s3c2410wdt_restart() local 357 writel(0, wdt_base + S3C2410_WTCON); in s3c2410wdt_restart() 360 writel(0x80, wdt_base + S3C2410_WTCNT); in s3c2410wdt_restart() 361 writel(0x80, wdt_base + S3C2410_WTDAT); in s3c2410wdt_restart() 366 wdt_base + S3C2410_WTCON); in s3c2410wdt_restart()
|