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
72 spin_lock_irqsave(&p->lock, flags); in riowd_writereg()
73 writeb(index, p->regs + 0); in riowd_writereg()
74 writeb(val, p->regs + 1); in riowd_writereg()
75 spin_unlock_irqrestore(&p->lock, flags); in riowd_writereg()
104 return -EFAULT; in riowd_ioctl()
110 return -EFAULT; in riowd_ioctl()
119 return -EFAULT; in riowd_ioctl()
126 return -EINVAL; in riowd_ioctl()
132 return -EFAULT; in riowd_ioctl()
134 return -EINVAL; in riowd_ioctl()
143 return -EINVAL; in riowd_ioctl()
181 int err = -EINVAL; in riowd_probe()
186 err = -ENOMEM; in riowd_probe()
187 p = devm_kzalloc(&op->dev, sizeof(*p), GFP_KERNEL); in riowd_probe()
191 spin_lock_init(&p->lock); in riowd_probe()
193 p->regs = of_ioremap(&op->resource[0], 0, 2, DRIVER_NAME); in riowd_probe()
194 if (!p->regs) { in riowd_probe()
208 riowd_timeout, p->regs); in riowd_probe()
215 of_iounmap(&op->resource[0], p->regs, 2); in riowd_probe()
226 of_iounmap(&op->resource[0], p->regs, 2); in riowd_remove()