Lines Matching +full:re +full:- +full:configured
1 // SPDX-License-Identifier: GPL-2.0-only
2 /* riowd.c - driver for hw watchdog inside Super I/O of RIO
27 * Controller) of the machine. The BBC can only be configured to
28 * trigger a power-on reset when the signal is asserted. The BBC
29 * can be configured to ignore the signal entirely as well.
32 * 0x05 (WDTO_INDEX) which is the watchdog time-out in minutes (1-255).
35 * re-set the watchdog else it will trigger.
39 * the watchdog control and can be used to make the watchdog timer re-set
71 spin_lock_irqsave(&p->lock, flags); in riowd_writereg()
72 writeb(index, p->regs + 0); in riowd_writereg()
73 writeb(val, p->regs + 1); in riowd_writereg()
74 spin_unlock_irqrestore(&p->lock, flags); in riowd_writereg()
103 return -EFAULT; in riowd_ioctl()
109 return -EFAULT; in riowd_ioctl()
118 return -EFAULT; in riowd_ioctl()
125 return -EINVAL; in riowd_ioctl()
131 return -EFAULT; in riowd_ioctl()
133 return -EINVAL; in riowd_ioctl()
142 return -EINVAL; in riowd_ioctl()
180 int err = -EINVAL; in riowd_probe()
185 err = -ENOMEM; in riowd_probe()
186 p = devm_kzalloc(&op->dev, sizeof(*p), GFP_KERNEL); in riowd_probe()
190 spin_lock_init(&p->lock); in riowd_probe()
192 p->regs = of_ioremap(&op->resource[0], 0, 2, DRIVER_NAME); in riowd_probe()
193 if (!p->regs) { in riowd_probe()
207 riowd_timeout, p->regs); in riowd_probe()
214 of_iounmap(&op->resource[0], p->regs, 2); in riowd_probe()
225 of_iounmap(&op->resource[0], p->regs, 2); in riowd_remove()