Searched refs:wdt_base (Results 1 – 9 of 9) sorted by relevance
/drivers/watchdog/ |
D | sunxi_wdt.c | 61 void __iomem *wdt_base; member 95 void __iomem *wdt_base = sunxi_wdt->wdt_base; in sunxi_restart_handle() local 100 val = readl(wdt_base + regs->wdt_cfg); in sunxi_restart_handle() 103 writel(val, wdt_base + regs->wdt_cfg); in sunxi_restart_handle() 106 val = readl(wdt_base + regs->wdt_mode); in sunxi_restart_handle() 109 writel(val, wdt_base + regs->wdt_mode); in sunxi_restart_handle() 115 writel(WDT_CTRL_RELOAD, wdt_base + regs->wdt_ctrl); in sunxi_restart_handle() 119 val = readl(wdt_base + regs->wdt_mode); in sunxi_restart_handle() 121 writel(val, wdt_base + regs->wdt_mode); in sunxi_restart_handle() 129 void __iomem *wdt_base = sunxi_wdt->wdt_base; in sunxi_wdt_ping() local [all …]
|
D | sirfsoc_wdt.c | 45 void __iomem *wdt_base; in sirfsoc_wdt_gettimeleft() local 48 wdt_base = watchdog_get_drvdata(wdd); in sirfsoc_wdt_gettimeleft() 49 counter = readl(wdt_base + SIRFSOC_TIMER_COUNTER_LO); in sirfsoc_wdt_gettimeleft() 50 match = readl(wdt_base + in sirfsoc_wdt_gettimeleft() 61 void __iomem *wdt_base; in sirfsoc_wdt_updatetimeout() local 64 wdt_base = watchdog_get_drvdata(wdd); in sirfsoc_wdt_updatetimeout() 67 writel(1, wdt_base + SIRFSOC_TIMER_LATCH); in sirfsoc_wdt_updatetimeout() 70 counter = readl(wdt_base + SIRFSOC_TIMER_LATCHED_LO); in sirfsoc_wdt_updatetimeout() 74 writel(counter, wdt_base + in sirfsoc_wdt_updatetimeout() 82 void __iomem *wdt_base = watchdog_get_drvdata(wdd); in sirfsoc_wdt_enable() local [all …]
|
D | pnx4008_wdt.c | 82 static void __iomem *wdt_base; variable 90 writel(RESET_COUNT, WDTIM_CTRL(wdt_base)); in pnx4008_wdt_start() 92 while (readl(WDTIM_COUNTER(wdt_base))) in pnx4008_wdt_start() 95 writel(M_RES2 | STOP_COUNT0 | RESET_COUNT0, WDTIM_MCTRL(wdt_base)); in pnx4008_wdt_start() 97 writel(MATCH_OUTPUT_HIGH, WDTIM_EMR(wdt_base)); in pnx4008_wdt_start() 99 writel(MATCH_INT, WDTIM_INT(wdt_base)); in pnx4008_wdt_start() 101 writel(0xFFFF, WDTIM_PULSE(wdt_base)); in pnx4008_wdt_start() 102 writel(wdd->timeout * WDOG_COUNTER_RATE, WDTIM_MATCH0(wdt_base)); in pnx4008_wdt_start() 104 writel(COUNT_ENAB | DEBUG_EN, WDTIM_CTRL(wdt_base)); in pnx4008_wdt_start() 114 writel(0, WDTIM_CTRL(wdt_base)); /*stop counter */ in pnx4008_wdt_stop() [all …]
|
D | max63xx_wdt.c | 45 static void __iomem *wdt_base; variable 115 val = __raw_readb(wdt_base); in max63xx_wdt_ping() 117 __raw_writeb(val | MAX6369_WDI, wdt_base); in max63xx_wdt_ping() 118 __raw_writeb(val & ~MAX6369_WDI, wdt_base); in max63xx_wdt_ping() 131 val = __raw_readb(wdt_base); in max63xx_wdt_start() 134 __raw_writeb(val, wdt_base); in max63xx_wdt_start() 150 val = __raw_readb(wdt_base); in max63xx_wdt_stop() 153 __raw_writeb(val, wdt_base); in max63xx_wdt_stop() 200 wdt_base = devm_ioremap_resource(&pdev->dev, wdt_mem); in max63xx_wdt_probe() 201 if (IS_ERR(wdt_base)) in max63xx_wdt_probe() [all …]
|
D | meson_wdt.c | 47 void __iomem *wdt_base; member 60 writel(tc_reboot, meson_wdt->wdt_base + MESON_WDT_TC); in meson_restart_handle() 71 writel(0, meson_wdt->wdt_base + MESON_WDT_RESET); in meson_wdt_ping() 82 reg = readl(meson_wdt->wdt_base + MESON_WDT_TC); in meson_wdt_change_timeout() 85 writel(reg, meson_wdt->wdt_base + MESON_WDT_TC); in meson_wdt_change_timeout() 104 reg = readl(meson_wdt->wdt_base + MESON_WDT_TC); in meson_wdt_stop() 106 writel(reg, meson_wdt->wdt_base + MESON_WDT_TC); in meson_wdt_stop() 119 reg = readl(meson_wdt->wdt_base + MESON_WDT_TC); in meson_wdt_start() 121 writel(reg, meson_wdt->wdt_base + MESON_WDT_TC); in meson_wdt_start() 152 meson_wdt->wdt_base = devm_ioremap_resource(&pdev->dev, res); in meson_wdt_probe() [all …]
|
D | nuc900_wdt.c | 65 void __iomem *wdt_base; member 81 val = __raw_readl(nuc900_wdt->wdt_base + REG_WTCR); in nuc900_wdt_keepalive() 83 __raw_writel(val, nuc900_wdt->wdt_base + REG_WTCR); in nuc900_wdt_keepalive() 94 val = __raw_readl(nuc900_wdt->wdt_base + REG_WTCR); in nuc900_wdt_start() 98 __raw_writel(val, nuc900_wdt->wdt_base + REG_WTCR); in nuc900_wdt_start() 114 val = __raw_readl(nuc900_wdt->wdt_base + REG_WTCR); in nuc900_wdt_stop() 116 __raw_writel(val, nuc900_wdt->wdt_base + REG_WTCR); in nuc900_wdt_stop() 258 nuc900_wdt->wdt_base = devm_ioremap_resource(&pdev->dev, res); in nuc900wdt_probe() 259 if (IS_ERR(nuc900_wdt->wdt_base)) in nuc900wdt_probe() 260 return PTR_ERR(nuc900_wdt->wdt_base); in nuc900wdt_probe()
|
D | ath79_wdt.c | 72 static void __iomem *wdt_base; variable 76 iowrite32(val, wdt_base + reg); in ath79_wdt_wr() 81 return ioread32(wdt_base + reg); in ath79_wdt_rr() 256 if (wdt_base) in ath79_wdt_probe() 260 wdt_base = devm_ioremap_resource(&pdev->dev, res); in ath79_wdt_probe() 261 if (IS_ERR(wdt_base)) in ath79_wdt_probe() 262 return PTR_ERR(wdt_base); in ath79_wdt_probe()
|
D | s3c2410_wdt.c | 460 void __iomem *wdt_base = wdt->reg_base; in s3c2410wdt_restart() local 463 writel(0, wdt_base + S3C2410_WTCON); in s3c2410wdt_restart() 466 writel(0x80, wdt_base + S3C2410_WTCNT); in s3c2410wdt_restart() 467 writel(0x80, wdt_base + S3C2410_WTDAT); in s3c2410wdt_restart() 472 wdt_base + S3C2410_WTCON); in s3c2410wdt_restart()
|
/drivers/power/reset/ |
D | sun6i-reboot.c | 31 static void __iomem *wdt_base; variable 35 if (!wdt_base) in sun6i_wdt_restart() 39 writel(0, wdt_base + SUN6I_WATCHDOG1_IRQ_REG); in sun6i_wdt_restart() 43 wdt_base + SUN6I_WATCHDOG1_CONFIG_REG); in sun6i_wdt_restart() 47 wdt_base + SUN6I_WATCHDOG1_MODE_REG); in sun6i_wdt_restart() 51 wdt_base + SUN6I_WATCHDOG1_CTRL_REG); in sun6i_wdt_restart() 56 wdt_base + SUN6I_WATCHDOG1_MODE_REG); in sun6i_wdt_restart() 62 wdt_base = of_iomap(pdev->dev.of_node, 0); in sun6i_reboot_probe() 63 if (!wdt_base) { in sun6i_reboot_probe()
|