Searched refs:wtcon (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/watchdog/
H A Ds3c2410_wdt.c250 unsigned long wtcon; __s3c2410wdt_stop() local
252 wtcon = readl(wdt->reg_base + S3C2410_WTCON); __s3c2410wdt_stop()
253 wtcon &= ~(S3C2410_WTCON_ENABLE | S3C2410_WTCON_RSTEN); __s3c2410wdt_stop()
254 writel(wtcon, wdt->reg_base + S3C2410_WTCON); __s3c2410wdt_stop()
270 unsigned long wtcon; s3c2410wdt_start() local
277 wtcon = readl(wdt->reg_base + S3C2410_WTCON); s3c2410wdt_start()
278 wtcon |= S3C2410_WTCON_ENABLE | S3C2410_WTCON_DIV128; s3c2410wdt_start()
281 wtcon |= S3C2410_WTCON_INTEN; s3c2410wdt_start()
282 wtcon &= ~S3C2410_WTCON_RSTEN; s3c2410wdt_start()
284 wtcon &= ~S3C2410_WTCON_INTEN; s3c2410wdt_start()
285 wtcon |= S3C2410_WTCON_RSTEN; s3c2410wdt_start()
288 DBG("%s: count=0x%08x, wtcon=%08lx\n", s3c2410wdt_start()
289 __func__, wdt->count, wtcon); s3c2410wdt_start()
293 writel(wtcon, wdt->reg_base + S3C2410_WTCON); s3c2410wdt_start()
310 unsigned long wtcon; s3c2410wdt_set_heartbeat() local
342 wtcon = readl(wdt->reg_base + S3C2410_WTCON); s3c2410wdt_set_heartbeat()
343 wtcon &= ~S3C2410_WTCON_PRESCALE_MASK; s3c2410wdt_set_heartbeat()
344 wtcon |= S3C2410_WTCON_PRESCALE(divisor-1); s3c2410wdt_set_heartbeat()
347 writel(wtcon, wdt->reg_base + S3C2410_WTCON); s3c2410wdt_set_heartbeat()
517 unsigned int wtcon; s3c2410wdt_probe() local
642 wtcon = readl(wdt->reg_base + S3C2410_WTCON); s3c2410wdt_probe()
645 (wtcon & S3C2410_WTCON_ENABLE) ? "" : "in", s3c2410wdt_probe()
646 (wtcon & S3C2410_WTCON_RSTEN) ? "en" : "dis", s3c2410wdt_probe()
647 (wtcon & S3C2410_WTCON_INTEN) ? "en" : "dis"); s3c2410wdt_probe()

Completed in 77 milliseconds