Lines Matching refs:base
57 void __iomem *base; /* physical */ member
66 void __iomem *base = wdev->base; in omap_wdt_reload() local
69 while ((readl_relaxed(base + OMAP_WATCHDOG_WPS)) & 0x08) in omap_wdt_reload()
73 writel_relaxed(wdev->wdt_trgr_pattern, (base + OMAP_WATCHDOG_TGR)); in omap_wdt_reload()
76 while ((readl_relaxed(base + OMAP_WATCHDOG_WPS)) & 0x08) in omap_wdt_reload()
83 void __iomem *base = wdev->base; in omap_wdt_enable() local
86 writel_relaxed(0xBBBB, base + OMAP_WATCHDOG_SPR); in omap_wdt_enable()
87 while ((readl_relaxed(base + OMAP_WATCHDOG_WPS)) & 0x10) in omap_wdt_enable()
90 writel_relaxed(0x4444, base + OMAP_WATCHDOG_SPR); in omap_wdt_enable()
91 while ((readl_relaxed(base + OMAP_WATCHDOG_WPS)) & 0x10) in omap_wdt_enable()
97 void __iomem *base = wdev->base; in omap_wdt_disable() local
100 writel_relaxed(0xAAAA, base + OMAP_WATCHDOG_SPR); /* TIMER_MODE */ in omap_wdt_disable()
101 while (readl_relaxed(base + OMAP_WATCHDOG_WPS) & 0x10) in omap_wdt_disable()
104 writel_relaxed(0x5555, base + OMAP_WATCHDOG_SPR); /* TIMER_MODE */ in omap_wdt_disable()
105 while (readl_relaxed(base + OMAP_WATCHDOG_WPS) & 0x10) in omap_wdt_disable()
113 void __iomem *base = wdev->base; in omap_wdt_set_timer() local
116 while (readl_relaxed(base + OMAP_WATCHDOG_WPS) & 0x04) in omap_wdt_set_timer()
119 writel_relaxed(pre_margin, base + OMAP_WATCHDOG_LDR); in omap_wdt_set_timer()
120 while (readl_relaxed(base + OMAP_WATCHDOG_WPS) & 0x04) in omap_wdt_set_timer()
127 void __iomem *base = wdev->base; in omap_wdt_start() local
143 while (readl_relaxed(base + OMAP_WATCHDOG_WPS) & 0x01) in omap_wdt_start()
146 writel_relaxed((1 << 5) | (PTV << 2), base + OMAP_WATCHDOG_CNTRL); in omap_wdt_start()
147 while (readl_relaxed(base + OMAP_WATCHDOG_WPS) & 0x01) in omap_wdt_start()
235 wdev->base = devm_ioremap_resource(&pdev->dev, res); in omap_wdt_probe()
236 if (IS_ERR(wdev->base)) in omap_wdt_probe()
237 return PTR_ERR(wdev->base); in omap_wdt_probe()
274 readl_relaxed(wdev->base + OMAP_WATCHDOG_REV) & 0xFF, in omap_wdt_probe()