[patch 1/2] mc13892: reboot on wdi event
Mark Brown
broonie at opensource.wolfsonmicro.com
Mon Feb 28 09:37:41 EST 2011
On Mon, Feb 28, 2011 at 02:21:33PM +0100, Arnaud Patard wrote:
> +
> + /* allows to reboot on wdi event */
> + ret = mc13xxx_reg_read(mc13892, MC13892_POWERCTL2, &val);
> + if (!ret) {
> + val |= MC13892_POWERCTL2_WDIRESET;
> + mc13xxx_reg_write(mc13892, MC13892_POWERCTL2, val);
> + }
> +
Also, why is this in the regulator driver? The MFD core for the device
might be a better choice - that'll ensure it gets done even if regulator
support isn't enabled for some reason.
More information about the linux-arm-kernel
mailing list