Home
last modified time | relevance | path

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

/arch/arm/mach-sunxi/
Dsunxi.c37 static void __iomem *wdt_base; variable
41 if (!wdt_base) in sun4i_restart()
46 wdt_base + SUN4I_WATCHDOG_MODE_REG); in sun4i_restart()
52 writel(SUN4I_WATCHDOG_CTRL_RESTART, wdt_base + SUN4I_WATCHDOG_CTRL_REG); in sun4i_restart()
57 wdt_base + SUN4I_WATCHDOG_MODE_REG); in sun4i_restart()
75 wdt_base = of_iomap(np, 0); in sunxi_setup_restart()
76 WARN(!wdt_base, "failed to map watchdog base address"); in sunxi_setup_restart()
/arch/mips/jz4740/
Dreset.c45 void __iomem *wdt_base = ioremap(JZ4740_WDT_BASE_ADDR, 0x0f); in jz4740_restart() local
49 writeb(0, wdt_base + JZ_REG_WDT_COUNTER_ENABLE); in jz4740_restart()
51 writew(0, wdt_base + JZ_REG_WDT_COUNTER); in jz4740_restart()
52 writew(0, wdt_base + JZ_REG_WDT_DATA); in jz4740_restart()
53 writew(BIT(2), wdt_base + JZ_REG_WDT_CTRL); in jz4740_restart()
55 writeb(1, wdt_base + JZ_REG_WDT_COUNTER_ENABLE); in jz4740_restart()