Home
last modified time | relevance | path

Searched refs:wdt_base (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/watchdog/
H A Dsunxi_wdt.c55 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 …]
H A Dmtk_wdt.c74 void __iomem *wdt_base; member
141 tmp = readl(data->wdt_base + WDT_SWSYSRST_EN); in toprgu_reset_sw_en_unlocked()
147 writel(tmp, data->wdt_base + WDT_SWSYSRST_EN); in toprgu_reset_sw_en_unlocked()
163 tmp = readl(data->wdt_base + WDT_SWSYSRST); in toprgu_reset_update()
169 writel(tmp, data->wdt_base + WDT_SWSYSRST); in toprgu_reset_update()
232 void __iomem *wdt_base; in mtk_wdt_restart() local
235 wdt_base = mtk_wdt->wdt_base; in mtk_wdt_restart()
238 reg = readl(wdt_base + WDT_MODE); in mtk_wdt_restart()
240 writel(reg | WDT_MODE_KEY, wdt_base + WDT_MODE); in mtk_wdt_restart()
243 writel(WDT_SWRST_KEY, wdt_base + WDT_SWRST); in mtk_wdt_restart()
[all …]
H A Dpnx4008_wdt.c80 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 …]
H A Dmeson_wdt.c57 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 …]
H A Dath79_wdt.c69 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()
252 if (wdt_base) in ath79_wdt_probe()
255 wdt_base = devm_platform_ioremap_resource(pdev, 0); in ath79_wdt_probe()
256 if (IS_ERR(wdt_base)) in ath79_wdt_probe()
257 return PTR_ERR(wdt_base); in ath79_wdt_probe()
H A Ds3c2410_wdt.c585 void __iomem *wdt_base = wdt->reg_base; in s3c2410wdt_restart() local
588 writel(0, wdt_base + S3C2410_WTCON); in s3c2410wdt_restart()
591 writel(0x80, wdt_base + S3C2410_WTCNT); in s3c2410wdt_restart()
592 writel(0x80, wdt_base + S3C2410_WTDAT); in s3c2410wdt_restart()
597 wdt_base + S3C2410_WTCON); in s3c2410wdt_restart()